|
|
#1 |
|
Senior Member
|
addtopath function doesnt add all_users
I made a booboo on my last installer than overwrote the allusers path so i need to make a patch for my future installer. so i only want to add it to the path if it isn't in there, that way it wont add multiple strings of it.
i want to add it to: HKEY_LOCAL_MACHINE "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" "Path" in the beginning of the code i do this: !define ALL_USERS !include "WinMessages.NSH" !include "AddToPath.nsh" later on i do this: Push "%SystemRoot%\System32\WBEM" Call AddToPath it doesn't add it into the environment variables. what am i doing wrong? would this check automatically if it isnt in the path already or do i need to use StrStr to search? thanks also when the program gets uninstalled i still want to keep the path change present as i overwrote a system path that is required by winders. |
|
|
|
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|