Author: mladen.turk(a)jboss.com
Date: 2008-04-08 06:49:32 -0400 (Tue, 08 Apr 2008)
New Revision: 1533
Added:
trunk/build/install/installer/installers/
trunk/build/install/installer/installers/jbossas/
trunk/build/install/installer/installers/jbossas/README
trunk/build/install/installer/installers/jbossas/_install/
trunk/build/install/installer/installers/jbossas/_install/README
trunk/build/install/installer/installers/jbossas/_install/eula.htm
trunk/build/install/installer/installers/jbossas/_install/eulamain.htm
trunk/build/install/installer/installers/jbossas/_install/install.bat
trunk/build/install/installer/installers/jbossas/_install/jbosstop.png
trunk/build/install/installer/installers/jbossas/_install/redhat16.png
Log:
Add JBoss AS installer example
Added: trunk/build/install/installer/installers/jbossas/README
===================================================================
--- trunk/build/install/installer/installers/jbossas/README (rev
0)
+++ trunk/build/install/installer/installers/jbossas/README 2008-04-08 10:49:32 UTC (rev
1533)
@@ -0,0 +1,14 @@
+Making installation
+
+1. Unzip JBoss AS .zip distribution in this directory
+ > unzip jboss-5.0.0.Beta4
+2. Modify the _install\install bat so that PACKAGE_NAME
+ is the same as unizpped directory
+3. Create new zip file
+ > zip -qr -9 jboss-5.0.0.Beta4.install.zip _install jboss-5.0.0.Beta4
+4. Merge the sinstall stub
+ > copy /Y /b sinstall.exe + /b jboss-5.0.0.Beta4.install.zip jboss-5.0.0.Beta4.exe
+5. Embedd parameters to the installer
+ > sinstall -qxu -S 2 -e jboss-5.0.0.Beta4.exe
+
+That's it
Property changes on: trunk/build/install/installer/installers/jbossas/README
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/build/install/installer/installers/jbossas/_install/README
===================================================================
--- trunk/build/install/installer/installers/jbossas/_install/README
(rev 0)
+++ trunk/build/install/installer/installers/jbossas/_install/README 2008-04-08 10:49:32
UTC (rev 1533)
@@ -0,0 +1 @@
+Installer private directory
Property changes on: trunk/build/install/installer/installers/jbossas/_install/README
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/build/install/installer/installers/jbossas/_install/eula.htm
===================================================================
--- trunk/build/install/installer/installers/jbossas/_install/eula.htm
(rev 0)
+++ trunk/build/install/installer/installers/jbossas/_install/eula.htm 2008-04-08 10:49:32
UTC (rev 1533)
@@ -0,0 +1,225 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<HEAD lang="en">
+ <META http-equiv="Content-Type" content="text/html;
charset=windows-1252">
+ <META http-equiv="MSThemeCompatible" content="Yes">
+ <TITLE>License Agreement</TITLE>
+ <STYLE type="text/css">
+ BODY, TABLE, TR, TD, UL, OL, LI, P {
+ font-family: Serife, Verdana, Helvetica, Tahoma;
+ font-size: 11px;
+ font-style: normal;
+ text-decoration: none;
+ background-color: Window;
+ color: WindowText;
+ }
+ PRE {
+ font-size: 10px;
+ font-style: normal;
+ text-decoration: none;
+ background-color: Window;
+ color: WindowText;
+ }
+ H1 {
+ font-family: Serife, Verdana, Helvetica, Tahoma;
+ font-size: 18px;
+ }
+ H2 {
+ font-family: Serife, Verdana, Helvetica, Tahoma;
+ font-size: 13px;
+ }
+ A {
+ color: blue;
+ }
+ </STYLE>
+</HEAD>
+<BODY scroll="auto" topmargin="0" leftmargin="0"
rightmargin="0" bottommargin="0"
+ marginwidth="0" marginheight="0">
+<DIV style="position:absolute; top:0px; left:4px; width:482px;">
+<BR/>
+<h1>License Agreement</h1>
+<p>
+<h2>JBoss�</h2>
+</p>
+
+<p>
+This License Agreement governs the use of the Software Packages and
+any updates to the Software Packages, regardless of the delivery mechanism.
+Each Software Package is a collective work under U.S. Copyright Law.
+Subject to the following terms, Red Hat, Inc. ("Red Hat") grants to the
+user ("Client") a license to the applicable collective work(s) pursuant to
+the GNU Lesser General Public License v. 2.1 except for the following Software
+Packages:
+</p>
+<ul>
+ <li><strong>a)</strong>
+ JBoss Portal Forums and JBoss Transactions JTS, each of which is licensed
+ pursuant to the GNU General Public License v.2;
+ </li>
+ <li><strong>b)</strong>
+ JBoss Rules, which is licensed pursuant to the Apache License v.2.0;
+ </li>
+ <li><strong>b)</strong>
+ an optional download for JBoss Cache for the Berkeley DB for Java database,
+ which is licensed under the (open source) Sleepycat License (if Client does
+ not wish to use the open source version of this database, it may purchase a
+ license from Sleepycat Software);
+ <br/><br/>and<br/><br/>
+ </li>
+ <li><strong>d)</strong>
+ the BPEL extension for JBoss jBPM, which is licensed under the Common Public
+ License v.1, and, pursuant to the OASIS BPEL4WS standard, requires parties
+ wishing to redistribute to enter various royalty-free patent licenses.
+ </li>
+</ul>
+<p>
+Each of the foregoing licenses is available at
+<a target="_blank"
href="http://www.opensource.org/licenses/index.php">
+http://www.opensource.org/licenses/index.php
+</a>
+</p>
+
+<p><strong>1.</strong>
+The Software. "Software Packages" refer to the various software modules that
+are created and made available for distribution by the
JBoss.org open source
+community at
+<a target="_blank" href="http://www.jboss.org">
+http://www.jboss.org.</a> Each of the Software Packages may be
+comprised of hundreds of software components. The end user license agreement
+for each component is located in the component's source code. With the
+exception of certain image files identified in Section 2 below, the license
+terms for the components permit Client to copy, modify, and redistribute the
+component, in both source code and binary code forms. This agreement does not
+limit Client's rights under, or grant Client rights that supersede, the license
+terms of any particular component.
+</p>
+
+<p><strong>2.</strong>
+Intellectual Property Rights.The Software Packages are owned by Red Hat and
+others and are protected under copyright and other laws. Title to the
+Software Packages and any component, or to any copy, modification, or merged
+portion shall remain with the aforementioned, subject to the applicable
+license. The "JBoss" trademark, "Red Hat" trademark, the individual
Software
+Package trademarks, and the "Shadowman" logo are registered trademarks of
+Red Hat and its affiliates in the U.S. and other countries.
+This agreement permits Client to distribute unmodified copies of the Software
+Packages using the Red Hat trademarks that Red Hat has inserted in the Software
+Packages on the condition that Client follows Red Hat's trademark guidelines
+for those trademarks located at
+<a target="_blank"
href="http://www.redhat.com/about/corporate/trademark/">
+http://www.redhat.com/about/corporate/trademark/.</a>
+Client must abide by these trademark guidelines when distributing the Software
+Packages, regardless of whether the Software Packages have been modified.
+If Client modifies the Software Packages, then Client must replace all Red Hat
+trademarks and logos identified at
+<a target="_blank"
href="http://www.jboss.com/company/logos">
+http://www.jboss.com/company/logos</a> unless a
+separate agreement with Red Hat is executed or other permission granted.
+Merely deleting the files containing the Red Hat trademarks may corrupt
+the Software Packages.
+</p>
+
+<p><strong>3.</strong>
+Limited Warranty. Except as specifically stated in this Paragraph 3 or a license
+for a particular component, to the maximum extent permitted under applicable law,
+the Software Packages and the components are provided and licensed "as is"
+without warranty of any kind, expressed or implied, including the implied
+warranties of merchantability, non-infringement or fitness for a particular
+purpose. Red Hat warrants that the media on which Software Packages may be
+furnished will be free from defects in materials and manufacture under normal
+use for a period of 30 days from the date of delivery to Client. Red Hat does
+not warrant that the functions contained in the Software Packages will meet
+Client's requirements or that the operation of the Software Packages will be
+entirely error free or appear precisely as described in the accompanying
+documentation. This warranty extends only to the party that purchases the
+Services pertaining to the Software Packages from Red Hat or a Red Hat
+authorized distributor.
+</p>
+
+<p><strong>4.</strong>
+Limitation of Remedies and Liability. To the maximum extent permitted by
+applicable law, the remedies described below are accepted by Client as its
+only remedies. Red Hat's entire liability, and Client's exclusive remedies,
+shall be: If the Software media is defective, Client may return it within 30
+days of delivery along with a copy of Client's payment receipt and Red Hat,
+at its option, will replace it or refund the money paid by Client for the
+Software. To the maximum extent permitted by applicable law, Red Hat or any
+Red Hat authorized dealer will not be liable to Client for any incidental or
+consequential damages, including lost profits or lost savings arising out of
+the use or inability to use the Software, even if Red Hat or such dealer has
+been advised of the possibility of such damages. In no event shall Red Hat's
+liability under this agreement exceed the amount that Client paid to Red Hat
+under this Agreement during the twelve months preceding the action.
+</p>
+
+<p><strong>5.</strong>
+Export Control. As required by U.S. law, Client represents and
+warrants that it:
+<ul>
+ <li><strong>a)</strong>
+ understands that the Software Packages are subject to export controls under
+ the U.S. Commerce Department's Export Administration Regulations
("EAR");
+ </li>
+ <li><strong>b)</strong>
+ is not located in a prohibited destination country under the EAR or U.S.
+ sanctions regulations (currently Cuba, Iran, Iraq, Libya, North Korea,
+ Sudan and Syria);
+ </li>
+ <li><strong>c)</strong>
+ will not export, re-export, or transfer the Software Packages to any
+ prohibited destination, entity, or individual without the necessary export
+ license(s) or authorizations(s) from the U.S. Government;
+ </li>
+ <li><strong>d)</strong>
+ will not use or transfer the Software Packages for use in any sensitive
+ nuclear, chemical or biological weapons, or missile technology end-uses
+ unless authorized by the U.S. Government by regulation or specific
+ license;
+ </li>
+ <li><strong>e)</strong>
+ understands and agrees that if it is in the United States and exports or
+ transfers the Software Packages to eligible end users, it will, as
+ required by EAR Section 740.17(e), submit semi-annual reports to
+ the Commerce Department's Bureau of Industry & Security (BIS), which
+ include the name and address (including country) of each transferee;
+ </li>
+ <br/><br/>and<br/><br/>
+ <li><strong>f)</strong>
+ understands that countries other than the United States may restrict the
+ import, use, or export of encryption products and that it shall be solely
+ responsible for compliance with any such import, use, or export restrictions.
+ </li>
+</ul>
+</p>
+
+<p><strong>6.</strong>
+Third Party Programs. Red Hat may distribute third party software programs
+with the Software Packages that are not part of the Software Packages and
+which Client must install separately. These third party programs are subject
+to their own license terms. The license terms either accompany the programs
+or can be viewed at
+<a target="_blank"
href="http://www.redhat.com/licenses/">
+http://www.redhat.com/licenses/</a>. If Client does not agree
+to abide by the applicable license terms for such programs, then Client may
+not install them. If Client wishes to install the programs on more than one
+system or transfer the programs to another party, then Client must contact
+the licensor of the programs.
+</p>
+
+<p><strong>7.</strong>
+General. If any provision of this agreement is held to be unenforceable,
+that shall not affect the enforceability of the remaining provisions.
+This License Agreement shall be governed by the laws of the State of North
+Carolina and of the United States, without regard to any conflict of laws
+provisions, except that the United Nations Convention on the International
+Sale of Goods shall not apply.
+</p>
+
+<pre>
+Copyright © 2006-2008 Red Hat, Inc. All rights reserved.
+"JBoss" and the JBoss logo are registered trademarks of Red Hat, Inc.
+All other trademarks are the property of their respective owners.
+</pre>
+
+</DIV>
+</BODY>
+</HTML>
Added: trunk/build/install/installer/installers/jbossas/_install/eulamain.htm
===================================================================
--- trunk/build/install/installer/installers/jbossas/_install/eulamain.htm
(rev 0)
+++ trunk/build/install/installer/installers/jbossas/_install/eulamain.htm 2008-04-08
10:49:32 UTC (rev 1533)
@@ -0,0 +1,147 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<HEAD lang="en">
+ <META http-equiv="Content-Type" content="text/html;
charset=windows-1252">
+ <META http-equiv="MSThemeCompatible" content="Yes">
+ <TITLE>Accept License Agreement</TITLE>
+ <STYLE type="text/css">
+ BODY, TABLE, TR, TD, UL, OL, LI, P {
+ font-family: MS Shell Dlg;
+ font-size: 10px;
+ font-style: normal;
+ text-decoration: none;
+ background-color: ButtonFace;
+ color: ButtonText;
+ }
+ INPUT {
+ font-family: MS Shell Dlg;
+ font-size: 10px;
+ }
+ TH {
+ font-family: MS Shell Dlg;
+ font-size: 10px;
+ font-style: normal;
+ text-decoration: none;
+ text-align: left;
+ line-height: 22px;
+ background-color: ActiveCaption;
+ color: CaptionText;
+ }
+ H1 {
+ font-family: Serife, Verdana, Helvetica, Arial, Tahoma;
+ font-size: 24px;
+ }
+ H2 {
+ font-family: Serife, Verdana, Helvetica, Arial, Tahoma;
+ font-size: 20px;
+ }
+ H3 {
+ font-family: Serife, Verdana, Helvetica, Arial, Tahoma;
+ font-size: 18px;
+ }
+ H4 {
+ font-family: Serife, Verdana, Helvetica, Arial, Tahoma;
+ font-size: 13px;
+ }
+ A {
+ color: blue;
+ }
+ IFRAME {
+ border-left:0px;
+ border-right:0px;
+ border-top:1px solid;
+ border-top-color: ActiveBorder;
+ border-bottom:1px solid;
+ border-bottom-color: ActiveBorder;
+ }
+ .hide {
+ display: none;
+ visibility: hidden;
+ }
+ .show {
+ display: block;
+ visibility: visible;
+ }
+ </STYLE>
+ <SCRIPT language="JScript">
+
+ function pageOnLoad()
+ {
+ window.returnValue = null;
+ if (window.dialogArguments != null) {
+ var args;
+ args = window.dialogArguments.split("\t");
+ for (i = 0; i < args.length; i++) {
+ try {
+ obj = eval("val" + i);
+ if (obj != null)
+ obj.value = args[i];
+ } catch (err) {
+ // Nothing
+ }
+ }
+ }
+ iLicense.focus();
+ return true;
+ }
+
+ function okClick()
+ {
+ rv = "OK";
+ for (i = 0; i < 4; i++) {
+ try {
+ obj = eval("val" + i);
+ if (obj != null) {
+ rv = rv + "\t" + obj.value;
+ }
+ } catch (err) {
+ // Nothing
+ }
+ }
+ window.returnValue = rv;
+ window.close();
+ }
+
+ function cancelClick()
+ {
+ window.returnValue = "CANCEL";
+ window.close();
+ }
+
+ function onAcceptClick()
+ {
+ if (accept.checked)
+ ok.disabled=false;
+ else
+ ok.disabled=true;
+ }
+ </SCRIPT>
+</HEAD>
+<BODY scroll="no" topmargin="0" leftmargin="0"
rightmargin="0" bottommargin="0"
+ marginwidth="0" marginheight="0" onload="pageOnLoad();
return true;">
+<DIV style="position:absolute; top:0px; left:0px; width=505px; height:360px;
border:0px solid;">
+<DIV style="position:absolute; top:0px; left:0px; width=505px;
height:48px;">
+<IMG src="jbosstop.png" border="0"/>
+</DIV>
+<DIV style="position:absolute; top:48px; left:0px; width=505px;">
+<IFRAME src="eula.htm" id="iLicense" FRAMEBORDER=0 SCROLLING=YES
style="width: 100%; height: 240px;"></IFRAME>
+</DIV>
+<DIV style="position:absolute; top:296px; left:6px; width=505px;
height:48px;">
+ <strong style="color:red;">Required: </strong> You must
accept the License Agreement to install the product.<br/>
+<INPUT type="checkbox" id="accept"
onclick="onAcceptClick();"/> Accept License Agreement
+</DIV>
+<DIV style="position:absolute; top:336px; left:10px; width=300px;">
+<IMG src="redhat16.png" border="0" width=16
height=16/> Copyright © 2008 Red Hat® Middleware, LLC.
+</DIV>
+<DIV style="position:absolute; top:310px; left:300px;">
+<TABLE cellspacing="0" style="margin:6px;">
+ <TR>
+ <TD align="right">
+ <INPUT type="button" value="Accept" disabled id="ok"
style="width: 88px; height: 24px; cursor: hand;"
onclick="okClick();"/>
+ <INPUT type="button" value="Decline" id="cancel"
style="width: 88px; height: 24px; cursor: hand;"
onclick="cancelClick();"/>
+ </TD>
+ </TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
+</HTML>
Added: trunk/build/install/installer/installers/jbossas/_install/install.bat
===================================================================
--- trunk/build/install/installer/installers/jbossas/_install/install.bat
(rev 0)
+++ trunk/build/install/installer/installers/jbossas/_install/install.bat 2008-04-08
10:49:32 UTC (rev 1533)
@@ -0,0 +1,123 @@
+@echo off
+REM Copyright(c) 2007 Red Hat Middleware, LLC,
+REM and individual contributors as indicated by the @authors tag.
+REM See the copyright.txt in the distribution for a
+REM full listing of individual contributors.
+REM
+REM This library is free software; you can redistribute it and/or
+REM modify it under the terms of the GNU Lesser General Public
+REM License as published by the Free Software Foundation; either
+REM version 2 of the License, or (at your option) any later version.
+REM
+REM This library is distributed in the hope that it will be useful,
+REM but WITHOUT ANY WARRANTY; without even the implied warranty of
+REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+REM Lesser General Public License for more details.
+REM
+REM You should have received a copy of the GNU Lesser General Public
+REM License along with this library in the file COPYING.LIB;
+REM if not, write to the Free Software Foundation, Inc.,
+REM 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+REM
+REM -------------------------------------------------------------------------
+REM JBoss Installer Script for Windows
+REM -------------------------------------------------------------------------
+REM @author Mladen Turk
+REM
+
+@if not "%ECHO%" == "" echo %ECHO%
+@if "%OS%" == "Windows_NT" setlocal enableextensions
+
+SET RETVAL=0
+if "%OS%" == "Windows_NT" (
+ set "INSTALL_HOME=%~dp0%"
+ set "INSTALL_PROG=%~nx0%"
+) else (
+ echo Detected uncompatible Windows version.
+ set RETVAL=2
+ goto cmdEnd
+)
+
+REM -------------------------------------------------------------------------
+REM Start of package definitions
+REM -------------------------------------------------------------------------
+
+set PACKAGE_NAME=jboss-5.0.0.Beta4
+set INSTALL_NAME=JBoss Application Server
+set INSTALL_DESC=JBoss Application Server 5.0.0.Beta4
+
+REM -------------------------------------------------------------------------
+REM End of package definitions
+REM -------------------------------------------------------------------------
+
+echo Started %INSTALL_PROG% %DATE% %TIME%
+
+pushd %INSTALL_HOME%..
+set INSTALL_BASE=%CD%\
+popd
+
+echo INSTALL_PROG: %INSTALL_PROG%
+echo INSTALL_HOME: %INSTALL_HOME%
+echo INSTALL_BASE: %INSTALL_BASE%
+
+set XTOOLRC=
+xtool.exe html -q eulamain.htm > .result
+set /P XTOOLRC= < .result
+del /Q /F .result
+
+if NOT "%XTOOLRC%" == "OK" (
+ xtool msg -qt MB_OK -i s "License Agreement" "Cannot continue.##You must
accept License Agreement to install this software"
+ echo License Agreement not accepted
+ SET RETVAL=3
+ goto cmdEnd
+)
+
+set INSTALL_DEST=
+xtool.exe dir -q "Select Installation Folder##The Software will be installed in the
selected location" > .result
+for /f "usebackq tokens=*" %%I in (.result) do (
+ if exist "%%I" set INSTALL_DEST=%%I
+)
+del /Q /F .result
+
+set errorlevel=
+if NOT "x%INSTALL_DEST%" == "x" (
+ xtool msg -qt MB_OKCANCEL -i i "Start Installation" "%INSTALL_DESC% is
ready to install.##Location: %INSTALL_DEST%"
+) else (
+ echo Destination directory not specified
+ set RETVAL=1
+ goto cmdEnd
+)
+
+if not %errorlevel% == 1 (
+ echo Installation canceled
+ set RETVAL=1
+ goto cmdEnd
+)
+
+
+set errorlevel=
+if exist "%INSTALL_DEST%\%PACKAGE_NAME%" (
+ xtool msg -qt MB_YESNO -i ? "Directory exist" "%INSTALL_DESC%
in##%INSTALL_DEST%\%PACKAGE_NAME% already exist.##Do you wish to overwite the
target"
+ echo ERR1 %errorlevel%
+) else (
+ set errorlevel=6
+)
+
+if not %errorlevel% == 6 (
+ echo Installation overwrite denied
+ set RETVAL=1
+ goto cmdEnd
+)
+
+REM Do an actual installation in INSTALL_DEST/PACKAGE_NAME by copying the files from
+REM INSTALL_BASE/PACKAGE_NAME
+
+xcopy /Q /Y /E /I /C "%INSTALL_BASE%%PACKAGE_NAME%"
"%INSTALL_DEST%\%PACKAGE_NAME%" > .result
+set /P XTOOLRC= < .result
+del /Q /F .result
+
+xtool msg -qt MB_OK -i ? "Istallation finished" "%INSTALL_DESC% installed
in##%INSTALL_DEST%\%PACKAGE_NAME%##%XTOOLRC%"
+
+:cmdEnd
+echo Finished %INSTALL_PROG% %DATE% %TIME%
+exit %RETVAL%
Property changes on:
trunk/build/install/installer/installers/jbossas/_install/install.bat
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/build/install/installer/installers/jbossas/_install/jbosstop.png
===================================================================
(Binary files differ)
Property changes on:
trunk/build/install/installer/installers/jbossas/_install/jbosstop.png
___________________________________________________________________
Name: svn:mime-type
+ image/png
Added: trunk/build/install/installer/installers/jbossas/_install/redhat16.png
===================================================================
(Binary files differ)
Property changes on:
trunk/build/install/installer/installers/jbossas/_install/redhat16.png
___________________________________________________________________
Name: svn:mime-type
+ image/png