|
| 1 | +<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor |
| 2 | + license agreements. See the NOTICE file distributed with this work for additional |
| 3 | + information regarding copyright ownership. The ASF licenses this file to |
| 4 | + you under the Apache License, Version 2.0 (the "License"); you may not use |
| 5 | + this file except in compliance with the License. You may obtain a copy of |
| 6 | + the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required |
| 7 | + by applicable law or agreed to in writing, software distributed under the |
| 8 | + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS |
| 9 | + OF ANY KIND, either express or implied. See the License for the specific |
| 10 | + language governing permissions and limitations under the License. --> |
| 11 | +<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi' xmlns:fire='http://schemas.microsoft.com/wix/FirewallExtension'> |
| 12 | + <Product Name='ACS' Id='eea70ed5-5950-4f01-b4aa-4a07636359bb' |
| 13 | + UpgradeCode='d6208c34-7b50-4512-b19e-b904dcc1373e' Language='1033' |
| 14 | + Codepage='1252' Version='4.4.0' Manufacturer='Apache Cloud Stack'> |
| 15 | + |
| 16 | + <Package Id='*' Keywords='Installer' Description="Apache Cloud Stack Installer" |
| 17 | + Comments='Foobar is a registered trademark of Acme Ltd.' |
| 18 | + Manufacturer='Apache' InstallerVersion='100' Languages='1033' |
| 19 | + Compressed='yes' SummaryCodepage='1252' /> |
| 20 | + |
| 21 | + <Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt="CD-ROM #1" /> |
| 22 | + <Property Id='DiskPrompt' Value="Apache Cloud Stack Installation program" /> |
| 23 | + <Condition Message="Java Is not Installed. Please set the JAVA_HOME"><![CDATA[%JAVA_HOME]]></Condition> |
| 24 | + |
| 25 | + <Directory Id='TARGETDIR' Name='SourceDir'> |
| 26 | + <Directory Id='ProgramFilesFolder' Name='PFiles'> |
| 27 | + <Directory Id='Acme' Name='Apache'> |
| 28 | + <Directory Id='INSTALLDIR' Name='CS'> |
| 29 | + <Component Id='MainExecutable' |
| 30 | + Guid='5980d204-a63a-45db-a7e8-cbd50b2d314b'> |
| 31 | + <CreateFolder /> |
| 32 | + <Environment Id="CLOUDSTACK_HOME" Action="set" |
| 33 | + Name="CLOUDSTACK_HOME" Permanent="no" System="yes" |
| 34 | + Value="[INSTALLDIR]." /> |
| 35 | + <Environment Id="CATALINA_BASE" Action="set" |
| 36 | + Name="CATALINA_BASE" Permanent="no" System="yes" |
| 37 | + Value="[INSTALLDIR]." /> |
| 38 | + <Environment Id="CATALINA_OPTS" Action="set" |
| 39 | + Name="CATALINA_OPTS" Permanent="no" System="yes" |
| 40 | + Value="-XX:MaxPermSize=512m -Xmx1024m -Xms256m" /> |
| 41 | + |
| 42 | + </Component> |
| 43 | + </Directory> |
| 44 | + </Directory> |
| 45 | + </Directory> |
| 46 | + |
| 47 | + <Directory Id="ProgramMenuFolder" Name="Programs"> |
| 48 | + <Directory Id="ProgramMenuDir" Name="ACS"> |
| 49 | + <Component Id="ProgramMenuDir" Guid="69932d81-ea9c-4a74-9013-7da61f291090"> |
| 50 | + <RemoveFolder Id='ProgramMenuDir' On='uninstall' /> |
| 51 | + <RegistryValue Root='HKCU' |
| 52 | + Key='Software\[Manufacturer]\[ProductName]' Type='string' |
| 53 | + Value='' KeyPath='yes' /> |
| 54 | + </Component> |
| 55 | + </Directory> |
| 56 | + </Directory> |
| 57 | + </Directory> |
| 58 | + <Property Id='TOMCATIMAGEPATH'> |
| 59 | + <RegistrySearch Id="TomcatImagePath" Name="ImagePath" |
| 60 | + Root="HKLM" Key="SYSTEM\CurrentControlSet\Services\Tomcat6" |
| 61 | + Type="raw" Win64="yes" /> |
| 62 | + </Property> |
| 63 | + <Component Id="ServiceInstaller" Directory="INSTALLDIR" |
| 64 | + Guid="dfebb4bb-cac0-4cef-aa91-342bafa18349"> |
| 65 | + <File Id='ACSServiceEXEFile' Name='start.exe' Source='start.bat' |
| 66 | + KeyPath='yes' /> |
| 67 | + <ServiceInstall Id='InstallACSService' Name='ACSService' |
| 68 | + Description='ACS Service' ErrorControl='normal' Start='auto' |
| 69 | + Type='ownProcess' Vital='yes' /> |
| 70 | + <ServiceControl Id='UninstallACSService' Name='ACSService' |
| 71 | + Remove='uninstall' Wait='yes' /> |
| 72 | + <RegistryValue Root='HKLM' |
| 73 | + Key='SYSTEM\CurrentControlSet\Services\ACSService' Name="ImagePath" |
| 74 | + Type='expandable' Value='[TOMCATIMAGEPATH]' /> |
| 75 | + </Component> |
| 76 | + <DirectoryRef Id="INSTALLDIR"> |
| 77 | + <Directory Id="WEBAPPS" Name="webapps"> |
| 78 | + <Component Id="webappsFolder" Guid="53c03092-438f-4da1-b14d-ceee90c79de0"> |
| 79 | + <CreateFolder /> |
| 80 | + </Component> |
| 81 | + </Directory> |
| 82 | + </DirectoryRef> |
| 83 | + <!-- DirectoryRef Id="WEBAPPS"> <Directory Id="clientId" FileSource="client\WEB-INF\classes"> |
| 84 | + <Component Id="copyAllToConf" Guid="0e081e69-5c30-426e-b711-b7750115f62b" |
| 85 | + KeyPath="yes"> <CopyFile Id="AllFiles" DestinationDirectory="CONF" SourceName="*" |
| 86 | + /> </Component> </Directory> </DirectoryRef --> |
| 87 | + <DirectoryRef Id="WEBAPPS"> |
| 88 | + <Component Id="copyToConf" Guid="99da8926-1eec-4a7f-ac7f-1326d8e73ea0" |
| 89 | + KeyPath="yes"> |
| 90 | + <File Id="server.xml" Source="client\WEB-INF\classes\server-nonssl.xml" |
| 91 | + Checksum="no"> |
| 92 | + <CopyFile Id="copyServerXML" DestinationName="server.xml" |
| 93 | + DestinationDirectory="CONF" /> |
| 94 | + </File> |
| 95 | + <File Id="tomcat6.conf" Source="client\WEB-INF\classes\tomcat6-nonssl.conf" |
| 96 | + Checksum="no"> |
| 97 | + <CopyFile Id="copyTomcat6ConfXML" DestinationName="tomcat6.conf" |
| 98 | + DestinationDirectory="CONF" /> |
| 99 | + </File> |
| 100 | + <File Id="web.xml" Source="client\WEB-INF\classes\web.xml" |
| 101 | + Checksum="no"> |
| 102 | + <CopyFile Id="copyWebXML" DestinationName="web.xml" |
| 103 | + DestinationDirectory="CONF" /> |
| 104 | + </File> |
| 105 | + <File Id="log4j_cloud.xml" Source="client\WEB-INF\classes\log4j-cloud.xml" |
| 106 | + Checksum="no"> |
| 107 | + <CopyFile Id="log4j_cloudxml" DestinationName="log4j-cloud.xml" |
| 108 | + DestinationDirectory="CONF" /> |
| 109 | + </File> |
| 110 | + <File Id="environment.properties" Source="client\WEB-INF\classes\environment.properties" |
| 111 | + Checksum="no"> |
| 112 | + <CopyFile Id="environmentproperties" DestinationName="environment.properties" |
| 113 | + DestinationDirectory="CONF" /> |
| 114 | + </File> |
| 115 | + <File Id="classpath.conf" Source="client\WEB-INF\classes\classpath.conf" |
| 116 | + Checksum="no"> |
| 117 | + <CopyFile Id="classpathconf" DestinationName="classpath.conf" |
| 118 | + DestinationDirectory="CONF" /> |
| 119 | + </File> |
| 120 | + <File Id="catalina.properties" Source="client\WEB-INF\classes\catalina.properties" |
| 121 | + Checksum="no"> |
| 122 | + <CopyFile Id="catalinaproperties" DestinationName="catalina.properties" |
| 123 | + DestinationDirectory="CONF" /> |
| 124 | + </File> |
| 125 | + <File Id="tomcat_users.xml" Source="client\WEB-INF\classes\tomcat-users.xml" |
| 126 | + Checksum="no"> |
| 127 | + <CopyFile Id="tomcat_usersxml" DestinationName="tomcat-users.xml" |
| 128 | + DestinationDirectory="CONF" /> |
| 129 | + </File> |
| 130 | + <File Id="catalina.policy" Source="client\WEB-INF\classes\catalina.policy" |
| 131 | + Checksum="no"> |
| 132 | + <CopyFile Id="catalinapolicy" DestinationName="catalina.policy" |
| 133 | + DestinationDirectory="CONF" /> |
| 134 | + </File> |
| 135 | + <File Id="db.properties" Source="client\WEB-INF\classes\db.properties" |
| 136 | + Checksum="no"> |
| 137 | + <CopyFile Id="dbproperties" DestinationName="db.properties" |
| 138 | + DestinationDirectory="LIB"/> |
| 139 | + </File> |
| 140 | + <File Id="cloudmanagementserver.keystore" |
| 141 | + Source="client\WEB-INF\classes\cloudmanagementserver.keystore" |
| 142 | + Checksum="no"> |
| 143 | + <CopyFile Id="cloudmanagementserverkeystore" |
| 144 | + DestinationName="cloud.keystore" |
| 145 | + DestinationDirectory="LIB" /> |
| 146 | + </File> |
| 147 | + </Component> |
| 148 | + </DirectoryRef> |
| 149 | + <DirectoryRef Id="INSTALLDIR"> |
| 150 | + <Directory Id="CONF" Name="conf"> |
| 151 | + <Component Id="confFolder" Guid="ad227f7d-6808-4bdf-8ac6-3b2954d51b96"> |
| 152 | + <CreateFolder /> |
| 153 | + </Component> |
| 154 | + </Directory> |
| 155 | + </DirectoryRef> |
| 156 | + <DirectoryRef Id="INSTALLDIR"> |
| 157 | + <Directory Id="LIB" Name="lib"> |
| 158 | + <Component Id="libFolder" Guid="d338841e-2ea4-48b3-ab48-9c42e2961600"> |
| 159 | + <CreateFolder /> |
| 160 | + </Component> |
| 161 | + </Directory> |
| 162 | + </DirectoryRef> |
| 163 | + <Component Id="firewallRules" Guid="2d056999-8191-41a0-94e0-e6dfcc188417" |
| 164 | + Directory="INSTALLDIR"> |
| 165 | + <CreateFolder /> |
| 166 | + <fire:FirewallException Id="p_8080" Name="port_8080" |
| 167 | + Description="for cloudstack management server" Port="8080" |
| 168 | + Profile="all" Protocol="tcp" Scope="any" /> |
| 169 | + <fire:FirewallException Id="p_8096" Name="port_8096" |
| 170 | + Description="for cloudstack management server admin" Port="8096" |
| 171 | + Profile="all" Protocol="tcp" Scope="any" /> |
| 172 | + <fire:FirewallException Id="p_8787" Name="port_8787" |
| 173 | + Description="for cloudstack management server" Port="8787" |
| 174 | + Profile="all" Protocol="tcp" Scope="any" /> |
| 175 | + <fire:FirewallException Id="p_9090" Name="port_9090" |
| 176 | + Description="for cloudstack management server" Port="9090" |
| 177 | + Profile="all" Protocol="tcp" Scope="any" /> |
| 178 | + |
| 179 | + <fire:FirewallException Id="p_3922" Name="port_3922" |
| 180 | + Description="for cloudstack management server" Port="3922" |
| 181 | + Profile="all" Protocol="tcp" Scope="any" /> |
| 182 | + <fire:FirewallException Id="p_8250" Name="port_8250" |
| 183 | + Description="for cloudstack management server" Port="8250" |
| 184 | + Profile="all" Protocol="tcp" Scope="any" /> |
| 185 | + </Component> |
| 186 | + |
| 187 | + <!-- Updating Tomcat's catalina base --> |
| 188 | + <!-- Property Id='TomcatDirectory' Value="$(env.CATALINA_HOME)\bin\Tomcat6.exe" |
| 189 | + / --> |
| 190 | + <Property Id='TOMCATDIRECTORY'> |
| 191 | + <RegistrySearch Id="TomcatSearch" Name="InstallPath" |
| 192 | + Root="HKLM" Key="SOFTWARE\Apache Software Foundation\Tomcat\6.0\Tomcat6" |
| 193 | + Type="raw" Win64="yes" /> |
| 194 | + </Property> |
| 195 | + <CustomAction Id="TomcatPath" Property="TOMCATDIRECTORY1" |
| 196 | + Value="[TOMCATDIRECTORY]\bin\Tomcat6.exe"> |
| 197 | + </CustomAction> |
| 198 | + |
| 199 | + <Condition |
| 200 | + Message="Apache tomcat6 is not installed please do install tomcat6 first"><![CDATA[(Installed OR TOMCATDIRECTORY)]]></Condition> |
| 201 | + <CustomAction Id="UpdateTomcatCatalinaBase" |
| 202 | + ExeCommand="//US//Tomcat6 --JvmOptions=-Dcatalina.base=[INSTALLDIR];-Xms512m;-Xmx1024m;-XX:MaxPermSize=512m" |
| 203 | + Property="TOMCATDIRECTORY1" Execute="commit" Return="check" /> |
| 204 | + <InstallExecuteSequence> |
| 205 | + <InstallServices Sequence="4999"></InstallServices> |
| 206 | + <Custom Action="TomcatPath" Before="UpdateTomcatCatalinaBase">NOT Installed</Custom> |
| 207 | + <Custom Action="UpdateTomcatCatalinaBase" Before="InstallFinalize">NOT Installed</Custom> |
| 208 | + </InstallExecuteSequence> |
| 209 | + <UIRef Id="WixUI_Mondo" /> |
| 210 | + <Feature Id='Complete' Title='ACS' Description='The complete package.' |
| 211 | + Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR'> |
| 212 | + <Feature Id='MainProgram' Title='Program' Description='The main executable.' |
| 213 | + Level='1'> |
| 214 | + <ComponentRef Id='webappsFolder' /> |
| 215 | + <ComponentGroupRef Id='ClientPath' /> |
| 216 | + <ComponentRef Id='ProgramMenuDir' /> |
| 217 | + <ComponentRef Id='confFolder' /> |
| 218 | + <ComponentRef Id='libFolder' /> |
| 219 | + <!-- ComponentRef Id='copyAllToConf' / --> |
| 220 | + <ComponentRef Id='copyToConf' /> |
| 221 | + <ComponentRef Id='firewallRules' /> |
| 222 | + <ComponentRef Id='MainExecutable' /> |
| 223 | + <ComponentRef Id='ServiceInstaller' /> |
| 224 | + <!-- ComponentRef Id='TomcatInstalled' / --> |
| 225 | + </Feature> |
| 226 | + </Feature> |
| 227 | + <UIRef Id="WixUI_ErrorProgressText" /> |
| 228 | + </Product> |
| 229 | +</Wix> |
0 commit comments