More bug fixes
This commit is contained in:
parent
68b1f6f9f4
commit
8afc9e1840
|
@ -18,8 +18,9 @@
|
||||||
System::Call '${GetUserName}(.r0, ${NSIS_MAX_STRLEN}) .r1'
|
System::Call '${GetUserName}(.r0, ${NSIS_MAX_STRLEN}) .r1'
|
||||||
${If} ${IsRunOnce}
|
${If} ${IsRunOnce}
|
||||||
${AndIf} $0 == "SYSTEM"
|
${AndIf} $0 == "SYSTEM"
|
||||||
; Running in setup mode. Reboot is mandatory.
|
; Running in setup mode
|
||||||
Reboot
|
SetErrorLevel ${ERROR_SUCCESS}
|
||||||
|
Quit
|
||||||
${Else}
|
${Else}
|
||||||
; Regular reboot.
|
; Regular reboot.
|
||||||
Reboot
|
Reboot
|
||||||
|
@ -257,6 +258,12 @@ Function OnRunOnceDone
|
||||||
${If} $0 == "SYSTEM"
|
${If} $0 == "SYSTEM"
|
||||||
; Configure winlogon to proceed to the logon dialog
|
; Configure winlogon to proceed to the logon dialog
|
||||||
Call CleanUpRunOnce
|
Call CleanUpRunOnce
|
||||||
|
; Reboot
|
||||||
|
${DetailPrint} "$(StatusRestarting)"
|
||||||
|
Sleep 2000
|
||||||
|
Reboot
|
||||||
|
; Just to be sure
|
||||||
|
Sleep 10000
|
||||||
${EndIf}
|
${EndIf}
|
||||||
${EndIf}
|
${EndIf}
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
Loading…
Reference in New Issue