tnomore
Posts: 16
Joined: Wed Oct 31, 2007 5:14 pm

Custom Action Error Message?

Hi.

During an installation, I am executing a series of Installed Custom Actions (in the InstallFinalize event). I would like to show a descriptive message when one of these returns something other than 0 (maybe stating what the action was that failed).

Is there are recommended way to do this?

Also, is it possible to log the installation activity so that I can review it in the case of errors?

thanks
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,
I would like to show a descriptive message when one of these returns something other than 0 (maybe stating what the action was that failed).
I'm afraid that Windows Installer does not support this. However, this can be done from inside your custom action by treating the exceptions which may occur.
Also, is it possible to log the installation activity so that I can review it in the case of errors?
You can create a log of the installation by launching the MSI with this command line:

Code: Select all

msiexec /i package.msi /L*V package.log
Where "package.msi" is your installation package.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”