Repository: cloudstack Updated Branches: refs/heads/master b2d613f53 -> ce5061e10
CLOUDSTACK-6834 : 3. Some description changes words like CloudStack etc 4. Change Default installation location if possible include version number 5. Mysql Connector Installer along with other dependecies 6. Add run Service Checkbox 7. Add ReadMe checkbox Signed-off-by: Koushik Das <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/ce5061e1 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ce5061e1 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ce5061e1 Branch: refs/heads/master Commit: ce5061e107f743e52b23445fd97fcf60d8160ec6 Parents: b2d613f Author: Damodar Reddy <[email protected]> Authored: Thu Jul 3 15:48:34 2014 +0530 Committer: Koushik Das <[email protected]> Committed: Thu Jul 3 17:43:00 2014 +0530 ---------------------------------------------------------------------- client/pom.xml | 26 ++++++++++- pom.xml | 1 + scripts/installer/windows/ExitDialog.wxs | 48 ++++++++++++++++++++ .../installer/windows/WixInstallerDialog.wxs | 2 +- scripts/installer/windows/acs.wxs | 39 ++++++++++++++-- scripts/installer/windows/dependencies.wxs | 1 + scripts/installer/windows/en-us.wxl | 10 ++-- .../installer/windows/optionstheme_en-us.wxl | 4 +- scripts/installer/windows/readme.txt | 1 + 9 files changed, 119 insertions(+), 13 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ce5061e1/client/pom.xml ---------------------------------------------------------------------- diff --git a/client/pom.xml b/client/pom.xml index 29fef4f..0af1e01 100644 --- a/client/pom.xml +++ b/client/pom.xml @@ -681,6 +681,7 @@ <include name="acs_license.rtf"/> <include name="optionstheme.xml"/> <include name="*.wxl"/> + <include name="*.txt"/> </fileset> </copy> <copy todir="./target/client"> @@ -719,6 +720,7 @@ <get src="http://downloads.sourceforge.net/sevenzip/7z920-x64.msi" dest="target" verbose="false" usetimestamp="true"/> <get src="https://www.python.org/ftp/python/2.7.6/python-2.7.6.amd64.msi" dest="target" verbose="false" usetimestamp="true"/> <get src="http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.73-winx64.msi" dest="target" verbose="false" usetimestamp="true"/> + <get src="http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-gpl-5.1.30.msi" dest="target" verbose="false" usetimestamp="true"/> <get src="http://mirror.sdunix.com/apache/tomcat/tomcat-6/v6.0.39/bin/apache-tomcat-6.0.39.exe" dest="target" verbose="false" usetimestamp="true"/> <get src="http://downloads.sourceforge.net/project/cdrtoolswin/1.0/Binaries/CDR-Tools.exe?r=&ts=1398764640&use_mirror=kaz" dest="target" verbose="false" usetimestamp="true"/> <get src="https://bootstrap.pypa.io/ez_setup.py" dest="target" verbose="false" usetimestamp="true"/> @@ -747,6 +749,26 @@ </configuration> </plugin> <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <version>1.9</version> + <executions> + <execution> + <id>regex-property</id> + <goals> + <goal>regex-property</goal> + </goals> + <configuration> + <name>final.version</name> + <value>${project.version}</value> + <regex>-SNAPSHOT</regex> + <replacement></replacement> + <failIfNoMatch>false</failIfNoMatch> + </configuration> + </execution> + </executions> + </plugin> + <plugin> <groupId>org.apache.cloudstack</groupId> <artifactId>Wix-cloudstack-maven-plugin</artifactId> <version>${project.version}</version> @@ -827,10 +849,11 @@ <extension>WixUIExtension</extension> <extension>WixUtilExtension</extension> </extensions> - <arguments>-dSourceClient=SourceDir\client -dSetupPathDir=SourceDir\setup -dUtilitiesPathDir=SourceDir\scripts -dPythonSitePackagesDir=SourceDir\python-site-packages</arguments> + <arguments>-dVersion=${final.version} -dSourceClient=SourceDir\client -dSetupPathDir=SourceDir\setup -dUtilitiesPathDir=SourceDir\scripts -dPythonSitePackagesDir=SourceDir\python-site-packages</arguments> <sourceFiles> <sourceFile>../scripts/installer/windows/acs.wxs</sourceFile> <sourceFile>../scripts/installer/windows/WixInstallerDialog.wxs</sourceFile> + <sourceFile>../scripts/installer/windows/ExitDialog.wxs</sourceFile> <sourceFile>../scripts/installer/windows/Setup_Databases.wxs</sourceFile> <sourceFile>target/client.wxs</sourceFile> <sourceFile>target/setupdb.wxs</sourceFile> @@ -844,6 +867,7 @@ <objectFile>target/setupdb.wixobj</objectFile> <objectFile>target/utilities.wixobj</objectFile> <objectFile>target/WixInstallerDialog.wixobj</objectFile> + <sourceFile>target/ExitDialog.wixobj</sourceFile> <objectFile>target/Setup_Databases.wixobj</objectFile> <objectFile>target/python-site-packages.wixobj</objectFile> </objectFiles> http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ce5061e1/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 0b3b56e..570d2bc 100644 --- a/pom.xml +++ b/pom.xml @@ -819,6 +819,7 @@ <exclude>tools/ngui/static/js/lib/*</exclude> <exclude>**/.checkstyle</exclude> <exclude>scripts/installer/windows/acs_license.rtf</exclude> + <exclude>scripts/installer/windows/readme.txt</exclude> </excludes> </configuration> </plugin> http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ce5061e1/scripts/installer/windows/ExitDialog.wxs ---------------------------------------------------------------------- diff --git a/scripts/installer/windows/ExitDialog.wxs b/scripts/installer/windows/ExitDialog.wxs new file mode 100644 index 0000000..53fa8c5 --- /dev/null +++ b/scripts/installer/windows/ExitDialog.wxs @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- 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 regarding copyright ownership. The ASF licenses this file to + you under the Apache License, Version 2.0 (the "License"); you may not use + this file except in compliance with the License. You may obtain a copy of + the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required + by applicable law or agreed to in writing, software distributed under the + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS + OF ANY KIND, either express or implied. See the License for the specific + language governing permissions and limitations under the License. --> +<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> + <Fragment> + <UI> + <Dialog Id="ExitDialog_custom" Width="370" Height="270" Title="!(loc.ExitDialog_Title)"> + <Control Id="Finish" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Cancel="yes" Text="!(loc.WixUIFinish)" /> + <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Disabled="yes" Text="!(loc.WixUICancel)" /> + <Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" TabSkip="no" Text="!(loc.ExitDialogBitmap)" /> + <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Disabled="yes" Text="!(loc.WixUIBack)" /> + <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" /> + <Control Id="Description" Type="Text" X="135" Y="70" Width="220" Height="40" Transparent="yes" NoPrefix="yes" Text="!(loc.ExitDialogDescription)" /> + <Control Id="Title" Type="Text" X="135" Y="20" Width="220" Height="60" Transparent="yes" NoPrefix="yes" Text="!(loc.ExitDialogTitle)" /> + + <Control Id="OptionalReadMeText" Type="Text" X="135" Y="160" Width="220" Height="80" Transparent="yes" NoPrefix="yes" Hidden="yes" Text="[WIXUI_EXITDIALOGOPTIONALREADMETEXT]"> + <Condition Action="show">WIXUI_EXITDIALOGOPTIONALREADMETEXT AND NOT Installed</Condition> + </Control> + <Control Id="OptionalReadMeCheckBox" Type="CheckBox" X="135" Y="170" Width="220" Height="10" Hidden="yes" Property="WIXUI_EXITDIALOGOPTIONALRAEDMECHECKBOX" CheckBoxValue="1" Text="[WIXUI_EXITDIALOGOPTIONALREADMECHECKBOXTEXT]"> + <Condition Action="show">WIXUI_EXITDIALOGOPTIONALREADMECHECKBOXTEXT AND NOT Installed</Condition> + </Control> + + <Control Id="OptionalText" Type="Text" X="135" Y="110" Width="220" Height="80" Transparent="yes" NoPrefix="yes" Hidden="yes" Text="[WIXUI_EXITDIALOGOPTIONALTEXT]"> + <Condition Action="show">WIXUI_EXITDIALOGOPTIONALTEXT AND NOT Installed</Condition> + </Control> + <Control Id="OptionalRunServiceCheckBox" Type="CheckBox" X="135" Y="190" Width="220" Height="10" Hidden="yes" Property="WIXUI_EXITDIALOGOPTIONALCHECKBOX" CheckBoxValue="1" Text="[WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT]"> + <Condition Action="show">WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT AND NOT Installed</Condition> + </Control> + </Dialog> + + <InstallUISequence> + <Show Dialog="ExitDialog_custom" OnExit="success" Overridable="yes" /> + </InstallUISequence> + + <AdminUISequence> + <Show Dialog="ExitDialog_custom" OnExit="success" Overridable="yes" /> + </AdminUISequence> + </UI> + </Fragment> +</Wix> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ce5061e1/scripts/installer/windows/WixInstallerDialog.wxs ---------------------------------------------------------------------- diff --git a/scripts/installer/windows/WixInstallerDialog.wxs b/scripts/installer/windows/WixInstallerDialog.wxs index 0282d8a..a2103a9 100644 --- a/scripts/installer/windows/WixInstallerDialog.wxs +++ b/scripts/installer/windows/WixInstallerDialog.wxs @@ -28,7 +28,7 @@ <DialogRef Id="UserExit" /> <DialogRef Id="DatabaseInformation" /> - <Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish> + <Publish Dialog="ExitDialog_custom" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish> <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="LicenseAgreementDlg">1</Publish> http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ce5061e1/scripts/installer/windows/acs.wxs ---------------------------------------------------------------------- diff --git a/scripts/installer/windows/acs.wxs b/scripts/installer/windows/acs.wxs index bf09afc..db2c8db 100644 --- a/scripts/installer/windows/acs.wxs +++ b/scripts/installer/windows/acs.wxs @@ -11,7 +11,7 @@ <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi' xmlns:fire='http://schemas.microsoft.com/wix/FirewallExtension' xmlns:util='http://schemas.microsoft.com/wix/UtilExtension'> <Product Name='!(loc.ProductName)' Id='eea70ed5-5950-4f01-b4aa-4a07636359bb' UpgradeCode='d6208c34-7b50-4512-b19e-b904dcc1373e' Language='1033' - Codepage='1252' Version='4.4.0' Manufacturer='!(loc.ProductManufacturer)'> + Codepage='1252' Version='!(wix.Version)' Manufacturer='!(loc.ProductManufacturer)'> <Package Id='*' Keywords='Installer' Description="!(loc.PackageDescription)" Comments='!(loc.PackageComments)' @@ -67,8 +67,8 @@ <Directory Id='TARGETDIR' Name='SourceDir'> <Directory Id='ProgramFilesFolder' Name='PFiles'> - <Directory Id='Acme' Name='Apache'> - <Directory Id='INSTALLDIR' Name='CS'> + <Directory Id='Acme' Name='Apache Software Foundation'> + <Directory Id='INSTALLDIR' Name='CloudStack!(wix.Version)'> <Component Id='MainExecutable' Guid='5980d204-a63a-45db-a7e8-cbd50b2d314b'> <CreateFolder /> @@ -139,6 +139,9 @@ </Component> </Directory> </Directory> + <Component Id="ReadmeFile" Guid="53c03092-438f-4da1-b15d-ceee90c79df0"> + <File Id="CopyReadmeFile" KeyPath="yes" Source="readme.txt" /> + </Component> </DirectoryRef> <DirectoryRef Id="WEBAPPS"> <Component Id="copyToConf" Guid="99da8926-1eec-4a7f-ac7f-1326d8e73ea0" @@ -246,6 +249,9 @@ <CustomAction Id="CopySitePackages" Directory='INSTALLDIR' ExeCommand='[SystemFolder]cmd.exe /c xcopy /S "[INSTALLDIR]\python-site-packages" [PYTHON_HOME]\Lib\site-packages' Execute="deferred" Return="check"/> + <CustomAction Id="CopyMysqlConnctorJar" Directory='INSTALLDIR' + ExeCommand='[SystemFolder]cmd.exe /c copy "[ProgramFilesFolder]\MySQL\MySQL Connector J\mysql-connector-java-5.1.30-bin.jar" "[CSMANAGEMENT]\lib\"' + Execute="deferred" Return="check"/> <CustomAction Id="DeleteDirectory" Directory='INSTALLDIR' ExeCommand='[SystemFolder]cmd.exe /c RD /S /Q "[INSTALLDIR]\python-site-packages"' Execute="deferred" Return="check" /> @@ -278,7 +284,8 @@ <Custom Action="GenerateSSLKey" After="PublishProduct">NOT Installed </Custom> <Custom Action="CopySitePackages" After="GenerateSSLKey">NOT Installed</Custom> - <Custom Action="DeleteDirectory" After="CopySitePackages">NOT Installed</Custom> + <Custom Action="CopyMysqlConnctorJar" After="CopySitePackages">NOT Installed</Custom> + <Custom Action="DeleteDirectory" After="CopyMysqlConnctorJar">NOT Installed</Custom> <Custom Action="DbHostWithPort" After="InstallFiles"><![CDATA[DB_PORT]]></Custom> <Custom Action="DeployDB" After="DeleteDirectory">(NOT Installed) AND (CREATE_DATABASE = "1") </Custom> @@ -302,9 +309,31 @@ <ComponentRef Id='MainExecutable' /> <ComponentRef Id='setuptools' /> <ComponentRef Id='ServiceInstaller' /> + <ComponentRef Id='ReadmeFile' /> </Feature> </Feature> - <UIRef Id="WixUI_Mondo_Custom" /> + <!-- This is to enable check box to start the service --> + <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="!(loc.LaunchService)" /> + <!-- This is to start the service --> + <CustomAction Id="LaunchApplication" Directory='INSTALLDIR' ExeCommand="[SystemFolder]cmd.exe /c sc start ACSService" Impersonate="yes" Execute="immediate" Return="asyncNoWait"/> + + <!-- This is to enable check box to view read me file --> + <Property Id="WIXUI_EXITDIALOGOPTIONALREADMECHECKBOXTEXT" Value="!(loc.ReadMe)" /> + <Property Id="WixShellExecTarget" Value="[#CopyReadmeFile]" /> + <!-- This is to open readme.txt file --> + <CustomAction Id="LaunchFile" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" /> + + <UI> + <UIRef Id="WixUI_Mondo_Custom" /> + <Publish Dialog="ExitDialog_custom" + Control="Finish" + Event="DoAction" + Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish> + <Publish Dialog="ExitDialog_custom" + Control="Finish" + Event="DoAction" + Value="LaunchFile">WIXUI_EXITDIALOGOPTIONALRAEDMECHECKBOX = 1 and NOT Installed</Publish> + </UI> <UIRef Id="WixUI_ErrorProgressText" /> </Product> </Wix> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ce5061e1/scripts/installer/windows/dependencies.wxs ---------------------------------------------------------------------- diff --git a/scripts/installer/windows/dependencies.wxs b/scripts/installer/windows/dependencies.wxs index 987c561..96562db 100644 --- a/scripts/installer/windows/dependencies.wxs +++ b/scripts/installer/windows/dependencies.wxs @@ -17,6 +17,7 @@ </BootstrapperApplicationRef> <Chain> <MsiPackage Id="MySql" Name="mysql-5.1.73-winx64.msi" DownloadUrl="http://cdn.mysql.com/Downloads/MySQL-5.1/mysql-5.1.73-winx64.msi" Compressed="no" Visible="yes" ForcePerMachine="yes" DisplayInternalUI="yes" EnableFeatureSelection="yes" InstallCondition="ACSCheckbox"/> + <MsiPackage Id="MySqlConnector" Name="mysql-connector-java-gpl-5.1.30.msi" DownloadUrl="http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-gpl-5.1.30.msi" Compressed="no" Visible="yes" ForcePerMachine="yes" EnableFeatureSelection="no" DisplayInternalUI="no"/> <MsiPackage Id="MySqlClient" Name="mysql-5.1.73-winx64.msi" DownloadUrl="http://cdn.mysql.com/Downloads/MySQL-5.1/mysql-5.1.73-winx64.msi" Compressed="no" Visible="yes" ForcePerMachine="yes" EnableFeatureSelection="no" DisplayInternalUI="no" InstallCondition="Not ACSCheckbox"/> <MsiPackage Id="SevenZip" Name="7z920-x64.msi" DownloadUrl="http://downloads.sourceforge.net/sevenzip/7z920-x64.msi" Compressed="no" Visible="yes" ForcePerMachine="yes" After="MySql"/> <MsiPackage Id="Python" Name="python-2.7.6.amd64.msi" DownloadUrl="https://www.python.org/ftp/python/2.7.6/python-2.7.6.amd64.msi" Compressed="no" Visible="yes" ForcePerMachine="yes" After="SevenZip"/> http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ce5061e1/scripts/installer/windows/en-us.wxl ---------------------------------------------------------------------- diff --git a/scripts/installer/windows/en-us.wxl b/scripts/installer/windows/en-us.wxl index 2f34575..8b3999c 100644 --- a/scripts/installer/windows/en-us.wxl +++ b/scripts/installer/windows/en-us.wxl @@ -9,9 +9,9 @@ OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <WixLocalization Culture="en-us" xmlns="http://schemas.microsoft.com/wix/2006/localization"> - <String Id="ProductName">Apache Cloud Stack</String> + <String Id="ProductName">Apache CloudStack</String> <String Id="ProductManufacturer">Apache</String> - <String Id="PackageDescription">Apache Cloud Stack Installer</String> + <String Id="PackageDescription">Apache CloudStack Installer</String> <String Id="PackageComments">ACS is a registered trademark</String> <String Id="PackageManufacturer">Apache</String> <String Id="Tomcat6ConditionMessage">Apache tomcat6 is not installed please do install tomcat6 and then try</String> @@ -19,7 +19,7 @@ <String Id="Python2ConditionMessage">Python 2.7 is not installed Please do install python and then try</String> <String Id="SevenZConditionMessage">7Z is not installed please do install 7z and then try</String> <String Id="FeatureTitle1">Management Server</String> - <String Id="FeatureDescription1">The Main Executable of Cloud Stack.</String> + <String Id="FeatureDescription1">The Main Executable of CloudStack.</String> <String Id="FeatureDescription2">The complete package.</String> <String Id="DatabaseInformationTitle">Provide Database Information</String> <String Id="DatabaseInformationDescription">Please provide the database information that host the cloud schemas</String> @@ -28,7 +28,7 @@ <String Id="DbPasswordLabel">Password</String> <String Id="DbRootPasswordLabel">Root Password</String> <String Id="DbServerPortLabel">Port</String> - <String Id="CreateDBCheckBoxLabel">Create Cloud Stack Database</String> + <String Id="CreateDBCheckBoxLabel">Create CloudStack Database</String> <String Id="GenerateSSLKey">Generating SSL Keys which is needed to talk to Management Server.</String> <String Id="DeployDB">Creating Database and needed Schemas for management server.</String> <String Id="SetupDatabases">Updating db.properties with the given database configuration.</String> @@ -38,6 +38,8 @@ <String Id="DeleteFiles">Deleting un-necessary files from installation directory.</String> <String Id="UpdateTomcatCatalinaBase">Updating Tomcat Catalina Base with Management Server Home.</String> <String Id="UpdateTomcatClassPath">Updating Tomcat Classpath with necessary paths.</String> + <String Id="LaunchService">Launch CloudStack Server</String> + <String Id="ReadMe">Open Readme</String> <String Id="InstallVersion">Version 4.0.0.0</String> </WixLocalization> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ce5061e1/scripts/installer/windows/optionstheme_en-us.wxl ---------------------------------------------------------------------- diff --git a/scripts/installer/windows/optionstheme_en-us.wxl b/scripts/installer/windows/optionstheme_en-us.wxl index c822929..876372f 100644 --- a/scripts/installer/windows/optionstheme_en-us.wxl +++ b/scripts/installer/windows/optionstheme_en-us.wxl @@ -10,8 +10,8 @@ governing permissions and limitations under the License. --> <WixLocalization Culture="en-us" xmlns="http://schemas.microsoft.com/wix/2006/localization"> - <String Id="Caption">Apache Cloud Stack Setup</String> - <String Id="Title">Apache Cloud Stack</String> + <String Id="Caption">Apache CloudStack Setup</String> + <String Id="Title">Apache CloudStack</String> <String Id="MysqlInstaller">Install MySql Database Server</String> <String Id="InstallVersion">Version 4.0.0.0</String> http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ce5061e1/scripts/installer/windows/readme.txt ---------------------------------------------------------------------- diff --git a/scripts/installer/windows/readme.txt b/scripts/installer/windows/readme.txt new file mode 100644 index 0000000..86fb3e6 --- /dev/null +++ b/scripts/installer/windows/readme.txt @@ -0,0 +1 @@ +Need to Add the Readme Content in this file.... \ No newline at end of file
