Panarchy
8th September 2009 03:51 UTC
Writing a Messenger Uninstaller using NSIS?
Hi
I'd like to write a removal tool for Messenger Live within Add/Remove programs.
The following commands will need to be run;
msiexec /x {A85FD55B-891B-4314-97A5-EA96C0BD80B5}
msiexec /x {45338B07-A236-4270-9A77-EBB4115517B5}
msiexec /x {205C6BDD-7B73-42DE-8505-9A093F35A238}
msiexec /x {A1F66FC9-11EE-4F2F-98C9-16F8D1E69FB7}
msiexec /x {95120000-00B9-0409-0000-0000000FF1CE}
msiexec /x {22B775E7-6C42-4FC5-8E10-9A5E3257BD94}
Please tell me how I can add a link to this Uninstaller, as well as the Uninstaller itself, using NSIS.
I'd like the shortcut to be located in "$SMPROGRAMS\Windows Live", and the uninstaller itself located in "$PROGRAMFILES\Windows Live\Uninstaller"
Please tell me how to create this Uninstaller.
Thanks in advance,
Panarchy
PS: I'll need to embed the code within my install script for the Messenger alternative.
PPS: Not sure if any of the following links will be helpful to you;
http://nsis.sourceforge.net/Uninstalling_a_previous_MSI
http://www.codeproject.com/KB/install/NSIS.aspx#11msi3
http://nsis.sourceforge.net/Add_unin...emove_Programs
http://www.tigeronomy.com/nsis.aspx
EDIT: This guide I found especially helpful;
http://ctlabs.blogspot.com/2009/02/n...stem-nsis.html
Comperio
11th September 2009 03:36 UTC
I think you already found what you need. All that's left is for you to put it all together.
The uninstall code should go in uninstall sections. For the MSIexec shortcuts, use the same examples you already found: http://nsis.sourceforge.net/Uninstalling_a_previous_MSI
Just make sure you use the quotes around it just exactly like the page shows.
To wrap everything into one uninstller, create Uninstall sections and add the writeUninstaller command to the INSTALL section.
See this page for a quick tutorial on uninstallations:
http://nsis.sourceforge.net/Simple_tutorials
And if you want to write the info to the add/remove programs control panel, see this wiki page: http://nsis.sourceforge.net/Add_unin...emove_Programs
Panarchy
12th September 2009 09:44 UTC
Hey yeah, thanks.
Thought I'd done sufficient research!
I completely finished the project on Friday (48+ hours ago), which was to repackage Messenger into the one NSIS package, also adding Uninstall keys, an Uninstaller & Uninstalling the previous version at the installation stage. A real bugger that one, had to search the registry for the MSI GUID!
I'm unable to provide the code, however if you'd really like it, PM me, and I'll see what I can do.
Best Regards,
Panarchy