Browse Source

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.
jp9000 4 years ago
parent
commit
f7dcb6afd6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      UI/installer/mp-installer.nsi

+ 2 - 0
UI/installer/mp-installer.nsi

@@ -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: