Page 1 of 1

Problems with Logging installs

Posted: Thu Jun 01, 2006 3:55 am
by Gareth Owen
Hi all, still having issues with Administrative installs, the main issue now is the lack of logging.

Even passing the log option into the MSI command line,
(both the MSI and IA part of the command line)

I get absolutely no infomation until the main installation actually begins.

In this case, I believe that the installation is failing BEFORE we get to the main install, either due to failing to install prereqs or incorrect command line parameters. :(

Unfortunately this means the there is no way for us to tell what the issue is. :(

The MSI wrapper logging just shows a successfull install, and there is no log at all for the IA part of the installation.

Please Help, how can I find out what is failing.

Can I manually write information to the log file?

Cheers

Posted: Thu Jun 01, 2006 12:58 pm
by jimo
When all else fails there is the messagebox or write to your text file at key points through out your script.

Just a thought.

Posted: Fri Jun 02, 2006 2:53 am
by Gareth Owen
Yep, about what i thought, Message Box is not really an option for admin silent installs, but it looks like I will ahve to manually write to file.

Would it be best to try to write to the log file manually ($LOGGED$) , or do I need to use another file?


Cheers

Posted: Fri Jun 02, 2006 2:56 am
by MichaelNesmith
I would use another file, say $LOGGED$.custom.txt.

Posted: Fri Jun 02, 2006 3:51 am
by Gareth Owen
Also, where do I need to put the write to file, such that I can return information about failing to extract Web Blocks?

I want an entry saying if a particular web block could not be opened.


Cheers for the help

Posted: Fri Jun 02, 2006 7:08 am
by Gareth Owen
Well I have managed to get most of the logging functionality in manually, but it is very long winded,

For every MessageBox I have to put a

If $LOGGED$ not Equals
Write into Text File $LOGGED$
end

Is there any chance of making the default behaiviour of a MessageBox to write the message to the log file if doing a silent, logged install. This would make life so much easier.
:)

Posted: Fri Jun 02, 2006 8:27 am
by Gareth Owen
Doh, next issue.

When you select the logged install option in IA.

it creates a new log file when it gets to the Applying the install.

That means that any logging information I have put in manually during the information gathering and Prereq stage is then lost. :cry:

Oh well, at least I can now tell why the install is failing as it quits before it gets to the apply install normally.

If it gets that far, it has probably worked, so I do not need the logging information. :|

Posted: Fri Jun 02, 2006 8:34 am
by MichaelNesmith
That is why above I said:

MichaelNesmith wrote:I would use another file, say $LOGGED$.custom.txt.

Posted: Mon Jun 05, 2006 1:46 am
by Gareth Owen
:oops:

Must read things more carefully next time.

Cheers