Remove Allow OS Upgrade keys when uninstalling
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user