limleetau
Posts: 3
Joined: Mon Aug 01, 2011 9:34 am

Custom Action of MsiZap

Hi,

I'm using AI 8.2 Professional version.
Understand that "MsiZap.exe" tool from the Windows SDK can remove any traces of the installation. Have tried out the command on http://www.advancedinstaller.com/user-g ... stall.html, the command is work on window command prompt, but encounter error when trying to execute the command on Inline script under InstallExecuteSequence.
I would like to add the program removal script into the Custom Action to run the script before the program installation.

Any advice would be greatly appreciated..

Thanks...

Regards,
Gary
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom Action of MsiZap

Hello Gary and welcome to Advanced Installer forums,

Please keep in mind that the "MsiZap.exe" tool is meant to uninstall broken installations. If you simply need to perform a regular uninstallation, you should use the "msiexec.exe" CLI as described in the following article:
http://www.advancedinstaller.com/user-g ... iexec.html

Uninstalling another application during installation like this is an unusual functionality. Can you please specify why are you performing this operation during install?

If you need to upgrade an older installation you should use the Upgrades page predefined functionality:
http://www.advancedinstaller.com/user-g ... rades.html
In the same case here is another how-to article you may also find helpful.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
limleetau
Posts: 3
Joined: Mon Aug 01, 2011 9:34 am

Re: Custom Action of MsiZap

Hi Mihai,

I have tried to use the "MsiZap.exe" tool in CostFinalize under InstallExecuteSequence, but Window Installer prompt that "Another program is being installed. Please wait until that installation is complete." Kindly advice which location is more appropriate to place the commend, if I would like to remove the program before the installation. Thanks…

Regards,
Gary
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom Action of MsiZap

Hi Gary,

Can you please specify why do you want to use "MsiZap.exe"? Like I mentioned in my previous post, maybe we can advice a more elegant solution to your problem.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
limleetau
Posts: 3
Joined: Mon Aug 01, 2011 9:34 am

Re: Custom Action of MsiZap

Hi,

I would like to remove a previous version of release, which compiled by other software. On top of that, I need to retain the configuration files installed by the previous release. I have made use of the file backup and restore vb script, which found on another Q&A thread (http://www.advancedinstaller.com/user-g ... le-ca.html). My problem is how I able to uninstall the application after I backup the configuration during the installation.

Thanks...

Regards,
Gary
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom Action of MsiZap

Hi Gary,
My problem is how I able to uninstall the application after I backup the configuration during the installation.
Have you tried following the how-to link( blue text ) I posted initially?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”