canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Installation log or reporting/logging of script errors?

Hello everyone.

While playing with custom action scripts (VBS) I noticed that in case of (syntax) errors the installer reports an error in a script necessary for uninstallation, but doesn't provide any details. Is there a way to enable displaying this information, or can some sort of logging be enabled to trackdown the issue without having to reproduce the issue (which can be complicated and frustrating for end user and supporter)?

With best regards

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

Re: Installation log or reporting/logging of script errors?

Hi Clemens,

Please note that for Windows Installer the type of the error doesn't matter, if the custom action fails then the generic error will be shown. However, you can try to find the problem by using the log of the installation. You can create a log in multiple ways:
- use the "Run and Log" option in Advanced Installer
- use a bootstrapper which sets this command line for the MSI:

Code: Select all

/L*V "C:\package.log"
- launch the MSI with the command line:

Code: Select all

msiexec /i "C:\package.msi" /L*V "C:\package.log"
where you replace "C:\package.msi" with the path to your package.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: Installation log or reporting/logging of script errors?

Hello Cosmin,

excellent, I will try these options, thank you. :-)

Ciao

clemens

Return to “Common Problems”