Handle the EINTR error when doing a waitpid() in wvmagicloopback.
[wvapps.git] / photoreider / win_install.nsi
blob19302634dc0ecdd207d36abde719d05daaa10145
1 ; Script generated by the HM NIS Edit Script Wizard.
3 ; HM NIS Edit Wizard helper defines
4 !define PRODUCT_NAME "Photoreider"
5 !define PRODUCT_VERSION "0.1"
6 !define PRODUCT_PUBLISHER "Net Integration Technologies Inc."
7 !define PRODUCT_WEB_SITE "http://www.nit.ca"
8 !define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\photoreider.exe"
9 !define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
10 !define PRODUCT_UNINST_ROOT_KEY "HKLM"
11 !define PRODUCT_STARTMENU_REGVAL "NSIS:StartMenuDir"
13 ; MUI 1.67 compatible ------
14 !include "MUI.nsh"
16 ; MUI Settings
17 !define MUI_ABORTWARNING
18 !define MUI_ICON "C:\cygwin\home\r2levesq\ndf\photoreider\icons\icon.ico"
19 !define MUI_UNICON "C:\cygwin\home\r2levesq\ndf\photoreider\icons\icon.ico"
21 ; Welcome page
22 !insertmacro MUI_PAGE_WELCOME
23 ; License page
24 !insertmacro MUI_PAGE_LICENSE "C:\cygwin\home\r2levesq\ndf\photoreider\license.txt"
25 ; Directory page
26 !insertmacro MUI_PAGE_DIRECTORY
27 ; Start menu page
28 var ICONS_GROUP
29 !define MUI_STARTMENUPAGE_NODISABLE
30 !define MUI_STARTMENUPAGE_DEFAULTFOLDER "Photoreider"
31 !define MUI_STARTMENUPAGE_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
32 !define MUI_STARTMENUPAGE_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
33 !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "${PRODUCT_STARTMENU_REGVAL}"
34 !insertmacro MUI_PAGE_STARTMENU Application $ICONS_GROUP
35 ; Instfiles page
36 !insertmacro MUI_PAGE_INSTFILES
37 ; Finish page
38 !define MUI_FINISHPAGE_RUN "$INSTDIR\photoreider.exe"
39 !define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\README.txt"
40 !insertmacro MUI_PAGE_FINISH
42 ; Uninstaller pages
43 !insertmacro MUI_UNPAGE_INSTFILES
45 ; Language files
46 !insertmacro MUI_LANGUAGE "English"
48 ; MUI end ------
50 Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
51 OutFile "photoreider-0-1.exe"
52 InstallDir "$PROGRAMFILES\Photoreider"
53 InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
54 ShowInstDetails show
55 ShowUnInstDetails show
57 Section "MainSection" SEC01
58 SetOutPath "$INSTDIR"
59 SetOverwrite ifnewer
60 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\wxmsw251h_xrc_vc.dll"
61 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\wxmsw251h_html_vc.dll"
62 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\wxmsw251h_core_vc.dll"
63 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\wxmsw251h_adv_vc.dll"
64 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\wxbase251h_xml_vc.dll"
65 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\wxbase251h_vc.dll"
66 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\wxbase251h_net_vc.dll"
67 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\w9xpopen.exe"
68 CreateDirectory "$SMPROGRAMS\$ICONS_GROUP"
69 CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Photoreider.lnk" "$INSTDIR\photoreider.exe" "" "$INSTDIR\icons\icon.ico"
70 CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Read Me.lnk" "$INSTDIR\README.txt"
71 CreateShortCut "$DESKTOP\Photoreider.lnk" "$INSTDIR\photoreider.exe" "" "$INSTDIR\icons\icon.ico"
72 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\toolbars.xrc"
73 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\tk84.dll"
74 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\tcl84.dll"
75 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\resources.xrc"
76 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\resources.wxg"
77 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\python23.dll"
78 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\pyRXP.pyd"
79 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\photoreider.exe"
80 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\mmap.pyd"
81 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\library.zip"
82 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\datetime.pyd"
83 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\_xrc.pyd"
84 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\_windows.pyd"
85 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\_tkinter.pyd"
86 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\_sre.pyd"
87 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\_misc.pyd"
88 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\_imagingtk.pyd"
89 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\_imagingft.pyd"
90 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\_imaging.pyd"
91 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\_gdi.pyd"
92 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\_core.pyd"
93 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\_controls.pyd"
94 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\zlib.pyd"
95 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\README.txt"
96 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\TODO.txt"
97 SetOutPath "$INSTDIR\icons"
98 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\zoom_out.xpm"
99 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\zoom_in_win.xpm"
100 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\zoom_in.xpm"
101 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\zip_win.xpm"
102 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\zip.xpm"
103 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\view.xpm"
104 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\up.xpm"
105 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\thumbnails_win.xpm"
106 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\thumbnails.xpm"
107 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\slideshow.xpm"
108 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\rotate_right_win.xpm"
109 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\rotate_right.xpm"
110 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\rotate_left_win.xpm"
111 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\rotate_left.xpm"
112 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\remember_settings.xpm"
113 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\refresh_win.xpm"
114 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\refresh.xpm"
115 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\prev_image_win.xpm"
116 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\prev_image.xpm"
117 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\open_archive_win.xpm"
118 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\open_archive.xpm"
119 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\next_image_win.xpm"
120 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\next_image.xpm"
121 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\last_image_win.xpm"
122 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\last_image.xpm"
123 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\icon.xpm"
124 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\icon.ico"
125 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\icon.bmp"
126 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\full_screen.xpm"
127 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\fit_screen.xpm"
128 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\first_image_win.xpm"
129 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\first_image.xpm"
130 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\file_xpm.xpm"
131 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\file_xcf.xpm"
132 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\file_xbm.xpm"
133 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\file_unknown.xpm"
134 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\file_tif.xpm"
135 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\file_psd.xpm"
136 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\file_pnm.xpm"
137 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\file_png.xpm"
138 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\file_pcx.xpm"
139 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\file_jpg.xpm"
140 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\file_image.xpm"
141 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\file_ico.xpm"
142 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\file_gif.xpm"
143 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\file_bmp.xpm"
144 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\exit_win.xpm"
145 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\exit.xpm"
146 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\down.xpm"
147 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\dir_up_win.xpm"
148 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\dir_up.xpm"
149 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\details_win.xpm"
150 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\details.xpm"
151 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\default_zoom_win.xpm"
152 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\default_zoom.xpm"
153 File "C:\cygwin\home\r2levesq\ndf\photoreider\PhotoReider\icons\zoom_out_win.xpm"
154 SectionEnd
156 Section -AdditionalIcons
157 CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk" "$INSTDIR\uninst.exe"
158 SectionEnd
160 Section -Post
161 WriteUninstaller "$INSTDIR\uninst.exe"
162 WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\photoreider.exe"
163 WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
164 WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
165 WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\w9xpopen.exe"
166 WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
167 WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "${PRODUCT_STARTMENU_REGVAL}" "$ICONS_GROUP"
168 WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
169 WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
170 SectionEnd
173 Function un.onUninstSuccess
174 HideWindow
175 MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer."
176 FunctionEnd
178 Function un.onInit
179 MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name) and all of its components?" IDYES +2
180 Abort
181 FunctionEnd
183 Section Uninstall
184 ReadRegStr $ICONS_GROUP ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "${PRODUCT_STARTMENU_REGVAL}"
185 Delete "$INSTDIR\uninst.exe"
186 Delete "$INSTDIR\icons\zoom_out_win.xpm"
187 Delete "$INSTDIR\icons\default_zoom.xpm"
188 Delete "$INSTDIR\icons\default_zoom_win.xpm"
189 Delete "$INSTDIR\icons\details.xpm"
190 Delete "$INSTDIR\icons\details_win.xpm"
191 Delete "$INSTDIR\icons\dir_up.xpm"
192 Delete "$INSTDIR\icons\dir_up_win.xpm"
193 Delete "$INSTDIR\icons\down.xpm"
194 Delete "$INSTDIR\icons\exit.xpm"
195 Delete "$INSTDIR\icons\exit_win.xpm"
196 Delete "$INSTDIR\icons\file_bmp.xpm"
197 Delete "$INSTDIR\icons\file_gif.xpm"
198 Delete "$INSTDIR\icons\file_ico.xpm"
199 Delete "$INSTDIR\icons\file_image.xpm"
200 Delete "$INSTDIR\icons\file_jpg.xpm"
201 Delete "$INSTDIR\icons\file_pcx.xpm"
202 Delete "$INSTDIR\icons\file_png.xpm"
203 Delete "$INSTDIR\icons\file_pnm.xpm"
204 Delete "$INSTDIR\icons\file_psd.xpm"
205 Delete "$INSTDIR\icons\file_tif.xpm"
206 Delete "$INSTDIR\icons\file_unknown.xpm"
207 Delete "$INSTDIR\icons\file_xbm.xpm"
208 Delete "$INSTDIR\icons\file_xcf.xpm"
209 Delete "$INSTDIR\icons\file_xpm.xpm"
210 Delete "$INSTDIR\icons\first_image.xpm"
211 Delete "$INSTDIR\icons\first_image_win.xpm"
212 Delete "$INSTDIR\icons\fit_screen.xpm"
213 Delete "$INSTDIR\icons\full_screen.xpm"
214 Delete "$INSTDIR\icons\icon.bmp"
215 Delete "$INSTDIR\icons\icon.ico"
216 Delete "$INSTDIR\icons\icon.xpm"
217 Delete "$INSTDIR\icons\last_image.xpm"
218 Delete "$INSTDIR\icons\last_image_win.xpm"
219 Delete "$INSTDIR\icons\next_image.xpm"
220 Delete "$INSTDIR\icons\next_image_win.xpm"
221 Delete "$INSTDIR\icons\open_archive.xpm"
222 Delete "$INSTDIR\icons\open_archive_win.xpm"
223 Delete "$INSTDIR\icons\prev_image.xpm"
224 Delete "$INSTDIR\icons\prev_image_win.xpm"
225 Delete "$INSTDIR\icons\refresh.xpm"
226 Delete "$INSTDIR\icons\refresh_win.xpm"
227 Delete "$INSTDIR\icons\remember_settings.xpm"
228 Delete "$INSTDIR\icons\rotate_left.xpm"
229 Delete "$INSTDIR\icons\rotate_left_win.xpm"
230 Delete "$INSTDIR\icons\rotate_right.xpm"
231 Delete "$INSTDIR\icons\rotate_right_win.xpm"
232 Delete "$INSTDIR\icons\slideshow.xpm"
233 Delete "$INSTDIR\icons\thumbnails.xpm"
234 Delete "$INSTDIR\icons\thumbnails_win.xpm"
235 Delete "$INSTDIR\icons\up.xpm"
236 Delete "$INSTDIR\icons\view.xpm"
237 Delete "$INSTDIR\icons\zip.xpm"
238 Delete "$INSTDIR\icons\zip_win.xpm"
239 Delete "$INSTDIR\icons\zoom_in.xpm"
240 Delete "$INSTDIR\icons\zoom_in_win.xpm"
241 Delete "$INSTDIR\icons\zoom_out.xpm"
242 Delete "$INSTDIR\zlib.pyd"
243 Delete "$INSTDIR\_controls.pyd"
244 Delete "$INSTDIR\_core.pyd"
245 Delete "$INSTDIR\_gdi.pyd"
246 Delete "$INSTDIR\_imaging.pyd"
247 Delete "$INSTDIR\_imagingft.pyd"
248 Delete "$INSTDIR\_imagingtk.pyd"
249 Delete "$INSTDIR\_misc.pyd"
250 Delete "$INSTDIR\_sre.pyd"
251 Delete "$INSTDIR\_tkinter.pyd"
252 Delete "$INSTDIR\_windows.pyd"
253 Delete "$INSTDIR\_xrc.pyd"
254 Delete "$INSTDIR\datetime.pyd"
255 Delete "$INSTDIR\library.zip"
256 Delete "$INSTDIR\mmap.pyd"
257 Delete "$INSTDIR\photoreider.exe"
258 Delete "$INSTDIR\pyRXP.pyd"
259 Delete "$INSTDIR\python23.dll"
260 Delete "$INSTDIR\resources.wxg"
261 Delete "$INSTDIR\resources.xrc"
262 Delete "$INSTDIR\tcl84.dll"
263 Delete "$INSTDIR\tk84.dll"
264 Delete "$INSTDIR\toolbars.xrc"
265 Delete "$INSTDIR\w9xpopen.exe"
266 Delete "$INSTDIR\wxbase251h_net_vc.dll"
267 Delete "$INSTDIR\wxbase251h_vc.dll"
268 Delete "$INSTDIR\wxbase251h_xml_vc.dll"
269 Delete "$INSTDIR\wxmsw251h_adv_vc.dll"
270 Delete "$INSTDIR\wxmsw251h_core_vc.dll"
271 Delete "$INSTDIR\wxmsw251h_html_vc.dll"
272 Delete "$INSTDIR\wxmsw251h_xrc_vc.dll"
273 Delete "$INSTDIR\README.txt"
274 Delete "$INSTDIR\TODO.txt"
276 Delete "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk"
277 Delete "$DESKTOP\Photoreider.lnk"
278 Delete "$SMPROGRAMS\$ICONS_GROUP\Photoreider.lnk"
279 Delete "$SMPROGRAMS\$ICONS_GROUP\Read Me.lnk"
281 RMDir "$SMPROGRAMS\$ICONS_GROUP"
282 RMDir "$INSTDIR\icons"
283 RMDir "$INSTDIR"
285 DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
286 DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
287 SetAutoClose true
288 SectionEnd