FIX: WSUS keys not removed on uninstall

This commit is contained in:
2025-09-28 13:26:43 +00:00
parent 8afc9e1840
commit 7648e3e921

View File

@@ -487,7 +487,6 @@ ${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}"
@@ -510,7 +509,6 @@ Section "-un.Legacy Update Server" un.WUSERVER
${OrIf} $0 == "${UPDATE_URL_HTTPS}" ${OrIf} $0 == "${UPDATE_URL_HTTPS}"
DeleteRegValue HKLM "${REGPATH_WU}" "URL" DeleteRegValue HKLM "${REGPATH_WU}" "URL"
${EndIf} ${EndIf}
${EndIf}
SectionEnd SectionEnd
Section "-un.Legacy Update website" un.ACTIVEX Section "-un.Legacy Update website" un.ACTIVEX