Skip to content

Commit 50e8b45

Browse files
committed
Typos
1 parent 5ca7c3a commit 50e8b45

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

packages/app-builder-lib/templates/nsis/include/allowOnlyOneInstallerInstance.nsh

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -91,19 +91,19 @@ Var IsPowerShellAvailable
9191

9292
!macro _CHECK_APP_RUNNING
9393
${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}
9696
# allow app to exit without explicit kill
9797
Sleep 300
98-
${endIf}
98+
${EndIf}
9999

100100
!insertmacro FIND_PROCESS "$INSTDIR" $R0
101-
${if} $R0 == 0
102-
${if} ${isUpdated}
101+
${If} $R0 == 0
102+
${If} ${isUpdated}
103103
# allow app to exit without explicit kill
104104
Sleep 1000
105105
Goto doStopProcess
106-
${endIf}
106+
${EndIf}
107107
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION "$(appRunning)" /SD IDOK IDOK doStopProcess
108108
Quit
109109

@@ -122,30 +122,30 @@ Var IsPowerShellAvailable
122122
IntOp $R1 $R1 + 1
123123

124124
!insertmacro FIND_PROCESS "$INSTDIR" $R0
125-
${if} $R0 == 0
125+
${If} $R0 == 0
126126
# wait to give a chance to exit gracefully
127127
Sleep 1000
128128
!insertmacro KILL_PROCESS "$INSTDIR" "${APP_EXECUTABLE_FILENAME}"
129129
!insertmacro FIND_PROCESS "$INSTDIR" $R0
130130
${If} $R0 == 0
131131
DetailPrint `Waiting for "${PRODUCT_NAME}" to close.`
132132
Sleep 2000
133-
${else}
133+
${Else}
134134
Goto not_running
135-
${endIf}
136-
${else}
135+
${EndIf}
136+
${Else}
137137
Goto not_running
138-
${endIf}
138+
${EndIf}
139139

140140
# App likely running with elevated permissions.
141141
# Ask user to close it manually
142-
${if} $R1 > 1
142+
${If} $R1 > 1
143143
MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION "$(appCannotBeClosed)" /SD IDCANCEL IDRETRY loop
144144
Quit
145-
${else}
145+
${Else}
146146
Goto loop
147-
${endIf}
147+
${EndIf}
148148
not_running:
149-
${endIf}
150-
${endIf}
149+
${EndIf}
150+
${EndIf}
151151
!macroend

0 commit comments

Comments
 (0)