MsiProcessMessage() can't be called from a DoAction ControlEvent, is that what's going on here?
Phil Wilson -----Original Message----- From: Sascha Beaumont [mailto:sascha.beaum...@gmail.com] Sent: Wednesday, June 16, 2010 9:39 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Unable to log through DLL using MsiProcessMessage Ahh... that sounds more a setup design problem ;) I'm pretty sure I saw a thread recently about strange behaviour when displaying additional InstallUISequence dialogs for configuration after InstallExecuteSequence has completed. Sounds similar... In my opinion you should gather configuration information prior to installation, or perform configuration post-install with a separate application (i.e. that launches when the user exits MSI) and can that can also request UAC elevation if required for system-wide configuration. On a side note, with this sequence how does your setup handle silent or reduced UI installs? What happens if the user presses "cancel" after installing the files, but before configuration? Configuration is a separate step from installation, trying to do both inside MSI is likely to cause you more headaches down the road. Sascha On Thu, Jun 17, 2010 at 2:12 PM, gapearce <mr_gapea...@yahoo.com> wrote: > > Hi Sascha - Thanks for the example code. > > I understand the out-of-scope handle problem, and I don't save one and use > it for something...I just mentioned that in the previous post to see if it > made a difference during debug. > > My code does work, until after install. I can log all day, but not after > installation is (almost) complete. I display a configuration dialog after > the files are installed, and prior to the final WiXExitDlg. During that > time I can't write to the log, and I just happened to notice that the > MSIHANDLE changed. > > I just don't understand why I can't log at that time. The MsiProcessMessage > function returns "no action taken"... > > wtf? > > > -- > View this message in context: > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Unable-to-log-through-DLL-using-MsiProcessMessage-tp709471p5189352.html > Sent from the wix-users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users *** Confidentiality Notice: This e-mail, including any associated or attached files, is intended solely for the individual or entity to which it is addressed. This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify the sender immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person. This email comes from a division of the Invensys Group, owned by Invensys plc, which is a company registered in England and Wales with its registered office at Portland House, Bressenden Place, London, SW1E 5BF (Registered number 166023). For a list of European legal entities within the Invensys Group, please go to http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77. You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail inet.hqhelpd...@invensys.com. This e-mail and any attachments thereto may be subject to the terms of any agreements between Invensys (and/or its subsidiaries and affiliates) and the recipient (and/or its subsidiaries and affiliates). ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users