Variables?alydhiends (Homepage)
- March 25, 2009 - 8:40am
Aside from these variables $PROGRAMFILES, $APPDATA, $LOCALAPPDATA...etc, Can someone tell me what variables to point to Root Drive (C:) and "All Users" (C:\Documents and Settings\All Users\). Thank you! ( categories: )
|

easy way to find them
run a command prompt (Start-->Run CMD.exe) and type
SET
on its own. It'll list all the variables on your system.
The ones you are after are (I think)
SystemDrive
ALLUSERSPROFILE
Case was copy/pasted
thank you very much :)
thank you very much
Hmm, wait...
I wonder why it keeps saying:
------------------------------
1 warning:
unknown variable/constant "SYSTEMDRIVE" detected...
------------------------------
Well, how do I use it?
I only know how to use it like %SYSTEMDRIVE%, $SYSTEMDRIVE...
but it doesn't work on nsis, only in the command line.
Is there a way to make it work with NSIS? Command line tips on nsis?
Thanks
ReadEnvStr $0 SYSTEMDRIVE
ReadEnvStr $0 SYSTEMDRIVENow your var is $0
Perfect! Thanks a lot :)
Perfect! Thanks a lot