Page 1 of 1

Logging

Posted: Tue Nov 03, 2015 7:45 pm
by wxperson99
I tried to create an install with an install log by using the following command... after the apply install.

Apply Install (get result into variable SUCCESS)
Set Variable LOGGED to $TARGETDIR$\log.txt


But no log.txt file was created.

Is there another location I need this command ? What am I missing?

Thanks.. George

Re: Logging

Posted: Wed Nov 04, 2015 11:34 am
by FrancescoT
Dear George,

To execute a logged setup, use the following command line:

<setup.exe> /l=<path to logfile>

Regards

Re: Logging

Posted: Sun Nov 08, 2015 1:35 pm
by wxperson99
This is all I see in the log file

<InstallAware>
<SupportDir>
</SupportDir>
<SetupSplash>
<StubSize>
</StubSize>
<StubData>
</StubData>
<GlobalLists>
</GlobalLists>
<ExtractArchive>
</ExtractArchive>
<ResourcePath>
</ResourcePath>
<Dialogs>
</Dialogs>
</SetupSplash>
<RunScript>
<Variables>
</Variables>
<CompileScript>
</CompileScript>
<BootStrap>
</BootStrap>
<myah>


What did I do wrong.

Re: Logging

Posted: Mon Nov 09, 2015 10:08 am
by FrancescoT
Dear George,

"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."

So if nothing appears in the log ... probably the "Apply Changes" statement is never executed.

Regards

Re: Logging

Posted: Wed Nov 11, 2015 11:39 pm
by wxperson99
still confused. The apply install command is executed and all I see is what I posed on the 8th.

Re: Logging

Posted: Thu Nov 12, 2015 1:09 pm
by FrancescoT
Dear George,

if you are using a MSI based setup, this may depend by the fact that the "Apply Changes statement" (Apply Install, Apply uninstall or Apply Patch) is never executed in your script.

Instead using a NATIVE ENGINE based setup and If the pre-defined variable $DELAYUNTIL_APPLYCHANGES$ is TRUE, the log will be NOT written to as each setup command is executed individually; otherwise the log will be written to when Apply Changes has been called.
So even with this last case, if the "Apply Install" statement doesn't get executed the log will be not produced.

Anyway, without having your project I am not able to tell you much more.
If you want you could post a very MINIMAL project that replicates the issue.

Regards