Old 8th September 2009, 02:51   #1
Panarchy
Member
 
Join Date: Nov 2008
Posts: 72
Question 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;

code:
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

Last edited by Panarchy; 8th September 2009 at 04:21.
Panarchy is offline   Reply With Quote
Old 11th September 2009, 02:36   #2
Comperio
Major Dude
 
Comperio's Avatar
 
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
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
Comperio is offline   Reply With Quote
Old 12th September 2009, 08:44   #3
Panarchy
Member
 
Join Date: Nov 2008
Posts: 72
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
Panarchy 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