Write To Text file $LOGGED$

Got a problem you cannot solve? Try here.
FabSter
Posts: 14
Joined: Wed May 28, 2014 2:36 pm

Write To Text file $LOGGED$

Postby FabSter » Wed Jul 29, 2015 5:02 pm

Hello,

I am able to use Write To Text file $LOGGED$ when I compile the Installaware installation into an exe, but when I compile to an MSI this does not seem to work. I have tried all the variations for MSI logging but still cannot figure out to get the Write To Text file $LOGGED$ to appear in the logs generated from the MSI installation routine.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Write To Text file $LOGGED$

Postby FrancescoT » Thu Jul 30, 2015 10:20 am

Dear FabSter,

you should use the following form with a MSI package in order to assign the "LOGGED" predefined variable.

- msiexec.exe /i "C:\mysetup.msi" CMDLINE="LOGGED=C:\mylog.txt"

However if you have a look at IA documentation about "Logged Execution", you will see;

"With the Windows Installer engine, logged execution will create a log file and record both the internal state of the installation (along with all variable values) and the native Windows Installer log inside a plain text file. Since all changes are pending until Apply Changes is called, the log will be created only after Apply Changes has been called."

Due the above behavior with a MSI package, the MSI log takes the precedence over any other "custom" log data and it will also replace any custom data which may have been already stored to the log-file before of "Apply Changes" execution. Please also note that MSI engine does not provide the possibility to store custom log data with the MSI log itself.

With an EXE package instead and due the InstallAware engine capabilities, this doesn't happen.

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

FabSter
Posts: 14
Joined: Wed May 28, 2014 2:36 pm

Re: Write To Text file $LOGGED$

Postby FabSter » Thu Jul 30, 2015 10:30 am

Thanks that worked perfectly;)

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Write To Text file $LOGGED$

Postby FrancescoT » Thu Jul 30, 2015 10:43 am

:D
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 125 guests