Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 4th December 2006, 06:47   #1
sunlight112
Senior Member
 
Join Date: Oct 2006
Posts: 129
Question Function un.RemoveFromPath is not work?

Hi all,
I am trying to set environment path variable by NSIS.I also search on Wiki follow this link . Now I can set environment well but I want to delete what I set in path variable.I try with this un.RemoveFromPath or un.RemoveFromEnvVar. Variable path is not deleted when I finished my installer.
I try with example but I can not delete it.
If you used to see this problem please tell me why?
I may be work wrong some places?
I aslo create file AddToPath.nsh and add it in my script. But variable path is not deleted.
Please help me!
Thank in advance,
sunlight112 is offline   Reply With Quote
Old 5th December 2006, 04:23   #2
bholliger
Senior Member
 
Join Date: Jul 2004
Location: Switzerland
Posts: 223
Hi sunlight112!

Can you see the value in the system properties dialog? Or is it gone?

Cheers

Bruno
bholliger is offline   Reply With Quote
Old 5th December 2006, 05:15   #3
sunlight112
Senior Member
 
Join Date: Oct 2006
Posts: 129
Thank bholliger,
After I try with function un.RemoveFromPath. I have restart my computer but environment path variable is still in it.
Before I try with my function, the path is
code:

%SYSTEMROOT%\SYSTEM32;%SYSTEMROOT%;%SYSTEMROOT%\SYSTEM32\WBEM;C:\WINDOWS;C:\WINDOWS\SYSTEM32\WBEM;C:\WINDOWS\SYSTEM32;C:\Program Files\Java\jre1.5.0_08\bin;C:\MySQL\MySQL Server 5.0\bin


I used function un.RemoveFromPath to make path variable like this
code:

%SYSTEMROOT%\SYSTEM32;%SYSTEMROOT%;%SYSTEMROOT%\SYSTEM32\WBEM;C:\WINDOWS;C:\WINDOWS\SYSTEM32\WBEM;C:\WINDOWS\SYSTEM32


It still displays in Path variable although I have used it already.
Does it code in function un.Removefrompath has problem?
If you know, please tell me!
Thank in advance,
sunlight112 is offline   Reply With Quote
Reply
Go Back   Winamp 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