Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

VBScript and logging


2 replies to this topic

joker_pl

joker_pl
  • Full Members
  • 11 posts

Posted 04 November 2005 - 10:11

How can i add some coments to intallation log if logging is present.
Thanks for help.


akerl

akerl
  • Full Members
  • 104 posts

Posted 08 November 2005 - 16:28

Use the following statements in the script:

Dim LogRecord '/* Record-Objekt
Dim MyMessage '/* Message
'/* Const for log type
Const msiMessageTypeInfo = 67108864
Const msiMessageTypeUser = 50331648
Const msiMessageTypeWarning = 33554432
Const msiMessageTypeError = 16777216

'/* Create record
Set LogRecord = Session.Installer.CreateRecord(0)

'/* Assign data
LogRecord.StringData(0) = MyMessage & " " & CStr(Now)

'/* Write to log
Session.Message msiMessageTypeUser, LogRecord

Andreas Kerl

Inside Windows Installer 4.5
ISBN 3-86645-431-7


joker_pl

joker_pl
  • Full Members
  • 11 posts

Posted 10 November 2005 - 15:55

thanks a lot its working gr8