Set install dir to local app data if the user is not elevated
This commit is contained in:
@ -147,7 +147,7 @@ Function .onInit
|
||||
UserInfo::GetAccountType
|
||||
pop $0
|
||||
${If} $0 != "admin"
|
||||
InstallDir "$LOCALAPPDATA\${COMPANYNAME}\${APPNAME}"
|
||||
StrCpy INSTDIR "$LOCALAPPDATA\${COMPANYNAME}\${APPNAME}"
|
||||
${EndIf}
|
||||
!insertmacro MUI_LANGDLL_DISPLAY
|
||||
Call ShouldInstall64Bit
|
||||
|
Reference in New Issue
Block a user