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
- :
- Re: Logging LAAW command in MSI log
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
‎Dec 05, 2014
05:11 AM
Logging LAAW command in MSI log
Hello,
How can I log the output of LaunchAppAndWait to the default log file that is created after every installation?
I tried this:
SprintfMsiLog("LAAW_TEST:", LaunchAppAndWait (szProgram,szcmdline,WAIT|LAAW_OPTION_HIDDEN));
But it didn't print any thing except this:
"1: LAAW_TEST: "
Any help about this?
Its a basic MSI project btw..
Thanks! 🙂
How can I log the output of LaunchAppAndWait to the default log file that is created after every installation?
I tried this:
SprintfMsiLog("LAAW_TEST:", LaunchAppAndWait (szProgram,szcmdline,WAIT|LAAW_OPTION_HIDDEN));
But it didn't print any thing except this:
"1: LAAW_TEST: "
Any help about this?
Its a basic MSI project btw..
Thanks! 🙂
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 05, 2014
05:55 AM
In the first argument of Sprintfmsilog(), you have to specify Format specifier like as below
SprintfMsiLog("LAAW_TEST: %d ", LaunchAppAndWait (szProgram,szcmdline,WAIT|LAAW_OPTION_HIDDEN));
SprintfMsiLog("LAAW_TEST: %d ", LaunchAppAndWait (szProgram,szcmdline,WAIT|LAAW_OPTION_HIDDEN));
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 05, 2014
06:31 AM
jay0804 wrote:
In the first argument of Sprintfmsilog(), you have to specify Format specifier like as below
SprintfMsiLog("LAAW_TEST: %d ", LaunchAppAndWait (szProgram,szcmdline,WAIT|LAAW_OPTION_HIDDEN));
Okay. I'll try that. Btw, is %d for INTs and %s for strings? If yes, is it ok if I put %s instead of %d, or is it so that LAAW returns only an INT ?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 09, 2014
03:59 AM
Yes it works with %d and %s.
thanks
thanks
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)