Know whether installation is successful programmatically - Advanced Installer Community
prasadus92
Posts: 58
Joined: Wed Feb 25, 2015 8:10 am

Know whether installation is successful programmatically

Hi,

Is there a way to know whether the installation is successful or not programmatically? I require this info while I am doing silent upgrade (The silent upgrade I am using right now is downloading the EXE/MSI from the cloud and running it in the silent mode in a separate thread).

Thanks in advance.
Prasad
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Know whether installation is successful programmatically

Hello Prasad,

Yes, this should be possible. To achieve this you should check the Windows Installer (msiexec.exe) process exit code. Also, if you are using an EXE setup type, then our bootstrapper will return -1 if the user presses the "Cancel" button, while installing the prerequisites. Otherwise it will return the code returned by msiexec.exe after running the main MSI.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
prasadus92
Posts: 58
Joined: Wed Feb 25, 2015 8:10 am

Re: Know whether installation is successful programmatically

Hi Daniel,

Thanks for the info.

Warm Regards,
Prasad
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Know whether installation is successful programmatically

You're welcome Prasad.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”