FS-4203 --resolve add service setup to windows installer

This commit is contained in:
Jeff Lenk 2012-05-15 11:25:50 -05:00
parent da9aacc62e
commit d015395566
3 changed files with 62 additions and 9 deletions

View File

@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<DirectoryRef Id="INSTALLLOCATION">
<Component Id="cmpBEF12B96A80D45AC32F3B692E94A57C9" Guid="*">
<File Id="fil7DBC560A735C4208B3E7DF75D1D1E513" Name="FreeSwitchConsole.exe" Source="$(var.FreeSwitchConsole.TargetDir)\FreeSwitchConsole.exe" KeyPath="yes"/>
<ServiceInstall
Type="ownProcess"
Account="localSystem"
Vital="no"
Name="FreeSWITCH"
DisplayName="FreeSWITCH Multi Protocol Switch"
Description="FreeSWITCH service control"
Start="demand"
ErrorControl="ignore"
Interactive="no"
Arguments=" -service "/>
<ServiceControl Id="StartService" Stop="both" Remove="uninstall" Name="FreeSWITCH" Wait="no" />
</Component>
</DirectoryRef>
</Fragment>
<Fragment>
<ComponentGroup Id="FreeSwitchConsole.Binaries">
<ComponentRef Id="cmpBEF12B96A80D45AC32F3B692E94A57C9" />
</ComponentGroup>
</Fragment>
<Fragment>
<ComponentGroup Id="FreeSwitchConsole.Symbols" />
</Fragment>
<Fragment>
<DirectoryRef Id="INSTALLLOCATION">
<Component Id="cmp7AC01B2B6EDD58CE539876AB86975286" Guid="*">
<File Id="filA3A7609AFEB16B75D819A0208EFFF451" Source="$(var.FreeSwitchConsole.ProjectDir)\FreeSwitchConsole.2010.vcxproj" />
</Component>
</DirectoryRef>
</Fragment>
<Fragment>
<ComponentGroup Id="FreeSwitchConsole.Sources">
<ComponentRef Id="cmp7AC01B2B6EDD58CE539876AB86975286" />
</ComponentGroup>
</Fragment>
<Fragment>
<ComponentGroup Id="FreeSwitchConsole.Content" />
</Fragment>
<Fragment>
<ComponentGroup Id="FreeSwitchConsole.Satellites" />
</Fragment>
<Fragment>
<ComponentGroup Id="FreeSwitchConsole.Documents" />
</Fragment>
</Wix>

View File

@ -66,12 +66,12 @@
WorkingDirectory="INSTALLLOCATION"/>
<RegistryValue Root="HKCU" Key="Software\FreeSWITCH\FS_CLI" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
</Component>
</DirectoryRef>
</DirectoryRef>
<Feature Id="ProductFeature" Title="FreeSWITCH Core" Level="1">
<!-- TODO: Remove the comments around this ComponentRef element and the Component above in order to add resources to this installer. -->
<!-- <ComponentRef Id="ProductComponent" /> -->
<!-- The following Ref pulls in FreeSWITCHconsole.wxs items -->
<ComponentRef Id="cmpBEF12B96A80D45AC32F3B692E94A57C9"/>
<!-- Note: The following ComponentGroupRef is required to pull in generated authoring from project references. -->
<ComponentGroupRef Id="Product.Generated" />
<?if $(var.Platform) != x64 ?>
@ -87,12 +87,12 @@
<Feature Id="ProductFeatureFSCli" Title="FreeSWITCH Command Line Interface" Level="1">
<ComponentRef Id="FSCliShortcut" />
</Feature>
<Feature Id="ProductFeatureConf" Title="FreeSWITCH Configuration Sample" Level="1">
<ComponentGroupRef Id="FreeSWITCHConfFiles" />
</Feature>
<Feature Id="ProductFeatureSounds" Title="FreeSWITCH Sounds 8Khz" Level="1">
<ComponentGroupRef Id="FreeSWITCHSoundFiles8" />
</Feature>
<Feature Id="ProductFeatureConf" Title="FreeSWITCH Configuration Sample" Level="1">
<ComponentGroupRef Id="FreeSWITCHConfFiles" />
</Feature>
<Feature Id="ProductFeatureSounds" Title="FreeSWITCH Sounds 8Khz" Level="1">
<ComponentGroupRef Id="FreeSWITCHSoundFiles8" />
</Feature>
<UIRef Id="WixUI_Mondo" />
</Product>
</Wix>

View File

@ -36,6 +36,7 @@
<ItemGroup>
<Compile Include="Fragments\FreeSWITCHConfFiles.wxs" />
<Compile Include="Fragments\FreeSWITCHSoundFiles8.wxs" />
<Compile Include="FreeSWITCHConsole.wxs" />
<Compile Include="Product.wxs" />
</ItemGroup>
<ItemGroup>
@ -791,6 +792,7 @@
<Project>{1af3a893-f7be-43dd-b697-8ab2397c0d67}</Project>
<Private>True</Private>
<DoNotHarvest>
True
</DoNotHarvest>
<RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups>
<RefTargetDir>INSTALLLOCATION</RefTargetDir>