You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Added check, if the application is running, because this lead to
errors
- Added option to add a shortcut to the autostart folder (RocketChat#57)
- Added option to launch the app after the installation (RocketChat#37)
- Added option to choose the installation directory (RocketChat#41)
- Added the shortcuts as options, so you can choose, if you want a
desktop, autostart or start menu shortcut (a part of RocketChat#96)
- Enabled / Added these pages: components, browse installation folder,
finish page
- Extended the comments, so it's easier to find the correct spots
; Check if the application is currently running, show message if it is
91
+
retryInstallation:
92
+
FindWindow$0"Chrome_WidgetWin_1""Rocket.Chat"
93
+
StrCmp$00 notRunning
94
+
MessageBoxMB_RETRYCANCEL|MB_ICONEXCLAMATION"${productName} is currently running. Please close the application to continue." /SD IDCANCELIDRETRY retryInstallation
95
+
Abort
96
+
notRunning:
67
97
68
98
FunctionEnd
69
99
70
-
; Custom welcome page
100
+
; --------------------------------
101
+
; Welcome page [custom]
102
+
; --------------------------------
103
+
71
104
Function welcome
72
105
73
106
nsDialogs::Create1018
74
107
75
-
${NSD_CreateLabel}185 1u 210100% "Welcome to ${productName} version ${version} installer.$\r$\n$\r$\nClick install to begin."
108
+
${NSD_CreateLabel}185 1u 210100% "Welcome to ${productName} version ${version} installer.$\r$\n$\r$\nClick next to continue."
UninstallText"Don't like ${productName} anymore? Hit uninstall button."
123
212
UninstallIcon"${icon}"
124
213
214
+
; --------------------------------
215
+
; Page layout
216
+
; --------------------------------
217
+
125
218
UninstPagecustom un.confirm un.confirmOnLeave
126
219
UninstPageinstfiles
127
220
221
+
; --------------------------------
222
+
; Control variables
223
+
; --------------------------------
224
+
128
225
Var RemoveAppDataCheckbox
129
226
Var RemoveAppDataCheckbox_State
130
227
131
-
; Custom uninstall confirm page
228
+
; --------------------------------
229
+
; Uninstaller init
230
+
; --------------------------------
231
+
232
+
Function un.onInit
233
+
234
+
; Check if the application is currently running, show message if it is
235
+
retryUninstall:
236
+
FindWindow$0"Chrome_WidgetWin_1""Rocket.Chat"
237
+
StrCmp$00 notRunning
238
+
MessageBoxMB_RETRYCANCEL|MB_ICONEXCLAMATION"${productName} is currently running. Please close the application to continue." /SD IDCANCELIDRETRY retryUninstall
239
+
Abort
240
+
notRunning:
241
+
242
+
FunctionEnd
243
+
244
+
; --------------------------------
245
+
; Confirm page [custom]
246
+
; --------------------------------
247
+
132
248
Function un.confirm
133
249
134
250
nsDialogs::Create1018
@@ -149,17 +265,27 @@ Function un.confirmOnLeave
149
265
150
266
FunctionEnd
151
267
152
-
; Uninstall declarations
268
+
; --------------------------------
269
+
; Uninstallation sections
270
+
; --------------------------------
271
+
153
272
Section"Uninstall"
154
273
274
+
; Remove registry entries
155
275
DeleteRegKeyHKLM"${uninstkey}"
156
276
DeleteRegKeyHKLM"${regkey}"
157
277
158
-
SetShellVarContextall
159
-
Delete"$SMPROGRAMS\${productName}.lnk"
160
278
; Remove desktop shortcut
161
279
Delete"$DESKTOP\${productName}.lnk"
162
-
; Remove whole directory from Program Files
280
+
281
+
; Remove autostart entry
282
+
Delete"$SMSTARTUP\${productName}.lnk"
283
+
284
+
; Remove start menu entry
285
+
SetShellVarContextall
286
+
Delete"$SMPROGRAMS\${productName}.lnk"
287
+
288
+
; Remove whole directory from installation directory
163
289
RMDir/r"$INSTDIR"
164
290
165
291
; Remove also appData directory generated by your app if user checked this option
0 commit comments