MSIEXEC return code dealing - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

loicremy
Posts: 3
Joined: Fri Mar 28, 2008 3:49 pm

MSIEXEC return code dealing

Hi,

In my project, I must use a custom action 'EXE with working dir' to launch this : 'msiexe.exe /x {XXXXXXXXXXXX....} /qb' to force uninstall of a specific knowned application.

Just after that,I need to check and show an 'Error message' if the use has cancelled the first unistalling action (msiexec...)

I don't know how to deal with msiexec return codes ?

Could you help me ?

Thank you in advance

Loïc
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: MSIEXEC return code dealing

Hi Loic,

I'm afraid there is no method to check the return code of the installer launched by your custom action. The only method to check for its uninstallation
is another custom action that will search for it, and set a property, but this is a little bit complicated.

What I recommend is to perform this uninstall completely silent, of course if the user approves it in the first place. This way he cannot cancel it anymore.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”