Log file name - Advanced Installer Community
mhdilyas
Posts: 1
Joined: Tue Feb 11, 2014 10:39 am

Log file name

Dear Exprt,
HI,

How can i generate log file name by the computer name automatically Instead of one file name

msiexec /I "\\Server-1\share\Cleintrapair.msi" /qn /Lv* "\\Server-1\share\ComputerName.log" ALLUSERS=1
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Log file name

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

In order to achieve what you want you can use a command line like this:

Code: Select all

msiexec /I "PathToSetup\Cleintrapair.msi" /qn /Lv* "PathToLog\%COMPUTERNAME%.log"
Also, if you are building an EXE setup package, then you can add into "MSI Command Line" field (from "Media page -> Configuration tab") a command line like this:

Code: Select all

/L*V "PathToLog\%COMPUTERNAME%.log"
If you have any questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”