6 Commits
v2.2 ... v2.3

View File

@@ -487,30 +487,38 @@ ${MementoSectionDone}
; Uninstaller ; Uninstaller
Section "-un.Legacy Update Server" un.WUSERVER Section "-un.Legacy Update Server" un.WUSERVER
; Clear WSUS server ; Clear WSUS server
${If} ${AtMostWinVista} ReadRegStr $0 HKLM "${REGPATH_WUPOLICY}" "WUServer"
ReadRegStr $0 HKLM "${REGPATH_WUPOLICY}" "WUServer" ${VerbosePrint} "WUServer: $0"
${VerbosePrint} "WUServer: $0" ${If} $0 == "${WSUS_SERVER}"
${If} $0 == "${WSUS_SERVER}" ${OrIf} $0 == "${WSUS_SERVER_HTTPS}"
${OrIf} $0 == "${WSUS_SERVER_HTTPS}" DeleteRegValue HKLM "${REGPATH_WUPOLICY}" "WUServer"
DeleteRegValue HKLM "${REGPATH_WUPOLICY}" "WUServer" DeleteRegValue HKLM "${REGPATH_WUAUPOLICY}" "UseWUServer"
DeleteRegValue HKLM "${REGPATH_WUAUPOLICY}" "UseWUServer"
${EndIf}
ReadRegStr $0 HKLM "${REGPATH_WUPOLICY}" "WUStatusServer"
${VerbosePrint} "WUStatusServer: $0"
${If} $0 == "${WSUS_SERVER}"
${OrIf} $0 == "${WSUS_SERVER_HTTPS}"
DeleteRegValue HKLM "${REGPATH_WUPOLICY}" "WUStatusServer"
DeleteRegValue HKLM "${REGPATH_WUAUPOLICY}" "UseWUServer"
${EndIf}
ReadRegStr $0 HKLM "${REGPATH_WU}" "URL"
${VerbosePrint} "URL: $0"
${If} $0 == "${UPDATE_URL}"
${OrIf} $0 == "${UPDATE_URL_HTTPS}"
DeleteRegValue HKLM "${REGPATH_WU}" "URL"
${EndIf}
${EndIf} ${EndIf}
ReadRegStr $0 HKLM "${REGPATH_WUPOLICY}" "WUStatusServer"
${VerbosePrint} "WUStatusServer: $0"
${If} $0 == "${WSUS_SERVER}"
${OrIf} $0 == "${WSUS_SERVER_HTTPS}"
DeleteRegValue HKLM "${REGPATH_WUPOLICY}" "WUStatusServer"
DeleteRegValue HKLM "${REGPATH_WUAUPOLICY}" "UseWUServer"
${EndIf}
ReadRegStr $0 HKLM "${REGPATH_WU}" "URL"
${VerbosePrint} "URL: $0"
${If} $0 == "${UPDATE_URL}"
${OrIf} $0 == "${UPDATE_URL_HTTPS}"
DeleteRegValue HKLM "${REGPATH_WU}" "URL"
${EndIf}
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 SectionEnd
Section "-un.Legacy Update website" un.ACTIVEX Section "-un.Legacy Update website" un.ACTIVEX
@@ -966,8 +974,7 @@ Function PreDownload
; General ; General
Call DownloadWUA Call DownloadWUA
${If} ${AtMostWin8.1} ${If} ${SectionIsSelected} ${ROOTCERTS}
${AndIf} ${SectionIsSelected} ${ROOTCERTS}
Call DownloadRoots Call DownloadRoots
${EndIf} ${EndIf}
FunctionEnd FunctionEnd