]> git.mxchange.org Git - quix0rs-blobwars.git/commitdiff
Add NSIS script to create a Windows installer.
authorGuus Sliepen <guus@debian.org>
Sun, 13 Feb 2011 17:14:00 +0000 (18:14 +0100)
committerGuus Sliepen <guus@debian.org>
Sun, 13 Feb 2011 17:14:00 +0000 (18:14 +0100)
blobwars.nsi [new file with mode: 0644]

diff --git a/blobwars.nsi b/blobwars.nsi
new file mode 100644 (file)
index 0000000..9a399eb
--- /dev/null
@@ -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