|
8 | 8 | License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS |
9 | 9 | OF ANY KIND, either express or implied. See the License for the specific |
10 | 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'> |
| 11 | +<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'> |
12 | 12 | <Product Name='ACS' Id='eea70ed5-5950-4f01-b4aa-4a07636359bb' |
13 | 13 | UpgradeCode='d6208c34-7b50-4512-b19e-b904dcc1373e' Language='1033' |
14 | 14 | Codepage='1252' Version='4.4.0' Manufacturer='Apache Cloud Stack'> |
|
79 | 79 | Value="-XX:MaxPermSize=512m -Xmx1024m -Xms256m" /> |
80 | 80 | <Environment Id="Path" Action="set" Name="Path" |
81 | 81 | Permanent="yes" System="yes" Part="last" |
82 | | - Value="[JAVA_HOME]\bin;[PYTHON_HOME];[SEVENZ_HOME]" /> |
| 82 | + Value="[JAVA_HOME]\bin;[PYTHON_HOME];[SEVENZ_HOME];[ProgramFilesFolder]\cdrtools" /> |
83 | 83 | </Component> |
84 | 84 | </Directory> |
85 | 85 | </Directory> |
|
101 | 101 | Root="HKLM" Key="SYSTEM\CurrentControlSet\Services\Tomcat6" |
102 | 102 | Type="raw" Win64="yes" /> |
103 | 103 | </Property> |
| 104 | + <util:Group Id="Administrators" Name="Administrators"/> |
104 | 105 | <Component Id="ServiceInstaller" Directory="INSTALLDIR" |
105 | 106 | Guid="dfebb4bb-cac0-4cef-aa91-342bafa18349"> |
| 107 | + <util:User Id="AccountCreation" CreateUser="yes" FailIfExists="no" Name="cloud" Password="C!0ud" RemoveOnUninstall="yes" UpdateIfExists="yes" LogonAsService="yes"> |
| 108 | + <util:GroupRef Id="Administrators" /> |
| 109 | + </util:User> |
106 | 110 | <File Id='ACSServiceEXEFile' Name='start.exe' Source='start.bat' |
107 | 111 | KeyPath='yes' /> |
108 | 112 | <ServiceInstall Id='InstallACSService' Name='ACSService' |
109 | 113 | Description='ACS Service' ErrorControl='normal' Start='auto' |
110 | | - Type='ownProcess' Vital='yes' /> |
| 114 | + Type='ownProcess' Vital='yes'> |
| 115 | + <util:PermissionEx User="cloud" GenericAll="yes" ServiceStart="yes" ServiceStop="yes" ServicePauseContinue="yes" ServiceInterrogate="yes" ServiceChangeConfig="yes" ServiceEnumerateDependents="yes" |
| 116 | + ServiceQueryConfig="yes" ServiceQueryStatus="yes" ServiceUserDefinedControl="yes" /> |
| 117 | + </ServiceInstall> |
111 | 118 | <ServiceControl Id='UninstallACSService' Name='ACSService' |
112 | 119 | Remove='uninstall' Wait='yes' /> |
113 | 120 | <RegistryValue Root='HKLM' |
|
221 | 228 | Value="[TOMCATDIRECTORY]\bin\Tomcat6.exe"> |
222 | 229 | </CustomAction> |
223 | 230 | <CustomAction Id="UpdateTomcatCatalinaBase" |
224 | | - ExeCommand='//US//Tomcat6 --JvmOptions=-Dcatalina.base=[CSMANAGEMENT];-Djava.io.tmpdir=[CSMANAGEMENT]\temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager;-Dcatalina.home="[TOMCATDIRECTORY]";-Xms512m;-Xmx1024m;-XX:MaxPermSize=512m' |
| 231 | + ExeCommand='//US//Tomcat6 --JvmOptions=-Dcatalina.base=[CSMANAGEMENT];-Djava.io.tmpdir=[CSMANAGEMENT]\temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager;-Dcatalina.home="[TOMCATDIRECTORY]";-Xms512m;-Xmx1024m;-XX:MaxPermSize=512m;-Duser.name=cloud' |
225 | 232 | Property="TOMCATDIRECTORY1" Execute="commit" Return="check" /> |
226 | 233 | <CustomAction Id="UpdateTomcatClassPath" |
227 | 234 | ExeCommand='//US//Tomcat6 --Classpath="[TOMCATDIRECTORY]\bin\bootstrap.jar";"[TOMCATDIRECTORY]\bin\tomcat-juli.jar";[CSMANAGEMENT]\conf;[CSMANAGEMENT]\lib;[CSMANAGEMENT]\setup' |
228 | 235 | Property="TOMCATDIRECTORY1" Execute="commit" Return="check" /> |
229 | 236 | <CustomAction Id="CopySitePackages" Directory='INSTALLDIR' |
230 | 237 | ExeCommand='[SystemFolder]cmd.exe /c xcopy /S "[INSTALLDIR]\python-site-packages" [PYTHON_HOME]\Lib\site-packages' |
231 | | - Execute="commit" Return="check" /> |
| 238 | + Execute="commit" Return="check"/> |
232 | 239 | <CustomAction Id="DeleteDirectory" Directory='INSTALLDIR' |
233 | 240 | ExeCommand='[SystemFolder]cmd.exe /c RD /S /Q "[INSTALLDIR]\python-site-packages"' |
234 | 241 | Execute="commit" Return="check" /> |
|
246 | 253 | Execute="commit" Return="check" /> |
247 | 254 |
|
248 | 255 | <InstallExecuteSequence> |
249 | | - <InstallServices Sequence="4999"></InstallServices> |
| 256 | + <InstallServices Sequence="4990"></InstallServices> |
250 | 257 | <Custom Action="TomcatPath" Before="UpdateTomcatClassPath">NOT Installed</Custom> |
251 | 258 | <Custom Action="UpdateTomcatClassPath" Before="UpdateTomcatCatalinaBase">NOT Installed |
252 | 259 | </Custom> |
253 | | - <Custom Action="UpdateTomcatCatalinaBase" Before="CopySitePackages">NOT |
| 260 | + <Custom Action="UpdateTomcatCatalinaBase" Before="DeleteFiles">NOT |
254 | 261 | Installed</Custom> |
255 | | - <Custom Action="CopySitePackages" Before="DeleteFiles">NOT Installed</Custom> |
256 | | - <Custom Action="DeleteFiles" Before="DeleteDirectory">NOT Installed</Custom> |
257 | | - <Custom Action="DeleteDirectory" Before="GenerateSSLKey">NOT Installed</Custom> |
| 262 | + <Custom Action="DeleteFiles" Before="GenerateSSLKey">NOT Installed</Custom> |
258 | 263 | <Custom Action="GenerateSSLKey" Before="InstallFinalize">NOT Installed |
259 | 264 | </Custom> |
260 | | - <Custom Action="DeployDB" Before="InstallFinalize">(NOT Installed) AND (CREATE_DATABASE = "1") |
| 265 | + <Custom Action="CopySitePackages" Before="InstallFinalize">NOT Installed</Custom> |
| 266 | + <Custom Action="DeleteDirectory" After="CopySitePackages">NOT Installed</Custom> |
| 267 | + <Custom Action="DeployDB" After="DeleteDirectory">(NOT Installed) AND (CREATE_DATABASE = "1") |
261 | 268 | </Custom> |
262 | | - <Custom Action="SetupDatabases" Before="InstallFinalize">(NOT Installed) AND (<![CDATA[CREATE_DATABASE <> "1"]]>) |
| 269 | + <Custom Action="SetupDatabases" After="DeleteDirectory">(NOT Installed) AND (<![CDATA[CREATE_DATABASE <> "1"]]>) |
263 | 270 | </Custom> |
264 | 271 | </InstallExecuteSequence> |
265 | 272 | <Feature Id='Complete' Title='ACS' Description='The complete package.' |
|
0 commit comments