Alstom
12th November 2007 05:35 UTC
Adding a new path to the existing path in System Variables
How do I add a additional path in System Variables?
For Example, I want to add a new path, C:\Program Files\bin, how could I write in the program for it to add a additional path to the existing one?
I am only able to replace the whole path.
Variable: Path
Value: C:\Perl\site\bin;C:\Perl\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Symantec\Norton Ghost 2003\;
n_baua
12th November 2007 09:45 UTC
Hi Alstom,
try enclosing the system path in quotes along with your folder and/or file name.
for e.g. '$WINDIR/YourFolder/YourFile.ext'
kichik
12th November 2007 18:49 UTC
You can use the Path Manipulation functions:
http://nsis.sourceforge.net/Path_Manipulation
Alstom
13th November 2007 02:26 UTC
Hi kichik,
Thanks for your help.
I try it with the Path Manipulation functions but it could only add to the user variables instead of system variables.
I would want to add the path to the "PATH" in "SYSTEM VARIABLE".
kichik
13th November 2007 20:21 UTC
Define ALL_USERS before including the file or use:
http://nsis.sourceforge.net/Path_man...on_in_run-time
Alstom
14th November 2007 05:50 UTC
Hi kichik,
Thanks for your help.
I am able to solve this problem with your help.