|
|
#1 |
|
Junior Member
Join Date: May 2008
Posts: 8
|
System Variable as InstallDir
Hello Together
I have a question and I hope you can help me. I want use the windows systemvariable %allusersprofile% as installdir variable in NSIS. But the systemvariable %allusersprofile% is not available as a default Constant. Is it possible to use this variable and set it as instaldir? Thanks for Help |
|
|
|
|
|
#2 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
There's $profile which is set to all/current depending on the SetShellVarContext.
Here's an alternative: Function .onInit ReadENVStr $R0 ALLUSERSPROFILE StrCpy $INSTDIR "$R0\My Application" ;;;;;; ;;;;;; Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2008
Posts: 8
|
Ah thanks. It works!
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|