Skip to content

Commit d937699

Browse files
committed
Typos
1 parent bdc369e commit d937699

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
@@ -92,19 +92,19 @@ Var IsPowerShellAvailable
9292

9393
!macro _CHECK_APP_RUNNING
9494
${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}
9797
# allow app to exit without explicit kill
9898
Sleep 300
99-
${endIf}
99+
${EndIf}
100100

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

@@ -123,30 +123,30 @@ Var IsPowerShellAvailable
123123
IntOp $R1 $R1 + 1
124124

125125
!insertmacro FIND_PROCESS "$INSTDIR" "${APP_EXECUTABLE_FILENAME}" $R0
126-
${if} $R0 == 0
126+
${If} $R0 == 0
127127
# wait to give a chance to exit gracefully
128128
Sleep 1000
129129
!insertmacro KILL_PROCESS "$INSTDIR" "${APP_EXECUTABLE_FILENAME}"
130130
!insertmacro FIND_PROCESS "$INSTDIR" "${APP_EXECUTABLE_FILENAME}" $R0
131131
${If} $R0 == 0
132132
DetailPrint `Waiting for "${PRODUCT_NAME}" to close.`
133133
Sleep 2000
134-
${else}
134+
${Else}
135135
Goto not_running
136-
${endIf}
137-
${else}
136+
${EndIf}
137+
${Else}
138138
Goto not_running
139-
${endIf}
139+
${EndIf}
140140

141141
# App likely running with elevated permissions.
142142
# Ask user to close it manually
143-
${if} $R1 > 1
143+
${If} $R1 > 1
144144
MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION "$(appCannotBeClosed)" /SD IDCANCEL IDRETRY loop
145145
Quit
146-
${else}
146+
${Else}
147147
Goto loop
148-
${endIf}
148+
${EndIf}
149149
not_running:
150-
${endIf}
151-
${endIf}
150+
${EndIf}
151+
${EndIf}
152152
!macroend

0 commit comments

Comments
 (0)