Logged install

Got a problem you cannot solve? Try here.
zchris
Posts: 92
Joined: Wed Feb 23, 2005 3:16 am
Location: Austria

Logged install

Post by zchris »

I want InstallAware to create a log file of the installation. The commandline switch from the manual does not appear to work.

Code: Select all

setup.exe /l=c:\\setup.log
(compressed single self installing setup)

What could be the problem?
sinan
Site Admin
Posts: 1037
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

The log is only created for the actual setup process. Are you completing an install or uninstall?
zchris
Posts: 92
Joined: Wed Feb 23, 2005 3:16 am
Location: Austria

Post by zchris »

Yes, I am doing a full installation.
sinan
Site Admin
Posts: 1037
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

Not sure what the problem might be offhand. Check you have access permissions and you are not overwriting the predefined LOGGED variable.
zchris
Posts: 92
Joined: Wed Feb 23, 2005 3:16 am
Location: Austria

Post by zchris »

I've tried it again.

It actually creates a logfile while the installation is running but as soon as the "Completing..." dialog is shown the logfile disappears.
sinan
Site Admin
Posts: 1037
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

I'm really not sure. Any details you can provide?
zchris
Posts: 92
Joined: Wed Feb 23, 2005 3:16 am
Location: Austria

Post by zchris »

None that I can think of. Something deletes the logfile after Apply Install.

You can see it yourself however if you run "setup.exe /l=c:\\setup.log" with the file I've emailed you for the "Silent install commandline parameters" problem.
sinan
Site Admin
Posts: 1037
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

I ran this and the setup.log file was created. I tested on a plain install of Server 2003. Any more details you may provide to help replicate the issue?
zchris
Posts: 92
Joined: Wed Feb 23, 2005 3:16 am
Location: Austria

Post by zchris »

You are right. When I run it on Windows 2003 Server I get a log file at the end of the install.

However when I run it on a Windows XP Pro SP2 (with all updates from Windowsupdate installed) the logfile disappears when the setup is finished.

The XP machine has Windows Installer 3.1 (KB893803) installed - maybe that's the problem?

I hope you can replicate it now.
sinan
Site Admin
Posts: 1037
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

Thanks - I will look into it with the additional information.
sinan
Site Admin
Posts: 1037
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

We've reproduced and resolved the issue. Expect an update shortly.
zchris
Posts: 92
Joined: Wed Feb 23, 2005 3:16 am
Location: Austria

Post by zchris »

Great!

Btw, as far as I know it is not possible to specify a commandline when debugging a setup. Any chance of adding this to the update too?
sinan
Site Admin
Posts: 1037
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Post by sinan »

Not for this release, sorry.
zchris
Posts: 92
Joined: Wed Feb 23, 2005 3:16 am
Location: Austria

Post by zchris »

OK. The logfiles now work fine with your update! Thanks!
zchris
Posts: 92
Joined: Wed Feb 23, 2005 3:16 am
Location: Austria

Post by zchris »

Another question:

I need to create logfiles even if the setup terminates before "Apply Install" - is it possible to write my own entries into the logfile?

I tried "Write into Text File $LOGGED$ ..." but the entries get overwritten by "Apply Install".

There is also the problem that "Write into Text File" produces ASCII and standard logs are unicode; if I write to the logfile after apply install the file then becomes garbage.
Post Reply