/build/static/layout/Breadcrumb_cap_w.png

How to abort the MSI installation using CustomAction DLL

Hi,

I have created a Custom Action DLL using Visual C++. I will be checking for some prerequisites software while installing the MSI. If the prerequisites software were not installed in the user machine, the MSI will take the user to the download page of the prerequisite software and prompt the user to download the software. Otherwise, If the user clicks cancel button, I will exit the setup. Can anyone throw me some light how to abort the MSI installation using C++. Thanks in advance.

Regards,
Naresh Krishna Kumar. K

0 Comments   [ + ] Show comments

Answers (1)

Posted by: AngelD 17 years ago
Red Belt
0
Author your custom action to return 1 to proceed and 3 for terminating the installation. Make sure to set the custom action not to ignore any exit code.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ