From 68b1f6f9f48e68034094b77c1e6baadb8c9a2866 Mon Sep 17 00:00:00 2001 From: Vichingo455 Date: Thu, 29 May 2025 08:34:24 +0200 Subject: [PATCH] Bug fixes --- setup/RunOnce.nsh | 12 ++---------- setup/setup.nsi | 2 +- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/setup/RunOnce.nsh b/setup/RunOnce.nsh index b8e8401..3472312 100644 --- a/setup/RunOnce.nsh +++ b/setup/RunOnce.nsh @@ -18,9 +18,8 @@ System::Call '${GetUserName}(.r0, ${NSIS_MAX_STRLEN}) .r1' ${If} ${IsRunOnce} ${AndIf} $0 == "SYSTEM" - ; Running in setup mode. Winlogon will reboot for us. - SetErrorLevel ${ERROR_SUCCESS} - Quit + ; Running in setup mode. Reboot is mandatory. + Reboot ${Else} ; Regular reboot. Reboot @@ -143,13 +142,6 @@ Function RebootIfRequired ${Else} ; Restore setup keys Call CleanUpRunOnce - ; Give the user a moment to understand we're rebooting - ${DetailPrint} "$(StatusRestarting)" - Sleep 2000 - ; Now reboot - Reboot - ; To be sure - Sleep 10000 ${EndIf} FunctionEnd diff --git a/setup/setup.nsi b/setup/setup.nsi index fc7dd79..756dc7b 100644 --- a/setup/setup.nsi +++ b/setup/setup.nsi @@ -304,7 +304,7 @@ ${MementoSection} "$(SectionRootCerts)" ROOTCERTS ${EndIf} ${MementoSectionEnd} -${MementoSection} "$(SectionEnableMU)" WIN7MU +${MementoUnselectedSection} "$(SectionEnableMU)" WIN7MU LegacyUpdateNSIS::EnableMicrosoftUpdate Pop $0 ${If} $0 != 0