source: thinkgear_emulator/Puzzlebox-ThinkGearEmulator.nsi @ 91

Last change on this file since 91 was 91, checked in by sc, 11 years ago

thinkgear_emulator/Puzzlebox-ThinkGearEmulator?.nsi:

  • preparation for 0.2.0 release
File size: 5.8 KB
Line 
1; Puzzlebox Brainstorms Windows Installer
2
3; NOTE: this .NSI script is designed for NSIS v1.8+
4
5Name "Puzzlebox ThinkGear Emulator"
6OutFile "Puzzlebox-ThinkGearEmulator-0.2.0-setup.exe"
7
8; Some default compiler settings (uncomment and change at will):
9; SetCompress auto ; (can be off or force)
10; SetDatablockOptimize on ; (can be off)
11; CRCCheck on ; (can be off)
12; AutoCloseWindow false ; (can be true for the window go away automatically at end)
13; ShowInstDetails hide ; (can be show to have them shown, or nevershow to disable)
14; SetDateSave off ; (can be on to have files restored to their orginal date)
15
16LicenseText "You must agree to this license before installing."
17LicenseData "license.txt"
18
19InstallDir "$PROGRAMFILES\Puzzlebox ThinkGear Emulator"
20InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Puzzlebox ThinkGear Emulator\Puzzlebox ThinkGear Emulator" ""
21;DirShow show ; (make this hide to not let the user change it)
22DirText "Select the directory to install Puzzlebox ThinkGear Emulator into:"
23
24InstallColors /windows
25
26Section "" ; (default section)
27SetOutPath "$INSTDIR"
28; add files / whatever that need to be installed here.
29WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Puzzlebox ThinkGear Emulator\Puzzlebox ThinkGear Emulator" "" "$INSTDIR"
30WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Puzzlebox ThinkGear Emulator\Puzzlebox ThinkGear Emulator" "DisplayName" "Puzzlebox ThinkGear Emulator (remove only)"
31WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Puzzlebox ThinkGear Emulator\Puzzlebox ThinkGear Emulator" "UninstallString" '"$INSTDIR\Puzzlesbox-ThinkGearEmulator-Uninstall.exe"'
32     
33 File dist\bz2.pyd
34 File dist\images
35 File dist\images\puzzlebox.ico
36 File dist\libgcc_s_dw2-1.dll
37 File dist\library.zip
38 File dist\mingwm10.dll
39; File dist\msvcr71.dll
40 File dist\puzzlebox_thinkgear_emulator_configuration.ini
41 File dist\puzzlebox_thinkgear_server.exe
42 File dist\PyQt4.QtCore.pyd
43 File dist\PyQt4.QtNetwork.pyd
44 File dist\python25.dll
45 File dist\QtCore4.dll
46 File dist\QtNetwork4.dll
47 File dist\simplejson._speedups.pyd
48 File dist\sip.pyd
49 File dist\unicodedata.pyd
50 File dist\w9xpopen.exe
51
52
53SetOutPath $INSTDIR\images
54 File dist\images\puzzlebox.ico
55
56 File package\vcredist_x86.exe
57
58ExecWait 'package\Vcredist_x86.exe /q:a /c:"msiexec /i vcredist.msi /qn /l*v %temp%\vcredist_x86.log"'
59
60
61; write out uninstaller
62WriteUninstaller "$INSTDIR\Puzzlebox-ThinkGearEmulator-Uninstall.exe"
63
64SectionEnd ; end of default section
65
66
67Section "Start Menu + Desktop Icons"
68;  SetOutPath "$SMPROGRAMS\Puzzlebox ThinkGear Emulator"
69  SetOutPath $INSTDIR
70  CreateDirectory "$SMPROGRAMS\Puzzlebox ThinkGear Emulator"
71;  CreateShortCut "$SMPROGRAMS\Puzzlebox ThinkGear Emulator\Puzzlebox ThinkGear Emulator Network Client.lnk" \
72;                 "$INSTDIR\puzzlebox_thinkgear_client.exe" \
73;                 ""  "$INSTDIR\images\puzzlebox.ico"  "0"  "SW_SHOWMINIMIZED"
74  CreateShortCut "$SMPROGRAMS\Puzzlebox ThinkGear Emulator\Puzzlebox ThinkGear Emulator Network Server.lnk" \
75                 "$INSTDIR\puzzlebox_thinkgear_server.exe" \
76                 ""  "$INSTDIR\images\puzzlebox.ico"  "0"  "SW_SHOWMINIMIZED"
77  CreateShortCut "$SMPROGRAMS\Puzzlebox ThinkGear Emulator\Edit Puzzlebox ThinkGear Emulator Configuration.lnk" \
78                 "$INSTDIR\puzzlebox_thinkgear_emulator_configuration.ini" \
79                 ""  ""  "0"  ""
80  CreateShortCut "$SMPROGRAMS\Puzzlebox ThinkGear Emulator\Uninstall Puzzlebox ThinkGear Emulator.lnk" \
81                 "$INSTDIR\Puzzlebox-ThinkGearEmulator-Uninstall.exe"
82SectionEnd
83
84
85; begin uninstall settings/section
86UninstallText "This will uninstall Puzzlebox ThinkGear Emulator from your system"
87
88Section Uninstall
89; add delete commands to delete whatever files/registry keys/etc you installed here.
90; Delete "$SMPROGRAMS\Puzzlebox ThinkGear Emulator\Puzzlebox ThinkGear Emulator Network Client.lnk"
91 Delete "$SMPROGRAMS\Puzzlebox ThinkGear Emulator\Puzzlebox ThinkGear Emulator Network Server.lnk"
92 Delete "$SMPROGRAMS\Puzzlebox ThinkGear Emulator\Edit Puzzlebox ThinkGear Emulator Configuration.lnk"
93 Delete "$SMPROGRAMS\Puzzlebox ThinkGear Emulator\Uninstall Puzzlebox ThinkGear Emulator.lnk"
94   RMDir "$SMPROGRAMS\Puzzlebox ThinkGear Emulator"
95
96
97 Delete $INSTDIR\bz2.pyd
98 Delete $INSTDIR\images
99 Delete $INSTDIR\images\puzzlebox.ico
100 Delete $INSTDIR\libgcc_s_dw2-1.dll
101 Delete $INSTDIR\library.zip
102 Delete $INSTDIR\mingwm10.dll
103 Delete $INSTDIR\msvcr71.dll
104 Delete $INSTDIR\puzzlebox_thinkgear_emulator_configuration.ini
105 Delete $INSTDIR\puzzlebox_thinkgear_server.exe
106 Delete $INSTDIR\PyQt4.QtCore.pyd
107 Delete $INSTDIR\PyQt4.QtNetwork.pyd
108 Delete $INSTDIR\python25.dll
109 Delete $INSTDIR\QtCore4.dll
110 Delete $INSTDIR\QtNetwork4.dll
111 Delete $INSTDIR\simplejson._speedups.pyd
112 Delete $INSTDIR\sip.pyd
113 Delete $INSTDIR\unicodedata.pyd
114 Delete $INSTDIR\w9xpopen.exe
115
116
117 Delete $INSTDIR\images\puzzlebox.ico
118
119 RMDir $INSTDIR\images
120
121 RMDIR $INSTDIR
122
123Delete "$INSTDIR\Puzzlebox-ThinkGearEmulator-Uninstall.exe"
124DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Puzzlebox ThinkGear Emulator\Puzzlebox ThinkGear Emulator"
125DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Puzzlebox ThinkGear Emulator"
126RMDir "$INSTDIR"
127
128  ; if $INSTDIR was removed, skip these next ones
129  IfFileExists $INSTDIR 0 Removed
130    MessageBox MB_YESNO|MB_ICONQUESTION \
131      "Remove all files in your Puzzlebox ThinkGear Emulator directory? (If you have anything \
132you created that you want to keep, click No)" IDNO Removed
133    Delete $INSTDIR\*.* ; this would be skipped if the user hits no
134    RMDir /r $INSTDIR
135    IfFileExists $INSTDIR 0 Removed
136      MessageBox MB_OK|MB_ICONEXCLAMATION \
137                 "Note: $INSTDIR could not be removed."
138  Removed:
139
140
141SectionEnd ; end of uninstall section
142
143; eof
144
Note: See TracBrowser for help on using the repository browser.