Prev Previous Post   Next Post Next
Old 20th October 2006, 16:10   #1
jweinraub
Senior Member
 
Join Date: Jan 2004
Posts: 197
Send a message via AIM to jweinraub
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.
jweinraub is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump