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