I'm pretty sure that the Windows Installer uses CreateProcess internally to execute type 50 custom actions. So, it will always execute the new process at the same level as the Windows Installer process. If it's running out of the UI sequence, that means that it won't be elevated and will fail.
To make this work, you need something that will call ShellExecute on the SQL Express installer exe. This can be done with either a separate exe that will then just ShellExecute another exe or a custom action in a dll that will ShellExecute something. -Ari -----Original Message----- From: Peter Björkman [mailto:[email protected]] Sent: Tuesday, January 27, 2009 7:08 AM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Executable started with Custom Action type 50 does not ask for privileges in Vista Hi everone. In my msi I have a custom action of type 50. The custom action is run if the user in a dialog chooses to cancel the installation to instead start an installation of SQL Express 2005 (which in some cases is a prerequisite). The installation of SQL Express is started asynchronously so my msi will have plenty of time to terminate before the SQL Express installation has finished extracting its files. My problem is that Vista does not show the UAC dialog when the SQL Express installation is started. This causes the installation of SQL Express to fail as it does not have the privileges to open some file (the log file from the SQL Express installation does not show which file). Is executables always started without privileges? Can I tell Vista that the executable should be run with privileges? Best regards Peter Björkman ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

