From 881792991ecbce5538939e2917cbf6582257ad43 Mon Sep 17 00:00:00 2001 From: Damodar Reddy Date: Fri, 18 Apr 2014 10:15:10 +0530 Subject: [PATCH] CLOUDSTACK-6271:[Windows] Integrating setup databases with msi installer for windows Signed-off-by: Abhinandan Prateek --- .../org/apache/cloudstack/wix/HeatMojo.java | 11 +- client/pom.xml | 127 +++++++++++++----- scripts/installer/windows/Setup_Databases.wxs | 37 +++++ .../installer/windows/WixInstallerDialog.wxs | 63 +++++++++ scripts/installer/windows/acs.wxs | 57 +++++--- 5 files changed, 243 insertions(+), 52 deletions(-) create mode 100644 scripts/installer/windows/Setup_Databases.wxs create mode 100644 scripts/installer/windows/WixInstallerDialog.wxs diff --git a/Wix-cloudstack-maven-plugin/src/org/apache/cloudstack/wix/HeatMojo.java b/Wix-cloudstack-maven-plugin/src/org/apache/cloudstack/wix/HeatMojo.java index 9bfe382e338..075908efb80 100644 --- a/Wix-cloudstack-maven-plugin/src/org/apache/cloudstack/wix/HeatMojo.java +++ b/Wix-cloudstack-maven-plugin/src/org/apache/cloudstack/wix/HeatMojo.java @@ -1,4 +1,3 @@ -// // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information @@ -15,7 +14,6 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. -// package org.apache.cloudstack.wix; import java.io.File; @@ -74,6 +72,13 @@ public class HeatMojo extends AbstractWixMojo { */ private File workingDirectory; + /** + * + * variable names to be passed to heat command + * @parameter expression="${componentGroup}" + */ + private String componentGroup; + /** * * directory reference to root directories @@ -93,7 +98,7 @@ public class HeatMojo extends AbstractWixMojo { commandLine.addArgument("-gg"); commandLine.addArgument("-cg"); - commandLine.addArgument("ClientPath"); + commandLine.addArgument(componentGroup); commandLine.addArgument("-ke"); commandLine.addArgument("-sfrag"); diff --git a/client/pom.xml b/client/pom.xml index aee2672bb19..5038e662db5 100644 --- a/client/pom.xml +++ b/client/pom.xml @@ -1,11 +1,11 @@ - org.apache.cloudstack cloud-mom-inmemory ${project.version} - + org.apache.cloudstack cloud-plugin-iam ${project.version} - + org.apache.cloudstack cloud-iam ${project.version} - + org.apache.cloudstack cloud-framework-ipc @@ -515,16 +515,6 @@ - - - - - - - - - - @@ -634,7 +624,7 @@ maven-antrun-plugin 1.7 - copy-systemvm @@ -667,6 +657,42 @@ + + maven-antrun-plugin + + + generate-resource-windows + generate-resources + + run + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.apache.maven.plugins maven-war-plugin @@ -690,21 +716,52 @@ org.apache.cloudstack Wix-cloudstack-maven-plugin 4.5.0-SNAPSHOT - - -var wix.SourceClient - ${basedir}/target - client - - WEBAPPS - target/client.wxs - wix-cs + + -var wix.SourceClient + ${basedir}/target + client + + WEBAPPS + target/client.wxs + ClientPath + heat + + wix-cs-setup-db + + -var wix.SetupPathDir + ${basedir}/target + setup + + CSMANAGEMENT + target/setupdb.wxs + SetupPath + + + heat + + + + wix-cs-utilities + + -var wix.UtilitiesPathDir + ${basedir}/target + scripts + + INSTALLDIR + target/utilities.wxs + UtilitiesPath + + + heat + + @@ -717,15 +774,23 @@ WixFirewallExtension WixUIExtension - -dSourceClient=SourceDir\client + -dSourceClient=SourceDir\client -dSetupPathDir=SourceDir\setup -dUtilitiesPathDir=SourceDir\scripts ../scripts/installer/windows/acs.wxs + ../scripts/installer/windows/WixInstallerDialog.wxs + ../scripts/installer/windows/Setup_Databases.wxs target/client.wxs + target/setupdb.wxs + target/utilities.wxs target target/acs.wixobj target/client.wixobj + target/setupdb.wixobj + target/utilities.wixobj + target/WixInstallerDialog.wixobj + target/Setup_Databases.wixobj target/acs.msi diff --git a/scripts/installer/windows/Setup_Databases.wxs b/scripts/installer/windows/Setup_Databases.wxs new file mode 100644 index 00000000000..f4e8fa1559d --- /dev/null +++ b/scripts/installer/windows/Setup_Databases.wxs @@ -0,0 +1,37 @@ + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/scripts/installer/windows/WixInstallerDialog.wxs b/scripts/installer/windows/WixInstallerDialog.wxs new file mode 100644 index 00000000000..b0f510bf29b --- /dev/null +++ b/scripts/installer/windows/WixInstallerDialog.wxs @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + 1 + + 1 + + 1 + LicenseAccepted = "1" + + 1 + 1 + 1 + 1 + + WixUI_InstallMode = "Change" + WixUI_InstallMode = "InstallCustom" + 1 + + WixUI_InstallMode = "InstallCustom" + WixUI_InstallMode = "InstallTypical" OR WixUI_InstallMode = "InstallComplete" + NOT Installed + WixUI_InstallMode = "Change" + WixUI_InstallMode = "Repair" OR WixUI_InstallMode = "Remove" + + + 1 + + 1 + 1 + 1 + 1 + + + + \ No newline at end of file diff --git a/scripts/installer/windows/acs.wxs b/scripts/installer/windows/acs.wxs index 0e7dea71fd1..f959f1c885e 100644 --- a/scripts/installer/windows/acs.wxs +++ b/scripts/installer/windows/acs.wxs @@ -55,6 +55,12 @@ + + +