Merge pull request #1181 in FS/freeswitch from ~ANDYWOLK/freeswitch:bugfix/FS-10010-fix-windows-wix-installer-by-including to master
* commit '7d1210237ab0820032bce16393c44dd1c2bc3523': FS-10010 [WIX] Fix windows WIX installer by including a proper vc runtime
This commit is contained in:
commit
c125ab7315
|
@ -2,20 +2,52 @@
|
||||||
<!-- Platform specific variables -->
|
<!-- Platform specific variables -->
|
||||||
<?if $(var.Platform) = x64 ?>
|
<?if $(var.Platform) = x64 ?>
|
||||||
<?define Win64 = "yes" ?>
|
<?define Win64 = "yes" ?>
|
||||||
<?define ProductName = "FreeSWITCH (64 bit)" ?>
|
<?if $(var.Configuration) = Debug ?>
|
||||||
|
<?define ProductName_Configuration = ", Debug" ?>
|
||||||
|
<?else ?>
|
||||||
|
<?define ProductName_Configuration = "" ?>
|
||||||
|
<?endif ?>
|
||||||
|
<?define ProductName = "FreeSWITCH (64 bit$(var.ProductName_Configuration))" ?>
|
||||||
<?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
|
<?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
|
||||||
<?else ?>
|
<?else ?>
|
||||||
<?define Win64 = "no" ?>
|
<?define Win64 = "no" ?>
|
||||||
<?define ProductName = "FreeSWITCH" ?>
|
<?if $(var.Configuration) = Debug ?>
|
||||||
|
<?define ProductName_Configuration = " (Debug)" ?>
|
||||||
|
<?else ?>
|
||||||
|
<?define ProductName_Configuration = "" ?>
|
||||||
|
<?endif ?>
|
||||||
|
<?define ProductName = "FreeSWITCH$(var.ProductName_Configuration)" ?>
|
||||||
<?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
|
<?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
|
||||||
<?endif ?>
|
<?endif ?>
|
||||||
|
|
||||||
|
<?if $(var.Configuration) = Debug ?>
|
||||||
|
<?define CRT_Configuration = "Debug" ?>
|
||||||
|
<?else ?>
|
||||||
|
<?define CRT_Configuration = "" ?>
|
||||||
|
<?endif ?>
|
||||||
|
|
||||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
||||||
<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">
|
<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">
|
||||||
<Package InstallerVersion="405" Compressed="yes" />
|
<Package InstallerVersion="405" Compressed="yes" />
|
||||||
|
|
||||||
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
|
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
|
||||||
|
|
||||||
|
<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" />
|
||||||
|
|
||||||
|
<Property Id="UCRTINSTALLED" Secure="yes">
|
||||||
|
<DirectorySearch Id="searchSystem2" Path="[SystemFolder]" Depth="0">
|
||||||
|
<FileSearch Id="UCRT_FileSearch"
|
||||||
|
Name="ucrtbase.dll"
|
||||||
|
MinVersion="6.2.10585.0"/>
|
||||||
|
</DirectorySearch>
|
||||||
|
</Property>
|
||||||
|
|
||||||
|
<InstallExecuteSequence>
|
||||||
|
<Custom Action='CheckForUCRT' Before='LaunchConditions'>
|
||||||
|
<![CDATA[Not REMOVE="ALL" AND UCRTINSTALLED = ""]]>
|
||||||
|
</Custom>
|
||||||
|
</InstallExecuteSequence>
|
||||||
|
|
||||||
<Directory Id="TARGETDIR" Name="SourceDir">
|
<Directory Id="TARGETDIR" Name="SourceDir">
|
||||||
<Directory Id="$(var.PlatformProgramFilesFolder)">
|
<Directory Id="$(var.PlatformProgramFilesFolder)">
|
||||||
<Directory Id="INSTALLLOCATION" Name="FreeSWITCH">
|
<Directory Id="INSTALLLOCATION" Name="FreeSWITCH">
|
||||||
|
@ -31,13 +63,13 @@
|
||||||
<!-- </Component> -->
|
<!-- </Component> -->
|
||||||
<?if $(var.Platform) != x64 ?>
|
<?if $(var.Platform) != x64 ?>
|
||||||
<Merge Id="CrtFiles_x86"
|
<Merge Id="CrtFiles_x86"
|
||||||
SourceFile="$(env.CommonProgramFiles)\Merge Modules\Microsoft_VC110_CRT_x86.msm"
|
SourceFile="$(env.CommonProgramFiles)\Merge Modules\Microsoft_VC140_$(var.CRT_Configuration)CRT_x86.msm"
|
||||||
DiskId="1"
|
DiskId="1"
|
||||||
Language="1033"/>
|
Language="1033"/>
|
||||||
<?endif ?>
|
<?endif ?>
|
||||||
<?if $(var.Platform) = x64 ?>
|
<?if $(var.Platform) = x64 ?>
|
||||||
<Merge Id="CrtFiles_x64"
|
<Merge Id="CrtFiles_x64"
|
||||||
SourceFile="$(env.CommonProgramFiles)\Merge Modules\Microsoft_VC110_CRT_x64.msm"
|
SourceFile="$(env.CommonProgramFiles)\Merge Modules\Microsoft_VC140_$(var.CRT_Configuration)CRT_x64.msm"
|
||||||
DiskId="1"
|
DiskId="1"
|
||||||
Language="1033"/>
|
Language="1033"/>
|
||||||
<?endif ?>
|
<?endif ?>
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||||
<OutputPath>bin\x86\release\</OutputPath>
|
<OutputPath>bin\x86\release\</OutputPath>
|
||||||
<IntermediateOutputPath>obj\X86\$(Configuration)\</IntermediateOutputPath>
|
<IntermediateOutputPath>obj\X86\$(Configuration)\</IntermediateOutputPath>
|
||||||
<DefineConstants>Debug;FreeSWITCHConfFilesDir=$(ProjectDir)..\..\conf\vanilla;FreeSWITCHSoundFilesDir=$(ProjectDir)..\..\Win32\release\sounds;FreeSWITCHBaseDir=$(SolutionDir)Win32\$(Configuration);</DefineConstants>
|
<DefineConstants>FreeSWITCHConfFilesDir=$(ProjectDir)..\..\conf\vanilla;FreeSWITCHSoundFilesDir=$(ProjectDir)..\..\Win32\release\sounds;FreeSWITCHBaseDir=$(SolutionDir)Win32\$(Configuration);</DefineConstants>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
|
||||||
<OutputPath>bin\x64\Debug\</OutputPath>
|
<OutputPath>bin\x64\Debug\</OutputPath>
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
|
||||||
<OutputPath>bin\x64\Release\</OutputPath>
|
<OutputPath>bin\x64\Release\</OutputPath>
|
||||||
<IntermediateOutputPath>obj\X64\$(Configuration)\</IntermediateOutputPath>
|
<IntermediateOutputPath>obj\X64\$(Configuration)\</IntermediateOutputPath>
|
||||||
<DefineConstants>Debug;FreeSWITCHConfFilesDir=$(ProjectDir)..\..\conf\vanilla;FreeSWITCHSoundFilesDir=$(ProjectDir)..\..\x64\release\sounds;FreeSWITCHBaseDir=$(SolutionDir)$(Platform)\$(Configuration);</DefineConstants>
|
<DefineConstants>FreeSWITCHConfFilesDir=$(ProjectDir)..\..\conf\vanilla;FreeSWITCHSoundFilesDir=$(ProjectDir)..\..\x64\release\sounds;FreeSWITCHBaseDir=$(SolutionDir)$(Platform)\$(Configuration);</DefineConstants>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Fragments\FreeSWITCHConfFiles.wxs" />
|
<Compile Include="Fragments\FreeSWITCHConfFiles.wxs" />
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||||
<OutputPath>bin\x86\release\</OutputPath>
|
<OutputPath>bin\x86\release\</OutputPath>
|
||||||
<IntermediateOutputPath>obj\X86\$(Configuration)\</IntermediateOutputPath>
|
<IntermediateOutputPath>obj\X86\$(Configuration)\</IntermediateOutputPath>
|
||||||
<DefineConstants>Debug;FreeSWITCHConfFilesDir=$(ProjectDir)..\..\conf\vanilla;FreeSWITCHSoundFilesDir=$(ProjectDir)..\..\Win32\release\sounds;</DefineConstants>
|
<DefineConstants>FreeSWITCHConfFilesDir=$(ProjectDir)..\..\conf\vanilla;FreeSWITCHSoundFilesDir=$(ProjectDir)..\..\Win32\release\sounds;</DefineConstants>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
|
||||||
<OutputPath>bin\x64\Debug\</OutputPath>
|
<OutputPath>bin\x64\Debug\</OutputPath>
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
|
||||||
<OutputPath>bin\x64\Release\</OutputPath>
|
<OutputPath>bin\x64\Release\</OutputPath>
|
||||||
<IntermediateOutputPath>obj\X64\$(Configuration)\</IntermediateOutputPath>
|
<IntermediateOutputPath>obj\X64\$(Configuration)\</IntermediateOutputPath>
|
||||||
<DefineConstants>Debug;FreeSWITCHConfFilesDir=$(ProjectDir)..\..\conf\vanilla;FreeSWITCHSoundFilesDir=$(ProjectDir)..\..\x64\release\sounds;</DefineConstants>
|
<DefineConstants>FreeSWITCHConfFilesDir=$(ProjectDir)..\..\conf\vanilla;FreeSWITCHSoundFilesDir=$(ProjectDir)..\..\x64\release\sounds;</DefineConstants>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Fragments\FreeSWITCHConfFiles.wxs" />
|
<Compile Include="Fragments\FreeSWITCHConfFiles.wxs" />
|
||||||
|
|
Loading…
Reference in New Issue