You are here

Variables?

6 posts / 0 new
Last post
alydhiends
Offline
Last seen: 1 year 4 months ago
Joined: 2006-11-27 13:56
Variables?

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!

Jimbo
Offline
Last seen: 3 years 1 week ago
Joined: 2007-12-17 05:43
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

alydhiends
Offline
Last seen: 1 year 4 months ago
Joined: 2006-11-27 13:56
thank you very much :)

thank you very much Smile

alydhiends
Offline
Last seen: 1 year 4 months ago
Joined: 2006-11-27 13:56
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

Ph4n70m
Ph4n70m's picture
Offline
Last seen: 8 months 1 week ago
Joined: 2007-01-12 19:22
ReadEnvStr $0 SYSTEMDRIVE

ReadEnvStr $0 SYSTEMDRIVE

Now your var is $0

alydhiends
Offline
Last seen: 1 year 4 months ago
Joined: 2006-11-27 13:56
Perfect! Thanks a lot :)

Perfect! Thanks a lot Smile

Log in or register to post comments