From: Guus Sliepen Date: Sun, 13 Feb 2011 17:14:00 +0000 (+0100) Subject: Add NSIS script to create a Windows installer. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=809865e3efe250c14dcacb2b1c4c717f99173d9e;p=quix0rs-blobwars.git Add NSIS script to create a Windows installer. --- diff --git a/blobwars.nsi b/blobwars.nsi new file mode 100644 index 0000000..9a399eb --- /dev/null +++ b/blobwars.nsi @@ -0,0 +1,35 @@ +# Blob Wars : Metal Blob Solid script + +Name "Blob Wars : Metal Blob Solid" +OutFile "blobwars-1.18-1.installer.exe" +InstallDir "$PROGRAMFILES\Parallel Realities\BlobWars" +Page Directory +Page InstFiles + +Section "Main" + SetOutPath $INSTDIR + File blobwars.exe + File blobwars.pak + File blobwars.ico + File *.dll + File /r locale + File /r doc +SectionEnd + +Section "Shortcuts" + CreateDirectory "$SMPROGRAMS\Parallel Realities\BlobWars" + CreateShortCut "$SMPROGRAMS\Parallel Realities\BlobWars\BlobWars.lnk" "$INSTDIR\blobwars.exe" "" $INSTDIR\blobwars.ico 0 "" "" + CreateShortCut "$SMPROGRAMS\Parallel Realities\BlobWars\Uninstall.lnk" "$INSTDIR\uninstaller.exe" + CreateShortCut "$DESKTOP\BlobWars.lnk" "$INSTDIR\blobwars.exe" "" "$INSTDIR\blobwars.ico" 0 "" "" +SectionEnd + +Section "CreateUninstaller" + WriteUninstaller "$INSTDIR\uninstaller.exe" +SectionEnd + +Section "Uninstall" + Delete "$SMPROGRAMS\Parallel Realities\BlobWars\*.*" + Delete "$SMPROGRAMS\Parallel Realities\BlobWars" + Delete "$DESKTOP\BlobWars.lnk" + RMDir /r "$INSTDIR" +SectionEnd