What property holds error messages? - Advanced Installer Community
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

What property holds error messages?

Hello,

I am making a silent installer. In case of an error the user will not get any messages and the installer will just quit it-self. I am making the installer to send the error message to the server. This part is fine. But what property (for example, APPDIR for the installation folder) does the installer passes the error message?

:?:
K
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: What property holds error messages?

Hello,

The useful information which can be found when an installer crashes is in the log file.
Also, there is no property which is set with the error message. So, if you want to see what is the reason why the installation failed, you need to parse the installation log.

In order to generate an installation log, you can check the Enable Verbose Logging option from the Install Parameters page. By enabling this option, a log file will be generated each time the install package runs. This option sets the Windows Installer MsiLogging property to v value. Windows Installer will automatically set the MsiLogFileLocation property to the full path of the log file.

Then, you can create your custom action as a custom action written in C# or a custom action written in C++ which will parse the installation log file and search through the log to see where the installation fails or gather useful information about the installation process. You can also take a look on the Options to integrate and debug custom actions article which may be useful to you.

You can set a property with related information.
You can also take a look on the What is the maximum number of characters that can be stored in a Windows Installer property thread which may be useful to you.

If you have other questions, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: What property holds error messages?

Thanks.

:D
K
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: What property holds error messages?

You're welcome,

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”