Old 6th December 2009, 00:01   #1
Ocrana
Junior Member
 
Join Date: Nov 2006
Posts: 27
Uninstall with progress

Hi,

I want to uninstall an old version of my software before install new one. Everything works fine. But I run the uninstall in Silent mode to avoid that the user can skip the uninstall.
Now my question, is there a plugin or another way to show a small "task" window with a progressbar and the information about uninstalling so the user will see that something is going on? Most common "Setup solutions" have this I hope it is possible with NSIS, too.

Thanks,
Ocrana
Ocrana is offline   Reply With Quote
Old 6th December 2009, 19:13   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
I really don't think this is possible for an uninstaller that was already created, by an older installer.

(From an NSIS perspective, obviously. Technically everything is possible in software, but yeah.)
MSG is offline   Reply With Quote
Old 6th December 2009, 20:16   #3
Ocrana
Junior Member
 
Join Date: Nov 2006
Posts: 27
Why it should not be possible? A marquee progressbar do not need any additional information but show the user that something is going on.
Iam just wondering that there are only two possible ways: Silent without any info and normal where the user can interact and stop the uninstall.
Ocrana is offline   Reply With Quote
Old 7th December 2009, 06:10   #4
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
Quote:
Originally posted by Ocrana
Why it should not be possible?
Because, as far as I know, there are no functions in standard NSIS uninstallers for requesting the uninstallation progress from an external process.
MSG is offline   Reply With Quote
Old 7th December 2009, 07:34   #5
Wizou
Senior Member
 
Join Date: Aug 2007
Location: Paris, France
Posts: 304
Indeed there is no standard solution in NSIS, but as MSG said, everything is possible, if you're ready to program...

I was able to create this behavior in my (un)installers by handling myself programmatically (in NSIS script) a command-line option /SHOWPROGRESS that would skip pages automatically (calling Abort in "PRE" functions)
Wizou is offline   Reply With Quote
Old 7th December 2009, 09:33   #6
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
Quote:
Originally posted by Wizou
Indeed there is no standard solution in NSIS, but as MSG said, everything is possible, if you're ready to program...

I was able to create this behavior in my (un)installers by handling myself programmatically (in NSIS script) a command-line option /SHOWPROGRESS that would skip pages automatically (calling Abort in "PRE" functions)
Except that this would only work for new uninstallers. I think he wants to get progress numbers from an *existing* uninstaller. That would only be possible by hacking into the running process somehow, or hacking into the executable before it's executed.

Edit: In which case it'd be better to copy the uninstall code to the new installer and call it as a function when required.
MSG is offline   Reply With Quote
Old 7th December 2009, 09:38   #7
Wizou
Senior Member
 
Join Date: Aug 2007
Location: Paris, France
Posts: 304
Then one solution would be to display yourself a fake infinite progressbar (I hate those...) while the uninstaller is doing its job silently


http://mentalized.net/activity-indicators/
Wizou is offline   Reply With Quote
Old 7th December 2009, 11:47   #8
Ocrana
Junior Member
 
Join Date: Nov 2006
Posts: 27
Wizou, Iam wondering why you hate this. The main problem is, my uninstaller will stop a service, uninstall a driver and the files. This will need some time. I prefer a "fake" window instead of "No Responding" window cause the uninstaller runs in exec wait.

I will try to make a solution. For the first "hack" the "Pre" idea is good. But I hate Buttons that I cannot click
Ocrana is offline   Reply With Quote
Old 7th December 2009, 11:59   #9
Wizou
Senior Member
 
Join Date: Aug 2007
Location: Paris, France
Posts: 304
I prefer knowing how much I will have to wait ;-)
but if it's not possible, you're right, it's better to see a fake window (hence my suggestion)
Wizou is offline   Reply With Quote
Old 7th December 2009, 14:15   #10
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
Quote:
I prefer a "fake" window instead of "No Responding" window cause the uninstaller runs in exec wait.
There are various banner plugins that you can use for this purpose.
MSG is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

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