cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Wanderer

How to enable logging for installation through Setup.exe

Hi all,

I want to enable logging for installation through Setup.exe. 

The log file should be stored in the "Logs" folder inside the installer folder and the name of the log file should contain the timestamp (example: SetupLog_YYYYMMDDhhmmss.log).

I try to do this with MSI Command-Line Arguments (Media => Releases => Release => Setup.exe tab) like this:

/lvoicewarmupx "Logs\SetupLog.log"

Sheinar_0-1585127438054.png

But I receive an error:

Sheinar_1-1585127455201.png

It works only if I do not specify the directory (/lvoicewarmupx "SetupLog.log"), but in this case the log file will be stored right in the folder with the installer.

 

So, I have 2 questions:

1) How can I specify the folder where the log file will be stored?

2) How can I add the timestamp to the name of the file?

 

I use InstallShield 2015

 

Labels (1)
0 Kudos
2 Replies
Highlighted
Flexera
Flexera

Re: How to enable logging for installation through Setup.exe

In a Basic MSI project you can enable MSI logs in the following location: General Information > General > Create Logs It is here that you can determin any custom values to the MSI logging values. You can also use the specific MSI commandline switches such as: /l*v "C:\path\to\log\logfile.log" https://docs.microsoft.com/en-us/windows/win32/msi/command-line-options Be aware that the Windows Installer is not able to create a new directory for the log file, so it should already exist.

0 Kudos
Highlighted
Wanderer

Re: How to enable logging for installation through Setup.exe

I already tried to specify the file name in the "General MSI Logs" property (General Information > General ) but the log file was not created at all.

 
 
 

Screenshot_2.png

0 Kudos