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:
parent
3cc4feb8dd
commit
f7dcb6afd6
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user