Archive: uninstall/reinstall issues


uninstall/reinstall issues
I'm an administrator, not a developer. One of the tools we use uses NSIS, and we're trying to script a silent uninstall/install for upgrades, and we're having a few problems.

It seems that NSIS spawns a seperate, randomly named process for uninstalling, at which point the uninstaller terminates. This means that our scripts continue running, and try to install the new version before the old has finished uninstalling. The result is files in use, a failed install, and a dialog box on every machine that we need to acknowledge before we can try again.

After doing this once on a few hundred machines and not liking the idea of doing again, I have a few questions:

- Is there a way to detect the process name that the uninstaller spawns, so we can monitor it and pause script execution until it's finished?
- Failing that, is there a way to make a silent install *really* silent - i.e. exit with an non-zero error code rather than displaying a dialog box? This would at least allow us to detect a failed install, rather than having a hung script that requires me to wander the building, zombie-like, logging in to machines at 5am to acknowledge an error message.

If none of those are doable, does anyone else have advice on how we can gracefully handle an uninstall/reinstall reliably without it falling over?


i think http://nsis.sourceforge.net/Docs/Chapter3.html#3.2.2 should help with the uninstaller spawning 'issue' or at least help in modifying your scripts to work with it.

-daz