Never mind, I found the answer. More pain: rajeshk [MSFT] (Expert): Q: In other words, what is the sequence of Msi API calls needed to display a MSI modal dialog using MsiProcessMessage in a C++ custom action that is invoked via "DoAction" from a button on a MSI dialog? A: Currently in the scenario of "DoAction" invoking a CA, it is not possible to use MsiProcessMessage. This limitation exists for Windows Server 2003 and higher. The only supported way is to use the automation method "Message" from a script custom action.
-----Original Message----- From: Alex Smotritsky [mailto:[EMAIL PROTECTED] Sent: Friday, December 01, 2006 3:18 PM To: 'Discussion of advanced .NET topics.' Subject: RE: [ADVANCED-DOTNET] assigning "Log on as a service" policy to an account thru windows installer Thanks Phil, I have a question for you. I have a C++ custom action dll which displays a Hello World! message box using MsiProcessMessage. I want this ca to get called when I hit next on one of my dialogs so I added a record to the ControlEvent table with DoAction and this CA as it's argument for the NextButton on this form. Now when I hit that next button I just get an hour glass for half a second and the next form doesn't come up so all I can do is cancel out of the install at that point. In the install log it just says that the ca was called, ended and returned 1. What do you think of that? -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Wilson, Phil Sent: Thursday, November 30, 2006 12:31 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] assigning "Log on as a service" policy to an account thru windows installer I believe so, yes. You'll need to careful on Vista because custom actions inherit a limited set of privileges and I don't know which is needed to update a user account. http://blogs.msdn.com/windows_installer_team/archive/2006/10/30/preview- of-upcoming-kb-articles-windows-installer-4-0-on-windows-vista.aspx Phil Wilson -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Alex Smotritsky Sent: Wednesday, November 29, 2006 12:08 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: [ADVANCED-DOTNET] assigning "Log on as a service" policy to an account thru windows installer I'm working on an installer for a windows service. I allow the user to specify a user/pass for the service to run as because LocalSystem is insufficient for this service. If the account the user provides does not have the "Log on as a service" policy assigned to it - admin accounts do not have this policy assigned to them by default, I want to atleast attempt to assign that policy to the account, then continue with the install if successfully or report failure. Is this a situation that requires a C++ custom action? Does anyone know of any good resources for this scenario? =================================== This list is hosted by DevelopMentor(r) http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor. http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com