When debugging vbs associated with AI, I frequently want a log of settings, etc.
When installing, the MSI log gets created on the command line with:
Code: Select all
msiexec /i my_prog.msi /L*V install.logCode: Select all
Function LogInfo(msg)
Dim rec
Set rec = Session.Installer.CreateRecord(1)
rec.StringData(0) = "XXX my_script.vbs: " & msg
LogInfo = Session.Message(&H04000000, rec)
End Function
Code: Select all
LogInfo "This is a test"Use your editor to extract the "XXX" starting each line for the vbs logs.
This technique side-steps the annoying MsgBox popup debugging style and integrates with the file associated with the flow of the rest of the installation.
Thanks to AI for a GREAT installer - keep up the good work!
FOLLOW US
Get the latest news in Application Packaging