The checkbox can't be on the setup finished dialog because the installer is no longer elevated as it's after the installation transaction.
The correct approach would be to put the checkbox in the UI before the Ready To Install dialog. Have the checkbox set a property and use that property in a condition for the component that has the ServiceControl element. That way if the property is set the component will install and the service will be started by the StartServices standard action which is sequenced between inside the elevated transaction ( between InstallInitialize and InstallFinalize ). ---------------------------------------- From: "Dave Combs" <dave.co...@kaazing.com> Sent: Tuesday, March 20, 2012 7:24 PM To: "General discussion for Windows Installer XML toolset." <wix-users@lists.sourceforge.net> Subject: [WiX-users] starting a service after install, when user is not an admin? I've been asked to write an MSI which installs a service, then starts the service based on a user checkbox after the install finishes (the service starts a Java-based server.) The problem: while the installation process correctly asks for privilege elevation during the install, and does install correctly, it fails starting the service. I've read various ways that people have tried getting around this problem (type 34 actions, type 50 actions, running after InstallFinalize in the execute sequence, etc., etc.) Most seem to have failed. Does anybody now know of a way to get an installed service to start for a non-admin user (it's fine to have it request privilege execution at the start time)? I'm pretty much at wits end after two days trying to do this. Note that if the user invokes the install from an elevated command shell or using 'Run as Administrator', everything works fine, including starting the service, so I know it's not the service itself. Thanks!! Dave ---------------------------------------------------------------------------- -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users