|
|
#1 |
|
Junior Member
Join Date: Oct 2009
Posts: 2
|
PATH is erased/replaced
Hi,
I've made a commandline utility (.exe) that depends on a couple of dll's. After looking for some kind of packer that would allow me to let users download and use a single (working) exe (with the dll's included) it seems that is impossible. So someone pointed me to NSIS, which is a great tool, although I don't actually need to install software. Crucial in my setup is that users don't have to add the directory with the exe to their environmental PATH variable. NSIS does a great job with this but in my case it erased my entire PATH even though I used A(ppend). Gladly enough I read a lot of related posts before I tried, so I made a backup of my PATH. But I can't seem to find a solution to this problem. My PATH contains 1081 characters and slimming it down does solve the problem. But I can't ask my users to do that or otherwise I could just as well offer a zip and make them add the dir to their PATH themselves. 1)Is there a 'real' solution to this problem? 2)Can I otherwise somehow count the characters of their PATH variable and show a warning that their PATH will not be updated and that they will (still) have to add it themselves manually and show/link to a manual of how to do this? 3)The directory which should added to the PATH variable is now hardcoded in my nsi script, but when people choose to 'install' in another directory this won't be correct. How can I retrieve what 'custom' directory they choose and use that dir to append to their PATH? 4)As I said before: I'm not actually installing software, it's more like saving into a dir and setting up the PATH. So, can I leave out all the registry stuff from the example.nsi or can this be usefull for other things such as an uninstaller which in my case would be just to remove the dir+contents and the PATH var? I'm using NSIS 2.45 and Windows XP. Thanks in advance! Although the provided examples seem quite easy to change to reflect my setup I'm still posting it to make sure it does not contain unwanted, unneeded or even dangerous stuff. code: Cheers, Jan Last edited by jan007; 3rd October 2009 at 11:28. |
|
|
|
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|