only remove protocol handler if installed

This commit is contained in:
Stephen Birarda 2016-01-11 15:35:53 -08:00
parent 929976e781
commit 9f2fbc37bb

View file

@ -876,8 +876,10 @@ Section "Uninstall"
@CPACK_NSIS_DELETE_ICONS@
@CPACK_NSIS_DELETE_ICONS_EXTRA@
;Delete High Fidelity protocol handling
DeleteRegKey HKCR '@HIGH_FIDELITY_PROTOCOL@'
;Delete High Fidelity protocol handling, if installed
${If} "@PRODUCTION_BUILD@" == "1"
DeleteRegKey HKCR '@HIGH_FIDELITY_PROTOCOL@'
${EndIf}
;Delete empty start menu parent diretories
StrCpy $MUI_TEMP "$SMPROGRAMS\$MUI_TEMP"