sunlight112
4th December 2006 07:47 UTC
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,
bholliger
5th December 2006 05:23 UTC
Hi sunlight112!
Can you see the value in the system properties dialog? Or is it gone?
Cheers
Bruno
sunlight112
5th December 2006 06:15 UTC
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
%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
%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,