File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed
packages/app-builder-lib/templates/nsis/include Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -91,19 +91,19 @@ Var IsPowerShellAvailable
91
91
92
92
!macro _CHECK_APP_RUNNING
93
93
${GetProcessInfo} 0 $pid $1 $2 $3 $4
94
- ${if } $3 != " ${APP_EXECUTABLE_FILENAME}"
95
- ${if } ${isUpdated}
94
+ ${If } $3 != " ${APP_EXECUTABLE_FILENAME}"
95
+ ${If } ${isUpdated}
96
96
# allow app to exit without explicit kill
97
97
Sleep 300
98
- ${endIf }
98
+ ${EndIf }
99
99
100
100
!insertmacro FIND_PROCESS " $INSTDIR" $R0
101
- ${if } $R0 == 0
102
- ${if } ${isUpdated}
101
+ ${If } $R0 == 0
102
+ ${If } ${isUpdated}
103
103
# allow app to exit without explicit kill
104
104
Sleep 1000
105
105
Goto doStopProcess
106
- ${endIf }
106
+ ${EndIf }
107
107
MessageBox MB_OKCANCEL |MB_ICONEXCLAMATION " $(appRunning)" /SD IDOK IDOK doStopProcess
108
108
Quit
109
109
@@ -122,30 +122,30 @@ Var IsPowerShellAvailable
122
122
IntOp $R1 $R1 + 1
123
123
124
124
!insertmacro FIND_PROCESS " $INSTDIR" $R0
125
- ${if } $R0 == 0
125
+ ${If } $R0 == 0
126
126
# wait to give a chance to exit gracefully
127
127
Sleep 1000
128
128
!insertmacro KILL_PROCESS " $INSTDIR" " ${APP_EXECUTABLE_FILENAME}"
129
129
!insertmacro FIND_PROCESS " $INSTDIR" $R0
130
130
${If} $R0 == 0
131
131
DetailPrint ` Waiting for "${PRODUCT_NAME}" to close.`
132
132
Sleep 2000
133
- ${else }
133
+ ${Else }
134
134
Goto not_running
135
- ${endIf }
136
- ${else }
135
+ ${EndIf }
136
+ ${Else }
137
137
Goto not_running
138
- ${endIf }
138
+ ${EndIf }
139
139
140
140
# App likely running with elevated permissions.
141
141
# Ask user to close it manually
142
- ${if } $R1 > 1
142
+ ${If } $R1 > 1
143
143
MessageBox MB_RETRYCANCEL |MB_ICONEXCLAMATION " $(appCannotBeClosed)" /SD IDCANCEL IDRETRY loop
144
144
Quit
145
- ${else }
145
+ ${Else }
146
146
Goto loop
147
- ${endIf }
147
+ ${EndIf }
148
148
not_running:
149
- ${endIf }
150
- ${endIf }
149
+ ${EndIf }
150
+ ${EndIf }
151
151
!macroend
You can’t perform that action at this time.
0 commit comments