Archive: Waiting for uninstall & Linux


Waiting for uninstall & Linux
Two completely different topics, but oh well :)

1) Is there any (easyish) way to have a NSIS install wait for another NSIS uninstall to finish. If the user wants to install and an old version is detected, it'd be neat (I think) to be able to uninstall the old one then continue with the new one. But execwait doesn't work as the installer spawns off another temporary process that does all the work.

2) Anyone tried porting nsismake (console mode obviously) to Linux? Thinking about having the ability to package up a set of plugins with the default install, and have the user just download it prepackaged from my site. Only trouble (not in the general sense) is that my webhost is running Linux ... From a quick glance through the source code it doesn't look tooooooo win32 specific (though I may be looking in the wrong spots).


1) The FAQ contains the answer:

http://nsis.sourceforge.net/site/ind...&tx_faq_faq=14

2) NSIS 1.98 shouldn't be too hard to port, and I have already seen someone do it (Miranda IM used to do this). NSIS 2 is a different story. It uses some Win32 specific functions that I am unsure how to port to Linux (mainly Unicode).

The easy solution is simply using Wine.


Oops on number 1, not sure how I missed that :hang:

Regarding #2, unfortunately wine is not going to be installed (I had a "discussion" with the admin about this), so the only option is a port of NSIS 2 (since I use NSIS 2 specific stuff). Since it doesn't look to bad (judging from the imports it uses), I'll give it a bit of a go over the next week or so and see how close I can get to making it compile.

Thanks for the fast reply!


Good luck. If you get it to work submit a patch at SourceForge and we might include it in the next release.


Look like this guy did it at some point, probably with nsis 1.x:

http://forums.winamp.com/showthread....highlight=unix

I'm very interested in anything you come up with :)