]> git.proxmox.com Git - mirror_ovs.git/commitdiff
MSI: Use platform specific netcfg location
authorAlin Gabriel Serdean <aserdean@ovn.org>
Mon, 11 Dec 2017 18:22:27 +0000 (20:22 +0200)
committerAlin Gabriel Serdean <aserdean@ovn.org>
Fri, 5 Jan 2018 13:55:53 +0000 (15:55 +0200)
We use the command `netcfg` to install the Windows datapath.

Since we have both 32 and 64 bit installers available point it to the
platform specific binary.

Found while testing.

Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
windows/ovs-windows-installer/CustomActions.wxs

index 422f9516901cefc84788fb09f2999141cbc4cec1..cc1b80eff5f9cf8556400801a1de87dff5246db8 100644 (file)
     under the License.
   </copyright>
 -->
+<?if $(var.Platform) = x64 ?>
+  <?define NetcfgFolder = "[System64Folder]" ?>
+<?else ?>
+  <?define NetcfgFolder = "[WindowsFolder]Sysnative" ?>
+<?endif ?>
 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
   <Fragment>
     <Binary Id="OVSActions" SourceFile="Actions\OVSActions.js" />
               JScriptCall="runCommandAction" Execute="deferred" Return="check" Impersonate="no" />
 
     <CustomAction Id="InstallOpenVSwitchDriver_Prop" Property="InstallOpenVSwitchDriver"
-                  Value='"[WindowsFolder]Sysnative\netcfg.exe" -l "[DRIVERDIR]\ovsext.inf" -c s -i ovsext|0|netcfg failed to install the Open vSwitch Hyper-V switch extension'
+                  Value='"$(var.NetcfgFolder)\netcfg.exe" -l "[DRIVERDIR]\ovsext.inf" -c s -i ovsext|0|netcfg failed to install the Open vSwitch Hyper-V switch extension'
                   Execute="immediate" />
     <CustomAction Id="InstallOpenVSwitchDriver"
               BinaryKey="OVSActions"
               JScriptCall="runCommandAction" Execute="deferred" Return="check" Impersonate="no" />
 
     <CustomAction Id="UninstallOpenVSwitchDriver_Prop" Property="UninstallOpenVSwitchDriver"
-                  Value='"[WindowsFolder]Sysnative\netcfg.exe" -u ovsext|0|netcfg failed to uninstall the Open vSwitch Hyper-V switch extension'
+                  Value='"$(var.NetcfgFolder)\netcfg.exe" -u ovsext|0|netcfg failed to uninstall the Open vSwitch Hyper-V switch extension'
                   Execute="immediate" />
     <CustomAction Id="UninstallOpenVSwitchDriver"
               BinaryKey="OVSActions"