Hello all,
I am looking for the proper way to add registry values that are read by my
service once my service is installed. This means that the values need to
already be committed to the registry by the time the service is installed
and runs for the first time. Then, when uninstall is run, I need the
registry values to be removed prior to the service unloading
(ServiceControl).
How can I guarantee the order of these during install/uninstall? I am trying
the following:
<Component Id="C__ServiceDefaults" Guid=" " >
<Registry Action="createKeyAndRemoveKeyOnUninstall"
Id="_MY_DEFAULT" Root="HKLM"
Key="System\CurrentControlSet\Services\MyService\Parameters"
Name="MyDefaults" Type="integer" Value="1" />
</Component>
<Component Id="C__SERVICE" Guid=" " >
<File Id="_SERVICE" Name="MyService.exe"
LongName="MyService.exe" Vital="yes" KeyPath="yes" DiskId="1" />
<ServiceControl Id="SvcStop" Name="MyService" Start="install"
Stop="both" Remove="both" />
<ServiceInstall Id="SvcInstall" Name="MyService"
DisplayName="This is MyService" Type="ownProcess" Interactive="yes"
Start="auto" ErrorControl="normal" Description="This is a description of
MyService." />
</Component>
Thanks in advance,
-Trevor
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users