google-code-export / notepad2-mod

Automatically exported from code.google.com/p/notepad2-mod
Other
2 stars 1 forks source link

Improved the INF uninstaller #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I made some improvements to the uninstaller, I switched from LaunchINFSectionEx 
to LaunchINFSection which opens up some new features like uninstall prompt and 
the ability to close/kill the program if opened (also added 
QuietUninstallString)

I also added a like that closes/kills notepad2 before the uninstall deletes the 
files I use tskill.exe (terminal services killer) becase taskkill.exe is not 
compatible with XP Home, if you guys add a new switch to the app like 
Notepad2.exe /exit or whatever it could be used in the uninstall INF

Original issue reported on code.google.com by ricktend...@gmail.com on 22 Jul 2011 at 5:06

Attachments:

GoogleCodeExporter commented 9 years ago
Hi and thanks for your contribution.

Here are my thoughts:
1) I don't like the tskill approach and it doesn't work for me at all. Plus I 
don't really like the idea of killing the process with any changes unsaved so 
it's no go.
2) I don't plan to do any updates for this installer. If it works then ok. I do 
plan to create a proper Inno Setup installer but I have lost my interest plus I 
don't have lot of time to deal with it atm.

If the QuietUninstallString applies to the current inf script then I could add 
that.

Original comment by XhmikosR on 22 Jul 2011 at 9:01

GoogleCodeExporter commented 9 years ago
Inno is a gr8 idea, then maybe you could make a single installer compatible 
with both x86/64

Original comment by ricktend...@gmail.com on 22 Jul 2011 at 9:42

GoogleCodeExporter commented 9 years ago
Not sure if I will combine both builds. I have a separate branch in the svn for 
this, but haven't updated it in a while.

Original comment by XhmikosR on 22 Jul 2011 at 9:46

GoogleCodeExporter commented 9 years ago
I was wondering, can I use QuietUninstallString with LaunchINFSectionEx? Also 
what are the requirements and the donwsides if any in using LaunchINFSection?

Original comment by XhmikosR on 22 Jul 2011 at 9:52

GoogleCodeExporter commented 9 years ago
No need for QuietUninstallString with LaunchINFSectionEx because its already 
silent, my uninstaller change now has prompts to which can be hidden by adding 
",1" flag on the end

Are you sure you want to completely remove Notepad2 and all of its components?
Yes No

Notepad2 was successfully removed from your computer.

Original comment by ricktend...@gmail.com on 22 Jul 2011 at 11:33

GoogleCodeExporter commented 9 years ago
I uploaded some test installers in issue 7. Please have a look and let me know 
what you think.

Original comment by XhmikosR on 27 Oct 2011 at 1:45

GoogleCodeExporter commented 9 years ago

Original comment by XhmikosR on 31 Oct 2011 at 11:17