How to create installer log at a specified file path? - Advanced Installer Community
prasadus92
Posts: 58
Joined: Wed Feb 25, 2015 8:10 am

How to create installer log at a specified file path?

Hi,

Is there a way to create installation log at a specific location?. I read this article: http://www.advancedinstaller.com/user-guide/qa-log.html . But in this case, installer log will be located at Temp directory. I want to have the installation log at a specific location.

Thanks in advance.
Prasad
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to create installer log at a specified file path?

Hi Prasad,

Of course you can specify the location for the log file. To create a verbose installation log, you can use a command line which looks like this for .MSI packages:

Code: Select all

        msiexec /i "C:\MyPackage\Example.msi" /L*V "C:\log\example.log"
and the following for .EXE packages:

Code: Select all

        mySetup.exe /L*V "C:\log\example.log"
Here's the How Do I Read a Windows Installer Verbose Log File? article which can help you debugging your log.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
prasadus92
Posts: 58
Joined: Wed Feb 25, 2015 8:10 am

Re: How to create installer log at a specified file path?

Hi Dan,

Many thanks for your reply.

The requirement is that even if we just double click the EXE or MSI that I have built (not from the command line using MSIEXEC), we want to have the logs copied to a specific location. Is there a way to do this? Or do I need to write a custom action for that (which copies the log file to some specified path)?

Thanks
Prasad
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to create installer log at a specified file path?

Hi Prasad,

Yes, you need to create a custom action that copy the log file to the desired location.

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.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
prasadus92
Posts: 58
Joined: Wed Feb 25, 2015 8:10 am

Re: How to create installer log at a specified file path?

Hi Dan,

Many thanks for your reply.

Thanks
Prasad
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to create installer log at a specified file path?

You're always welcome Prasad,

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

Return to “Common Problems”