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!
New: Run-Command (Dec 2, 2024), Platform 29.5.3 (Jun 27, 2024)
1,100+ portable packages, 1.1 billion downloads
No Ads Nov/Dec!, Please donate today
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
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
Now your var is $0
Perfect! Thanks a lot