2
0

Product.2015.wxs 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Platform specific variables -->
  3. <?if $(var.Platform) = x64 ?>
  4. <?define Win64 = "yes" ?>
  5. <?if $(var.Configuration) = Debug ?>
  6. <?define ProductName_Configuration = ", Debug" ?>
  7. <?else ?>
  8. <?define ProductName_Configuration = "" ?>
  9. <?endif ?>
  10. <?define ProductName = "FreeSWITCH (64 bit$(var.ProductName_Configuration))" ?>
  11. <?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
  12. <?else ?>
  13. <?define Win64 = "no" ?>
  14. <?if $(var.Configuration) = Debug ?>
  15. <?define ProductName_Configuration = " (Debug)" ?>
  16. <?else ?>
  17. <?define ProductName_Configuration = "" ?>
  18. <?endif ?>
  19. <?define ProductName = "FreeSWITCH$(var.ProductName_Configuration)" ?>
  20. <?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
  21. <?endif ?>
  22. <?if $(var.Configuration) = Debug ?>
  23. <?define CRT_Configuration = "Debug" ?>
  24. <?else ?>
  25. <?define CRT_Configuration = "" ?>
  26. <?endif ?>
  27. <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  28. <Product Id="b004a325-1272-47e5-a415-a74e9fc99865" Name="$(var.ProductName)" Language="1033" Version="$(var.ProductVersion)" Manufacturer="FreeSWITCH" UpgradeCode="3af7020b-1348-45e8-a0cf-80909d4eb421">
  29. <Package InstallerVersion="405" Compressed="yes" />
  30. <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
  31. <CustomAction Id='CheckForUCRT' Error="Installation failed because the Universal C Runtime is not installed. Please run Windows Update and install all required Windows updates. You can download the UCRT separately from here: https://support.microsoft.com/en-us/kb/2999226" />
  32. <Property Id="UCRTINSTALLED" Secure="yes">
  33. <DirectorySearch Id="searchSystem2" Path="[SystemFolder]" Depth="0">
  34. <FileSearch Id="UCRT_FileSearch"
  35. Name="ucrtbase.dll"
  36. MinVersion="6.2.10585.0"/>
  37. </DirectorySearch>
  38. </Property>
  39. <InstallExecuteSequence>
  40. <Custom Action='CheckForUCRT' Before='LaunchConditions'>
  41. <![CDATA[Not REMOVE="ALL" AND UCRTINSTALLED = ""]]>
  42. </Custom>
  43. </InstallExecuteSequence>
  44. <Directory Id="TARGETDIR" Name="SourceDir">
  45. <Directory Id="$(var.PlatformProgramFilesFolder)">
  46. <Directory Id="INSTALLLOCATION" Name="FreeSWITCH">
  47. <Directory Id="MODLOCATION" Name="mod">
  48. </Directory>
  49. <Directory Id="CONFLOCATION" Name="conf">
  50. </Directory>
  51. <Directory Id="SOUNDLOCATION" Name="sounds">
  52. </Directory>
  53. <!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. -->
  54. <!-- <Component Id="ProductComponent" Guid="6f1498a7-d029-430b-b9d9-fe12e17bdbab"> -->
  55. <!-- TODO: Insert files, registry keys, and other resources here. -->
  56. <!-- </Component> -->
  57. <?if $(var.Platform) != x64 ?>
  58. <Merge Id="CrtFiles_x86"
  59. SourceFile="$(env.CommonProgramFiles)\Merge Modules\Microsoft_VC140_$(var.CRT_Configuration)CRT_x86.msm"
  60. DiskId="1"
  61. Language="1033"/>
  62. <?endif ?>
  63. <?if $(var.Platform) = x64 ?>
  64. <Merge Id="CrtFiles_x64"
  65. SourceFile="$(env.CommonProgramFiles)\Merge Modules\Microsoft_VC140_$(var.CRT_Configuration)CRT_x64.msm"
  66. DiskId="1"
  67. Language="1033"/>
  68. <?endif ?>
  69. </Directory>
  70. </Directory>
  71. <Directory Id="ProgramMenuFolder">
  72. <Directory Id="ApplicationProgramsFolder" Name="FreeSWITCH"/>
  73. </Directory>
  74. </Directory>
  75. <DirectoryRef Id="ApplicationProgramsFolder">
  76. <Component Id="ApplicationShortcut" Guid="B554D1D1-C8C6-4d46-A3E7-4BA836EF929B">
  77. <Shortcut Id="ApplicationStartMenuShortcut"
  78. Name="FreeSWITCH"
  79. Description="FreeSWITCH Telephony SoftSwitch"
  80. Target="[INSTALLLOCATION]FreeSwitchConsole.exe"
  81. WorkingDirectory="INSTALLLOCATION"/>
  82. <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
  83. <RegistryValue Root="HKCU" Key="Software\FreeSWITCH\FreeSWITCH" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
  84. </Component>
  85. <Component Id="FSCliShortcut" Guid="D209546C-C728-4d8f-BDB2-29AED8824282">
  86. <Shortcut Id="FSCliStartMenuShortcut"
  87. Name="FS_Cli"
  88. Description="FreeSWITCH Command Line Interface"
  89. Target="[INSTALLLOCATION]fs_cli.exe"
  90. WorkingDirectory="INSTALLLOCATION"/>
  91. <RegistryValue Root="HKCU" Key="Software\FreeSWITCH\FS_CLI" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
  92. </Component>
  93. </DirectoryRef>
  94. <Feature Id="ProductFeature" Title="FreeSWITCH Core" Level="1">
  95. <!-- TODO: Remove the comments around this ComponentRef element and the Component above in order to add resources to this installer. -->
  96. <!-- <ComponentRef Id="ProductComponent" /> -->
  97. <!-- The following Ref pulls in FreeSWITCHconsole.wxs items -->
  98. <ComponentRef Id="cmpBEF12B96A80D45AC32F3B692E94A57C9"/>
  99. <!-- This following Ref Pulls in fs_cli.exe-->
  100. <ComponentRef Id="cmp5A06A4A7E1884331BC6C949456B5F293"/>
  101. <!-- Note: The following ComponentGroupRef is required to pull in generated authoring from project references. -->
  102. <ComponentGroupRef Id="FreeSWITCHBaseFiles" />
  103. <?if $(var.Platform) != x64 ?>
  104. <MergeRef Id="CrtFiles_x86"/>
  105. <?endif ?>
  106. <?if $(var.Platform) = x64 ?>
  107. <MergeRef Id="CrtFiles_x64"/>
  108. <?endif ?>
  109. </Feature>
  110. <Feature Id="ProductFeatureFreeSWITCH" Title="FreeSWITCH" Level="1">
  111. <ComponentRef Id="ApplicationShortcut" />
  112. </Feature>
  113. <Feature Id="ProductFeatureFSCli" Title="FreeSWITCH Command Line Interface" Level="1">
  114. <ComponentRef Id="FSCliShortcut" />
  115. </Feature>
  116. <Feature Id="ProductFeatureConf" Title="FreeSWITCH Configuration Sample" Level="1">
  117. <ComponentGroupRef Id="FreeSWITCHConfFiles" />
  118. </Feature>
  119. <Feature Id="ProductFeatureSounds" Title="FreeSWITCH Sounds 8Khz" Level="1">
  120. <ComponentGroupRef Id="FreeSWITCHSoundFiles8" />
  121. </Feature>
  122. <UIRef Id="WixUI_Mondo" />
  123. </Product>
  124. </Wix>