Old 12th August 2010, 10:12   #1
timbstoke
Junior Member
 
Join Date: Aug 2010
Posts: 1
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?
timbstoke is offline   Reply With Quote
Old 12th August 2010, 10:26   #2
DrO
 
Join Date: Sep 2003
Posts: 27,873
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
DrO is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
administrator, reinstall, uninstall

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump