Page 1 of 2
Logged install
Posted: Mon Sep 05, 2005 8:54 am
by zchris
I want InstallAware to create a log file of the installation. The commandline switch from the manual does not appear to work.
(compressed single self installing setup)
What could be the problem?
Posted: Mon Sep 05, 2005 9:43 am
by sinan
The log is only created for the actual setup process. Are you completing an install or uninstall?
Posted: Mon Sep 05, 2005 10:07 am
by zchris
Yes, I am doing a full installation.
Posted: Mon Sep 05, 2005 8:16 pm
by sinan
Not sure what the problem might be offhand. Check you have access permissions and you are not overwriting the predefined LOGGED variable.
Posted: Tue Sep 06, 2005 3:19 am
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.
Posted: Tue Sep 06, 2005 6:20 am
by sinan
I'm really not sure. Any details you can provide?
Posted: Tue Sep 06, 2005 7:17 am
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.
Posted: Tue Sep 06, 2005 9:14 am
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?
Posted: Tue Sep 06, 2005 12:01 pm
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.
Posted: Tue Sep 06, 2005 4:58 pm
by sinan
Thanks - I will look into it with the additional information.
Posted: Tue Sep 06, 2005 7:32 pm
by sinan
We've reproduced and resolved the issue. Expect an update shortly.
Posted: Wed Sep 07, 2005 2:37 am
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?
Posted: Wed Sep 07, 2005 4:43 am
by sinan
Not for this release, sorry.
Posted: Wed Sep 07, 2005 3:19 pm
by zchris
OK. The logfiles now work fine with your update! Thanks!
Posted: Tue Sep 13, 2005 7:53 am
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.