Archive: Adding a new path to the existing path in System Variables


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\;


Hi Alstom,

try enclosing the system path in quotes along with your folder and/or file name.
for e.g. '$WINDIR/YourFolder/YourFile.ext'


You can use the Path Manipulation functions:

http://nsis.sourceforge.net/Path_Manipulation


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".


Define ALL_USERS before including the file or use:

http://nsis.sourceforge.net/Path_man...on_in_run-time


Hi kichik,

Thanks for your help.

I am able to solve this problem with your help.