This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- SprintfMsiLog doesn't write anything !?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 19, 2007
09:53 AM
SprintfMsiLog doesn't write anything !?
Hi,
I work with installshield 2008 (basic msi project)
i'd like to place some information in my custom action (install script code) and on internet i've found this link :
http://www.macrovision.com/webdocuments/PDF/msi_writing_to_the_log_file.pdf?link_id=productsTipsTricks
on my project i have a custom action (installscript) who is execute in the user interface when a user click on next :
but if i launch my file msi in a command prompt with this parameter : /l*v c:\log.txt i can't see anything in the log file about => custom action executee !!!
Have you got any idea what happens ?
Thanks
Christophe
I work with installshield 2008 (basic msi project)
i'd like to place some information in my custom action (install script code) and on internet i've found this link :
http://www.macrovision.com/webdocuments/PDF/msi_writing_to_the_log_file.pdf?link_id=productsTipsTricks
on my project i have a custom action (installscript) who is execute in the user interface when a user click on next :
****** other code **********
SprintfMsiLog("custom action executee !");
but if i launch my file msi in a command prompt with this parameter : /l*v c:\log.txt i can't see anything in the log file about => custom action executee !!!
Have you got any idea what happens ?
Thanks
Christophe
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 19, 2007
10:11 AM
I'm sorry but i think it was an error than me ! !
now i've place the custom action in the sequence as the sample => launch condition and on the log file i can see my sentence !
sorry
Christophe
now i've place the custom action in the sequence as the sample => launch condition and on the log file i can see my sentence !
sorry
Christophe
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 19, 2007
11:07 AM
To write to the MSI log, SprintfMsiLog uses the MsiProcessMessage API. This API does not work from custom actions launched through DoAction events. More information can be found in the following MSDN Windows Installer chat transcript:
http://msdn2.microsoft.com/en-us/chats/bb332322.aspx
http://msdn2.microsoft.com/en-us/chats/bb332322.aspx
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 20, 2007
01:31 AM
Hi joshstechnij,
thanks you for your information and the link !
Have a nice day
Christophe
thanks you for your information and the link !
Have a nice day
Christophe
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)