PDA

View Full Version : Create log file in Basic MSI



eladef
01-13-2009, 09:06 AM
In my InstallScript project I used the CreateFile, OpenFile to create a log file with specific name and location,
update the log with WriteLine all along InstallScript functions, Now that I moved to Basic MSI and using Custom action I can't use that method any more ( Although I can open the log file for writing in every Custom Action ).

From what I read I can white to the MSI log using SprintfMsiLog but this way I can't control the log file name ( I don't want to run the setup with command line ) and my log lines will be with the windows MSI log and no on separate file.

Did anyone found a way to create log file hat is similar to one used in InstallScript ?