ensure current user context for uninstaller

This commit is contained in:
Stephen Birarda 2016-01-25 15:59:17 -08:00
parent 9d4b529223
commit c7228ce020

View file

@ -826,6 +826,9 @@ FunctionEnd
!ifdef INNER
Section "Uninstall"
; use user for context of data/startup folders
SetShellVarContext current
ReadRegStr $START_MENU SHCTX \
"Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@" "StartMenu"
;MessageBox MB_OK "Start menu is in: $START_MENU"