From f7dcb6afd615286cfe06dacd72f59a11f1487bef Mon Sep 17 00:00:00 2001 From: jp9000 Date: Tue, 22 Jun 2021 19:05:43 -0700 Subject: [PATCH] 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. --- UI/installer/mp-installer.nsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UI/installer/mp-installer.nsi b/UI/installer/mp-installer.nsi index 6ce1dab2a..5346ba934 100644 --- a/UI/installer/mp-installer.nsi +++ b/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: