Remove Allow OS Upgrade keys when uninstalling

This commit is contained in:
2025-09-28 14:08:26 +00:00
parent 02a1f94ec4
commit fcca984693

View File

@@ -511,6 +511,16 @@ Section "-un.Legacy Update Server" un.WUSERVER
${EndIf} ${EndIf}
SectionEnd SectionEnd
Section "-un.Allow OS Upgrade" un.ALLOWOSUPGRADE
DeleteRegValue HKLM "${REGPATH_WUPOLICY}" "AllowOSUpgrade"
DeleteRegValue HKLM "${REGPATH_WUPOLICY}" "DisableOSUpgrade"
DeleteRegValue HKLM "${REGPATH_WUPOLICY}\OSUpgrade" "AllowOSUpgrade"
DeleteRegValue HKLM "${REGPATH_WUPOLICY}\OSUpgrade" "DisableOSUpgrade"
DeleteRegValue HKLM "${REGPATH_WU}\OSUpgrade" "AllowOSUpgrade"
DeleteRegValue HKLM "${REGPATH_WU}\OSUpgrade" "DisableOSUpgrade"
!insertmacro RestartWUAUService
SectionEnd
Section "-un.Legacy Update website" un.ACTIVEX Section "-un.Legacy Update website" un.ACTIVEX
SetOutPath $INSTDIR SetOutPath $INSTDIR