add start service on install component.
made conditional based on STARTSERVICEONINSTALL property (defaults to false). #24
This commit is contained in:
parent
dd788790c0
commit
dbd400dbb1
@ -30,6 +30,7 @@
|
|||||||
<Compile Include="DirectoryStructure.wxs" />
|
<Compile Include="DirectoryStructure.wxs" />
|
||||||
<Compile Include="NLog.wxs" />
|
<Compile Include="NLog.wxs" />
|
||||||
<Compile Include="Product.wxs" />
|
<Compile Include="Product.wxs" />
|
||||||
|
<Compile Include="Properties.wxs" />
|
||||||
<Compile Include="SQLiteRepository.wxs" />
|
<Compile Include="SQLiteRepository.wxs" />
|
||||||
<Compile Include="WebPages.wxs" />
|
<Compile Include="WebPages.wxs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|||||||
@ -2,6 +2,8 @@
|
|||||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
|
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
|
||||||
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
|
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
|
||||||
<Fragment>
|
<Fragment>
|
||||||
|
<PropertyRef Id="STARTSERVICEONINSTALL"/>
|
||||||
|
|
||||||
<ComponentGroup Id="DataCenterComponents">
|
<ComponentGroup Id="DataCenterComponents">
|
||||||
<ComponentRef Id="URLReservation"/>
|
<ComponentRef Id="URLReservation"/>
|
||||||
<ComponentRef Id="DataCenterFirewallConfig"/>
|
<ComponentRef Id="DataCenterFirewallConfig"/>
|
||||||
@ -175,12 +177,17 @@
|
|||||||
ResetPeriodInDays="1"
|
ResetPeriodInDays="1"
|
||||||
RestartServiceDelayInSeconds="10" />
|
RestartServiceDelayInSeconds="10" />
|
||||||
</ServiceInstall>
|
</ServiceInstall>
|
||||||
|
</Component>
|
||||||
|
<Component Id="StartDataCenterServiceOnInsall"
|
||||||
|
Guid="{884828DC-A47E-4CEF-AEEB-E46FFDFFBED3}"
|
||||||
|
KeyPath="yes">
|
||||||
<ServiceControl Id="FlexitimeDataCenterStarter"
|
<ServiceControl Id="FlexitimeDataCenterStarter"
|
||||||
Start="install"
|
Start="install"
|
||||||
Stop="uninstall"
|
Stop="uninstall"
|
||||||
Remove="uninstall"
|
Remove="uninstall"
|
||||||
Name="FlexitimeDataCenterService"
|
Name="FlexitimeDataCenterService"
|
||||||
Wait="yes"/>
|
Wait="yes"/>
|
||||||
|
<Condition><![CDATA[STARTSERVICEONINSTALL <> "false"]]></Condition>
|
||||||
</Component>
|
</Component>
|
||||||
<Component Id="WindowsDataCenterExeConfig" Guid="{CBFA53EB-0663-4A79-9990-451FC1105A12}">
|
<Component Id="WindowsDataCenterExeConfig" Guid="{CBFA53EB-0663-4A79-9990-451FC1105A12}">
|
||||||
<File Id="WindowsDataCenter.exe.config"
|
<File Id="WindowsDataCenter.exe.config"
|
||||||
|
|||||||
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
||||||
|
<Fragment>
|
||||||
|
<Property Id="STARTSERVICEONINSTALL" Value="false" />
|
||||||
|
</Fragment>
|
||||||
|
</Wix>
|
||||||
Loading…
Reference in New Issue
Block a user