Uninstall msi package

Got a problem you cannot solve? Try here.
spaider84
Posts: 6
Joined: Sun Apr 17, 2011 11:56 pm

Uninstall msi package

Postby spaider84 » Mon Apr 18, 2011 1:34 am

An installation package of 'exe' type is created. Then it is converted into msi using the Group Policy Wizard. Then we install it. When we try to remove it (msiexec /x {GUID}) uninstallation is not working. When executing the install package for the second time it successfully removes.

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Uninstall msi package

Postby giaviv » Mon Apr 18, 2011 6:59 am

Dear spaider84,

Where did you get its GUID from?
Are you using the (Un)Install MSI Setup plugin?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

spaider84
Posts: 6
Joined: Sun Apr 17, 2011 11:56 pm

Re: Uninstall msi package

Postby spaider84 » Tue Apr 19, 2011 3:35 am

I use Product Code as GUID. I remove package using 'cmd.exe', not using the installer script

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Uninstall msi package

Postby giaviv » Tue Apr 19, 2011 6:45 am

Dear spaider84,

Please use the (Un)Install MSI Setup plugin - it is so much better than running 3rd party executables. Here is a tutorial on how to use it (it should fix your problem):
http://www.installaware.com/forum/downl ... php?id=325
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

spaider84
Posts: 6
Joined: Sun Apr 17, 2011 11:56 pm

Re: Uninstall msi package

Postby spaider84 » Thu Apr 21, 2011 3:56 am

Thanks, but that's the point, that we need to remove msi package without using this plugin. Is it possible? If so, could you give us a clue how?

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Uninstall msi package

Postby giaviv » Thu Apr 21, 2011 9:16 am

How come you don't want to use the plugin?

Otherwise, you can use Run Program and run msiexec..
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

spaider84
Posts: 6
Joined: Sun Apr 17, 2011 11:56 pm

Re: Uninstall msi package

Postby spaider84 » Fri Apr 22, 2011 3:01 am

giaviv wrote:How come you don't want to use the plugin?

Otherwise, you can use Run Program and run msiexec..

I tried using "Run program and run msiexec /x {GUID}". That doesn't work...

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Uninstall msi package

Postby giaviv » Fri Apr 22, 2011 9:37 am

Could you please provide more information about it not working? It should.
When you run the same command in cmd, does it work?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

spaider84
Posts: 6
Joined: Sun Apr 17, 2011 11:56 pm

Re: Uninstall msi package

Postby spaider84 » Mon Apr 25, 2011 11:27 pm

When we launch "cmd msiexec /x {product code}" after "Preparing to remove..." nothing happens, visual part of msiexec disapears, process "msiexec.exe" remains present. The same result gives doing via run program.

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Uninstall msi package

Postby giaviv » Tue Apr 26, 2011 8:01 am

Again, I really do not see why you wouldn't want to use the plugin.

Anyway, running cmd msiexec ... wont work. You need to either run msiexec, or cmd /c "msiexec....".
But regardless, this is a FAULTY approach to uninstalling your software.

If you are still against using the plugin, I would recommend you to write the UNINSTALLLINK variable's value to the registry during the installation, and then to use it later to uninstall your setup.
I am attaching a tutorial that explains how this is done.
Attachments
uninstalllnk.doc
(135.5 KiB) Downloaded 801 times
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

spaider84
Posts: 6
Joined: Sun Apr 17, 2011 11:56 pm

Re: Uninstall msi package

Postby spaider84 » Fri Apr 29, 2011 3:17 am

For testing purposes we created a blank project, adding just one test file. We built it and converted to msi. Installation works, but uninstallation via "msiexec /...." doesn't work.
Attachments
TEST.rar
(1.98 MiB) Downloaded 583 times

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Uninstall msi package

Postby giaviv » Fri Apr 29, 2011 7:43 am

Did you read my last post?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: Baidu [Spider] and 90 guests