Archive: Split ReadRegDirStr return up?


Split ReadRegDirStr return up?
I need to do this:

Get RegStr of ModInstallPath "f:\steam\steamapps\tatsudoshi@pc.dk\half-life"

and remove the last "\half-life" part of it, so the string would be:

ModInstallPath "f:\steam\steamapps\tatsudoshi@pc.dk"

Can this be done?


Try this code

http://nsis.sourceforge.net/archive/....php?pageid=52


I have had to realize that it is not possible to what I intended, so I am going to try to do it another way. I need to have my files installed to:

InstallDir "\counter-strike\cstrike\xes"

and when the DirPage comes up, the folder tree is there, but when I browse for a folder, it is only "\xes" which is put together with the tree. How do I get the hole "\counter-strike\cstrike\xes" in the installpath?