Thread: Path
View Single Post
Old 9th October 2011, 00:56   #4
Major Dude
LoRd_MuldeR's Avatar
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
You should start here:

Maybe try like this:
ReadRegStr $0 HKCU "Environment" "Path" #read current PATH into $0
StrCpy $0 "C:\SomePath;$0" #prepend your path to the current PATH value
WriteRegStr HKCU "Environment" "Path" '$0' #write back the new PATH

(Note that the new PATH may become effective only after a reboot)

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration:
LoRd_MuldeR is offline   Reply With Quote