$INSTALL DIR depending on User Status
Hi evryone
I really hope someone could help me for my problem
I would like to put a default path in the installer depending on the status of the user
** If the user is Administrator $INSTDIR would have the value $PROGRAMFILES
** If the user is NOT Administrator $INSTDIR would have the value $APPDATA
In order to realize that I compute this section
section "Default Directory"
userInfo::getAccountType
pop $0
strCmp $0 "Admin" +2
StrCpy $INSTDIR "$APPDATA\myproject"
StrCpy $INSTDIR "$PROGRAMFILES\myproject"
sectionEnd
I can't access the value of $INSTDIR and i don tknow if this section is working
Someone has a suggestion??
Thank you