PortableApps.com Platform and Suite 1.6 have been released.

Variables?

Submitted by alydhiends on March 25, 2009 - 9: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 Smiling

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 SYSTEMDRIVE

Now your var is $0

I'm brazilian, my english isn't good. Thanks.

Perfect! Thanks a lot :)

Perfect! Thanks a lot Smiling