1 <?xml version="1.0" encoding="UTF-8"?>
3 <copyright company="Cloudbase Solutions Srl">
4 Copyright 2015 Cloudbase Solutions Srl
6 Licensed under the Apache License, Version 2.0 (the "License"); you may
7 not use this file except in compliance with the License.You may obtain
8 a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the
15 License for the specific language governing permissions and limitations
19 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
21 <Binary Id="OVSActions" SourceFile="Actions\OVSActions.js" />
23 <CustomAction Id="GenerateConfDB_Prop" Property="GenerateConfDB"
24 Value='"[BINARIESDIR]ovsdb-tool.exe" create "[CONFDIR]conf.db" "[CONFDIR]vswitch.ovsschema"|0|ovsdb-tool failed to create the conf.db database'
25 Execute="immediate" />
26 <CustomAction Id="GenerateConfDB"
27 BinaryKey="OVSActions"
28 JScriptCall="runCommandAction" Execute="deferred" Return="check" Impersonate="no" />
30 <CustomAction Id="InitializeDB_Prop" Property="InitializeDB"
31 Value='"[BINARIESDIR]ovs-vsctl.exe" --no-wait --db=unix:"[APPDATADIR]db.sock" init|0|ovs-vsctl failed to initialize the database'
32 Execute="immediate" />
33 <CustomAction Id="InitializeDB"
34 BinaryKey="OVSActions"
35 JScriptCall="runCommandAction" Execute="deferred" Return="check" Impersonate="no" />
37 <CustomAction Id="InstallOpenVSwitchDriver_Prop" Property="InstallOpenVSwitchDriver"
38 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'
39 Execute="immediate" />
40 <CustomAction Id="InstallOpenVSwitchDriver"
41 BinaryKey="OVSActions"
42 JScriptCall="runCommandAction" Execute="deferred" Return="check" Impersonate="no" />
44 <CustomAction Id="UninstallOpenVSwitchDriver_Prop" Property="UninstallOpenVSwitchDriver"
45 Value='"[WindowsFolder]Sysnative\netcfg.exe" -u ovsext|0|netcfg failed to uninstall the Open vSwitch Hyper-V switch extension'
46 Execute="immediate" />
47 <CustomAction Id="UninstallOpenVSwitchDriver"
48 BinaryKey="OVSActions"
49 JScriptCall="runCommandAction" Execute="deferred" Return="check" Impersonate="no" />
51 <CustomAction Id="RestartOvsdbServerService_Prop" Return="check" Property="ChangeOvsdbServerService"
52 Value="ovsdb-server||Restart" />
53 <CustomAction Id="StartOvsdbServerService_Prop" Return="check" Property="ChangeOvsdbServerService"
54 Value="ovsdb-server||Start" />
55 <CustomAction Id="ChangeOvsdbServerService"
56 BinaryKey="OVSActions"
57 JScriptCall="changeServiceAction" Execute="deferred" Return="check" Impersonate="no" />
59 <CustomAction Id="RestartOvsVSwitchdService_Prop" Return="check" Property="ChangeOvsVSwitchdService"
60 Value="ovs-vswitchd||Restart" />
61 <CustomAction Id="StartOvsVSwitchdService_Prop" Return="check" Property="ChangeOvsVSwitchdService"
62 Value="ovs-vswitchd||Start" />
63 <CustomAction Id="ChangeOvsVSwitchdService"
64 BinaryKey="OVSActions"
65 JScriptCall="changeServiceAction" Execute="deferred" Return="check" Impersonate="no" />