cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Naveed
Level 6

Log file for installer

I want to create a log file for installation steps. I have some custom written scripts as well in VBS custom actions.

I want to create a log file in temp directory that logs built in installshield steps as well my custom script steps in a file. I also want to show a link to this newly created log file at end of installer e.g. view log file.

log file format:
Step 1 completed successfully.
Step 2 completed successfully.

Please help how I can do it? I am using InstallShield 2010 Premier Edition.

Thanks.
Naveed
Labels (1)
0 Kudos
(2) Replies
cbragg
Level 7

You should really be using the windows installer standard logging methods to be compatible with deployment systems, industry standards and to be consitent with other installers. Your custom actions are also capable of writing to these logs. Also installshield has built in functionality to allow the user to view the log file at the end of the installation.

This article explains it all very well:
http://www.flexerasoftware.com/webdocuments/PDF/msi_writing_to_the_log_file.pdf
0 Kudos
Naveed
Level 6

Thanks for reply.

It generates log file when running from MSI is run from InstallShield IDE or through command prompt. It doesn't generate log file when run by double clicking the msi package?

Any way, I can create log file for MSI execution by running it directly?


Thanks
0 Kudos