UI: Fix win uninstall not deleting desktop shortcut

The Windows uninstaller was not deleting the desktop shortcut because
the shell context was incorrectly set to "current" for it, causing it to
try to delete in the incorrect location.
This commit is contained in:
jp9000 2021-06-22 19:05:43 -07:00
parent 3cc4feb8dd
commit f7dcb6afd6

View File

@ -453,12 +453,14 @@ Section "un.obs-studio Program Files" UninstallSection1
Delete "$INSTDIR\uninstall.exe"
; Delete Shortcuts
SetShellVarContext all
Delete "$DESKTOP\OBS Studio.lnk"
Delete "$SMPROGRAMS\OBS Studio\OBS Studio (32bit).lnk"
Delete "$SMPROGRAMS\OBS Studio\Uninstall.lnk"
${if} ${RunningX64}
Delete "$SMPROGRAMS\OBS Studio\OBS Studio (64bit).lnk"
${endif}
SetShellVarContext current
IfFileExists "$INSTDIR\data\obs-plugins\win-ivcam\seg_service.exe" UnregisterSegService SkipUnreg
UnregisterSegService: