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
FOLLOW US
Get the latest news in Application Packaging