I need to be able to change the system PATH environment variable (i.e.: remove one directory from the system PATH environment variable and add a replacement - or do a search and replace of the PATH variable). I've looked at the "Edit Environment Varible Dialog" but this only allows for the complete replacement, prepend, or append of the variable - I need to replace a part of the variable. The old directory was added manually so uninstalling the application will not help. This is an example:
Current PATH environment variable:
PATH=C:\Program Files\ActiveState Komodo Edit 5\;C:\old dir;C:\Windows\system32;C:\Windows
New PATH should be:
PATH=C:\Program Files\ActiveState Komodo Edit 5\;C:\new dir;C:\Windows\system32;C:\Windows
(of course the actual PATH will be different on any given system)
Anyone with any experience with this?
Thanks;
James Maroney
FOLLOW US
Get the latest news in Application Packaging