summaryrefslogtreecommitdiff
path: root/windows
diff options
context:
space:
mode:
authorAlin Serdean <aserdean@cloudbasesolutions.com>2016-12-06 02:58:30 +0000
committerGurucharan Shetty <guru@ovn.org>2016-12-21 15:11:48 -0800
commit0c15b76511e78a1f84dec49138d7169c2f3eedf6 (patch)
treeba7cc9a7823416147da62a558276e7f0f1ba6bcf /windows
parente90a875336e3b92cd8b3ace19e4302e1f7ce23f5 (diff)
downloadopenvswitch-0c15b76511e78a1f84dec49138d7169c2f3eedf6.tar.gz
msi-windows: Add version variable
Currently we have a predefined variable for the product version. This patch adds a new variable called 'Version' to the MSI project and uses it for the product version. If the variable is not specified via the command line it will have the default value of '1.0.0.0'. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Acked-by: Sairam Venugopal <vsairam@vmware.com> Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Diffstat (limited to 'windows')
-rw-r--r--windows/ovs-windows-installer/Product.wxs2
-rw-r--r--windows/ovs-windows-installer/ovs-windows-installer.wixproj15
2 files changed, 9 insertions, 8 deletions
diff --git a/windows/ovs-windows-installer/Product.wxs b/windows/ovs-windows-installer/Product.wxs
index 8b58729b7..15cd909a9 100644
--- a/windows/ovs-windows-installer/Product.wxs
+++ b/windows/ovs-windows-installer/Product.wxs
@@ -18,7 +18,7 @@
-->
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
- <Product Id="{0DF60ED5-6C22-49A0-913E-77412D35C400}" Name="Open vSwitch for Hyper-V" Language="1033" Version="1.0.0.0"
+ <Product Id="{0DF60ED5-6C22-49A0-913E-77412D35C400}" Name="Open vSwitch for Hyper-V" Language="1033" Version="$(var.Version)"
Manufacturer="Open vSwitch" UpgradeCode="da802b12-433d-4742-a7ae-783aa0c48222">
<Package InstallerVersion="405" Compressed="yes" InstallScope="perMachine" InstallPrivileges="elevated" Platform="x64" />
diff --git a/windows/ovs-windows-installer/ovs-windows-installer.wixproj b/windows/ovs-windows-installer/ovs-windows-installer.wixproj
index 30b5d553c..f0e8f5012 100644
--- a/windows/ovs-windows-installer/ovs-windows-installer.wixproj
+++ b/windows/ovs-windows-installer/ovs-windows-installer.wixproj
@@ -10,16 +10,17 @@
<OutputType>Package</OutputType>
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' AND '$(MSBuildExtensionsPath32)' != '' ">$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
+ <Version Condition=" '$(Version)' == '' ">1.0.0.0</Version>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<OutputPath>bin\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
- <DefineConstants>Debug</DefineConstants>
+ <DefineConstants>Debug;Version=$(Version)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>bin\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
- <DefineConstants>BinariesPath=Binaries;SymbolsPath=Symbols;</DefineConstants>
+ <DefineConstants>BinariesPath=Binaries;SymbolsPath=Symbols;Version=$(Version)</DefineConstants>
<SuppressAllWarnings>False</SuppressAllWarnings>
<Pedantic>False</Pedantic>
<SuppressSpecificWarnings>1076;</SuppressSpecificWarnings>
@@ -30,7 +31,7 @@
<IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
- <DefineConstants>BinariesPath=Binaries;SymbolsPath=Symbols;</DefineConstants>
+ <DefineConstants>BinariesPath=Binaries;SymbolsPath=Symbols;Version=$(Version)</DefineConstants>
<SuppressAllWarnings>False</SuppressAllWarnings>
<Pedantic>False</Pedantic>
<SuppressSpecificWarnings>1076;</SuppressSpecificWarnings>
@@ -38,12 +39,12 @@
<IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
- <DefineConstants>Debug</DefineConstants>
+ <DefineConstants>Debug;Version=$(Version)</DefineConstants>
<OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
- <DefineConstants>BinariesPath=Binaries;SymbolsPath=Symbols;</DefineConstants>
+ <DefineConstants>BinariesPath=Binaries;SymbolsPath=Symbols;Version=$(Version)</DefineConstants>
<SuppressAllWarnings>False</SuppressAllWarnings>
<Pedantic>False</Pedantic>
<SuppressSpecificWarnings>1076;</SuppressSpecificWarnings>
@@ -51,12 +52,12 @@
<IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
- <DefineConstants>Debug</DefineConstants>
+ <DefineConstants>Debug;Version=$(Version)</DefineConstants>
<OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
- <DefineConstants>BinariesPath=Binaries;SymbolsPath=Symbols;</DefineConstants>
+ <DefineConstants>BinariesPath=Binaries;SymbolsPath=Symbols;Version=$(Version)</DefineConstants>
<SuppressAllWarnings>False</SuppressAllWarnings>
<Pedantic>False</Pedantic>
<SuppressSpecificWarnings>1076;</SuppressSpecificWarnings>