|
|
|
|
#1 |
|
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 |
|
|
|
|
|
#2 |
|
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.) |
|
|
|
|
|
#3 |
|
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. |
|
|
|
|
|
#4 | |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
Quote:
|
|
|
|
|
|
|
#5 |
|
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) My NSIS plug-ins: http://wiz0u.free.fr/prog/nsis.php |
|
|
|
|
|
#6 | |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
Quote:
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. |
|
|
|
|
|
|
#7 |
|
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/ My NSIS plug-ins: http://wiz0u.free.fr/prog/nsis.php |
|
|
|
|
|
#8 |
|
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
|
|
|
|
|
|
#9 |
|
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) My NSIS plug-ins: http://wiz0u.free.fr/prog/nsis.php |
|
|
|
|
|
#10 | |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
Quote:
|
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|