You could use a custom action to do this. cmd /c "sc config RemoteRegistry start= auto"
Then use a condition like NOT Installed to run the CA only when the installer has not been installed on the target machine. On Thu, May 22, 2014 at 9:55 AM, David Welton < david.wel...@uk.thalesgroup.com> wrote: > I am trying to start the RemoteRegistry service on a Win7 machine using > the ServiceControl element. > > The service initially has a Startup Type of Disabled. > > > > My code simply looks like... > > > > <Component Id='RemoteRegistryServiceComponent' Guid='MY-GUID'> > > <ServiceControl Id='RemoteRegistryServiceControl' > Name='RemoteRegistry' Start='install' Stop='both' Wait='no'> > > </ServiceControl> > > <Condition>VersionNT = 601</Condition> > > <CreateFolder/> > > </Component> > > > > I am logged in as an administrator on the target machine. > > When I run my installer on the target machine it fails and pops up a > message saying "Service 'Remote Registry' (RemoteRegistry) failed to > start. Verify that you have sufficient privileges to start system > processes." I figure that this is not about privileges as I'm an admin, > but more about the startup type being disabled. If I manually go into > the Service Control Manager and change the startup type to manual or > auto I'm able to start the service through the installer. > > > > Ideally I'd like to change the startup type to auto through the > installer so it starts on subsequent reboots of the OS but because this > is an existing windows service I am not performing a ServiceInstall and > so cannot set the Startup Type there. > > I have tried using <ServiceArgument> but really don't understand how to > format it. > > Any help would be greatly appreciated. > > > > Regards, > > David > > > ------------------------------------------------------------------------------ > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. > Get unparalleled scalability from the best Selenium testing platform > available > Simple to use. Nothing to install. Get started now for free." > http://p.sf.net/sfu/SauceLabs > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- "They may forget what you said but they will never forget how you made them feel." -- Anonymous ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users