Product.2012.wxs 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Platform specific variables -->
  3. <?if $(var.Platform) = x64 ?>
  4. <?define Win64 = "yes" ?>
  5. <?define ProductName = "FreeSWITCH (64 bit)" ?>
  6. <?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
  7. <?else ?>
  8. <?define Win64 = "no" ?>
  9. <?define ProductName = "FreeSWITCH" ?>
  10. <?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
  11. <?endif ?>
  12. <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  13. <Product Id="b004a325-1272-47e5-a415-a74e9fc99865" Name="$(var.ProductName)" Language="1033" Version="1.0.0.0" Manufacturer="FreeSWITCH" UpgradeCode="3af7020b-1348-45e8-a0cf-80909d4eb421">
  14. <Package InstallerVersion="405" Compressed="yes" />
  15. <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
  16. <Directory Id="TARGETDIR" Name="SourceDir">
  17. <Directory Id="$(var.PlatformProgramFilesFolder)">
  18. <Directory Id="INSTALLLOCATION" Name="FreeSWITCH">
  19. <Directory Id="MODLOCATION" Name="mod">
  20. </Directory>
  21. <Directory Id="CONFLOCATION" Name="conf">
  22. </Directory>
  23. <Directory Id="SOUNDLOCATION" Name="sounds">
  24. </Directory>
  25. <!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. -->
  26. <!-- <Component Id="ProductComponent" Guid="6f1498a7-d029-430b-b9d9-fe12e17bdbab"> -->
  27. <!-- TODO: Insert files, registry keys, and other resources here. -->
  28. <!-- </Component> -->
  29. <?if $(var.Platform) != x64 ?>
  30. <Merge Id="CrtFiles_x86"
  31. SourceFile="$(env.CommonProgramFiles)\Merge Modules\Microsoft_VC110_CRT_x86.msm"
  32. DiskId="1"
  33. Language="1033"/>
  34. <?endif ?>
  35. <?if $(var.Platform) = x64 ?>
  36. <Merge Id="CrtFiles_x64"
  37. SourceFile="$(env.CommonProgramFiles)\Merge Modules\Microsoft_VC110_CRT_x64.msm"
  38. DiskId="1"
  39. Language="1033"/>
  40. <?endif ?>
  41. </Directory>
  42. </Directory>
  43. <Directory Id="ProgramMenuFolder">
  44. <Directory Id="ApplicationProgramsFolder" Name="FreeSWITCH"/>
  45. </Directory>
  46. </Directory>
  47. <DirectoryRef Id="ApplicationProgramsFolder">
  48. <Component Id="ApplicationShortcut" Guid="B554D1D1-C8C6-4d46-A3E7-4BA836EF929B">
  49. <Shortcut Id="ApplicationStartMenuShortcut"
  50. Name="FreeSWITCH"
  51. Description="FreeSWITCH Telephony SoftSwitch"
  52. Target="[INSTALLLOCATION]FreeSwitchConsole.exe"
  53. WorkingDirectory="INSTALLLOCATION"/>
  54. <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
  55. <RegistryValue Root="HKCU" Key="Software\FreeSWITCH\FreeSWITCH" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
  56. </Component>
  57. <Component Id="FSCliShortcut" Guid="D209546C-C728-4d8f-BDB2-29AED8824282">
  58. <Shortcut Id="FSCliStartMenuShortcut"
  59. Name="FS_Cli"
  60. Description="FreeSWITCH Command Line Interface"
  61. Target="[INSTALLLOCATION]fs_cli.exe"
  62. WorkingDirectory="INSTALLLOCATION"/>
  63. <RegistryValue Root="HKCU" Key="Software\FreeSWITCH\FS_CLI" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
  64. </Component>
  65. </DirectoryRef>
  66. <Feature Id="ProductFeature" Title="FreeSWITCH Core" Level="1">
  67. <!-- TODO: Remove the comments around this ComponentRef element and the Component above in order to add resources to this installer. -->
  68. <!-- <ComponentRef Id="ProductComponent" /> -->
  69. <!-- The following Ref pulls in FreeSWITCHconsole.wxs items -->
  70. <ComponentRef Id="cmpBEF12B96A80D45AC32F3B692E94A57C9"/>
  71. <!-- Note: The following ComponentGroupRef is required to pull in generated authoring from project references. -->
  72. <ComponentGroupRef Id="FreeSWITCHBaseFiles" />
  73. <?if $(var.Platform) != x64 ?>
  74. <MergeRef Id="CrtFiles_x86"/>
  75. <?endif ?>
  76. <?if $(var.Platform) = x64 ?>
  77. <MergeRef Id="CrtFiles_x64"/>
  78. <?endif ?>
  79. </Feature>
  80. <Feature Id="ProductFeatureFreeSWITCH" Title="FreeSWITCH" Level="1">
  81. <ComponentRef Id="ApplicationShortcut" />
  82. </Feature>
  83. <Feature Id="ProductFeatureFSCli" Title="FreeSWITCH Command Line Interface" Level="1">
  84. <ComponentRef Id="FSCliShortcut" />
  85. </Feature>
  86. <Feature Id="ProductFeatureConf" Title="FreeSWITCH Configuration Sample" Level="1">
  87. <ComponentGroupRef Id="FreeSWITCHConfFiles" />
  88. </Feature>
  89. <Feature Id="ProductFeatureSounds" Title="FreeSWITCH Sounds 8Khz" Level="1">
  90. <ComponentGroupRef Id="FreeSWITCHSoundFiles8" />
  91. </Feature>
  92. <UIRef Id="WixUI_Mondo" />
  93. </Product>
  94. </Wix>