Okay, I found a way to change the startup type by going to registry and change
the service 'Start' value, e.g.
HKLM\Software\SYSTEM\CurrentControlSet\Services\WhateverService
But when I try to do it in WiX, it doesn't work. Here is my code:
<Component Id="Component_StartTheService" Guid="...">
<RegistryKey Root="HKLM"
Key="Software\SYSTEM\CurrentControlSet\Services\WhateverService" >
<RegistryValue Name="Start" Value="2" Type="integer" KeyPath="yes"/>
</RegistryKey>
<ServiceControl Id="StartTheService" Name="WhateverService" Stop="install"
Start="install" Wait="yes" />
</Component>
I try to change the "Start" type from 3(manual) to be 2(Automatic). But it
doesn't work.
Does anybody know the reason? And how to make it work?
Many thanks.
/Brian
__________________________________________________________________
The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo!
Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users