lawappinstall - Application Installation

Syntax with directives, options, and parameters:

perl $GENDIR/bin/lawappinstall update|activate|preview|uninstall|stage|unstage|validate [-a|-r AnswerFile] [-f] [-i] [-m] [-n] [-P] [-s stageDir] [-y] productLine [versionFileDir] [decryptKey] [clientID] [packageID]

Syntax to view full usage or help:

perl $GENDIR/bin/lawappinstall -U

The lawappinstall tool is the primary installation tool. It is an installation automation tool that calls other tools to perform the majority of the installation tasks. This tool is used to install all application CTPs and any application MSP or release.

The lawappinstall tool has seven (7) directives: preview, update, uninstall, stage, unstage, validate, and activate.

Note: You must have Perl version 5.6.1 (or higher) software on your system to run lawappinstall. For performance reasons, Lawson recommends Perl version 5.8 (or higher). To download Perl from the Comprehensive Perl Archive Network, use your browser and go to http://www.cpan.org (downloads are available for both source code and binary ports). A Windows version of Perl is available from http://www.ActiveState.com.
Directive Description
PREVIEW

The PREVIEW directive allows you to preview the application source files (program and metadata) that will be affected.

Required options and arguments:

  • Cyclical (if it is a completely new install or an upgrade to a new level) - productLine versionFileDir decryptKey clientID

  • Cyclical (if it is a re-install or the correction of an install of the same level) - stageDir productLine versionFileDir decryptKey clientID

  • Service pack - stageDir productLine versionFileDir decryptKey clientID

  • Patch - productLine versionFileDir

UPDATE

The UPDATE directive executes the lasetup and appmetaload commands.

The UPDATE directive updates the delivered application source files (program and metadata) into the installation product line. It is during the UPDATE directive that lawappinstall determines which files must be updated and which of those contain custom modifications.

If an UPDATE occurs after a STAGE, then it is required to STAGE the additional updates.

See lasetup - Lawson Install Setup and appmetaload - Application Metadata Load for more information on the processes being performed during this phase.

Required options and arguments:

  • Cyclical (if it is a completely new install or an upgrade to a new level) - productLine versionFileDir decryptKey clientID

  • Cyclical (if it is a re-install or the correction of an install of the same level) - stageDir productLine versionFileDir decryptKey clientID

  • Service pack - stageDir productLine versionFileDir decryptKey clientID

  • Patch - productLine versionFileDir

ACTIVATE

The ACTIVATE directive performs any necessary steps to update and reorganize the application database (blddbdict/dbreorg).

If the product line is in "Production," the necessary programs are compiled (patchcompile). This directive implements the changes made to the product line.

If the product line is "Staged", the stage-compiled objects are moved from /QSYS.LIB/LSTG<number> to /QSYS.LIG/<LAWAPPPGMLIB>.LIB/, and staging is terminated.

See patchcompile - Patch Compile and apploadcsv - Application Load CSV Files for more information on the processes being performed during this phase.

Required options and arguments: productLine

STAGE

The STAGE directive is used after any number of updates have been applied, and this initiates the staging process.

This directive uses the directory LAWDIR/<productline>/stgcmp to maintain the date/timestamp of the dictionary used. The stage-compiled objects are stored in library /QSYS.LIB/LSTG<number>.

Required options and arguments: productLine

UNSTAGE

The UNSTAGE directive deletes LAWDIR/ <productline>/stgcmp. Any stage-compiled objects no longer exist and /QSYS.LIB/LSTG<number>/ is removed. If LADBDIR/dict/+<PRODLINE> exists; it is removed too.

Required options and arguments: productLine

UNINSTALL

The UNINSTALL directive removes a CTP or an MSP. UNINSTALL updates application source files (program and metadata) into the installation product line.

If the product line has been previously staged, then another STAGE is required to synchronize the metadata and compiled objects.

Required options and arguments: productLine packageID

VALIDATE

The VALIDATE directive can be used anytime in a staged installation process. This checks and validates all staged content is current and ready to be activated.

Required options and arguments: productLine

Option Description
a answerFile To specify the full path to a file that contains the setup answers for an initial install. Use this option to avoid being prompted during an install. It is only valid with the Update directive. You must use it with the -n option. It cannot be used with the -f option.
r answerFile To create the answer file. Specify the full path to the file. It can pre-exist and will be created if it does not exist. This will create the answer file but will not perform the install. It expects that prerequisites (RDBMS, etc.) have been met. It is only valid with the Update directive. You must use it with the -n option. It cannot be used with the -f option.
f To enable an experienced user to force a successful log entry after manually correcting an install/uninstall with errors. Arguments must be productline and packageID if you are doing an Update or Uninstall. The argument should only be productline if you are doing an Activate, Stage, or Unstage. This is option is not supported with Preview or Validate.
i To ignore the Ctrl file when rerunning to correct a previous error. This will force previously successful steps to be rerun instead of bypassed. Use with caution as not all steps will have desired results when duplicated.
m To log to abbreviated mini logs in addition to normal logging. Mini logs will omit non-updated, non-impacted items.
n To run the program in non-interactive mode, meaning no confirmation prompts and no additional information prompts. With -n it is assumed all needed information is supplied on the command line, and all steps that are to be taken during the install will happen without confirmation. Without -n, any missed arguments will be prompted for, and a prompt for confirmation will happen before major tasks.
P To get more detailed information than normal in a preview. A strong preview may run additional commands to get additional detail. These additional commands may make small updates to the product line but the runtime is not affected.
s stageDir To specify the full path to an existing directory to be used for staging the contents of the package during an update. If omitted, the default will be productLine/Stage.
U To view full usage or help.
y To skip running appinstallanalysis. Use with caution because if you use this option, you cannot run again for the same skipped Activate. This option is only valid with the Activate or Preview directive.
productLine Name of product line. It must start with a letter and be alphanumeric.
versionFileDir The full path to the directory containing the Versions file. The Versions file is part of the package. Also, after the package is extracted, this argument is to be the directory that contains the Versions file. If your current directory is already the correct location, this argument may be omitted for patches. This is a required argument when using decryptKey and clientID.
decryptKey Decryption key for the set of applications purchased.
clientID Your client ID.
packageID The name (or ID) of the package to uninstall. This is also known as the release ID of the package installed. This must be the package of the most recently updated install.

Running lawappinstall with the update directive

Running lawappinstall using the update directive updates application source files (program and metadata) into the installation product line.

To execute lawappinstall using the update option:

perl $GENDIR/bin/lawappinstall update productline versionfiledir

The versionfiledir is the path to your Versions file.

Running lawappinstall with the activate directive

Running Application Installation using the activate directive implements the application source files (program and metadata) that have been updated into the installation productline.

To execute lawappinstall using the activate option:

perl $GENDIR/bin/lawappinstall activate productline

Running lawappinstall with the preview directive

You can execute lawappinstall with the preview directive. This allows you to preview what will be changed. Review the preview.log file to see what the impact of the installation would be when you do continue the installation.

The preview.log provides the following information:

  • entries from install.log

  • detected modified files list

  • whether a database reorganization will be necessary

  • entries from patchcompile.log

To execute lawappinstall using the preview option:

perl $GENDIR/bin/lawappinstall previewproductline versionfiledir

Running lawappinstall with the uninstall directive

Running lawappinstall using the "UNINSTALL" directive updates application source files (program and metadata) into the installation product line.

Note: You can run lawappinstall with the uninstall directive as many times as needed with little to no immediate effect on your product line. Therefore, you can perform multiple uninstalls before running lawappinstall with the activate directive. The majority of your uninstall is applied to your product line only after performing lawappinstall using the activate directive.

To execute lawappinstall using the uninstall option

perl $GENDIR/bin/lawappinstall uninstall productline versionfiledir

The versionfiledir is the path to your Versions file.

Running lawappinstall in non-interactive mode

You can execute lawappinstall in non-interactive mode by entering all of the required installation parameters in the command line. From the stage directory, enter:

lawappinstall update -n productline versionfiledir decryptionkey clientID

Note: The decryptionkey and clientID variables are only used when installing an application release or an MSP.

Where:

  • productline is the name of the product line where you are installing.

  • versionfiledir is the full path to the directory containing the Versions file of the deliverable being installed.

  • decryptionkey is the decryption key used when installing Lawson application releases and MSPs.

  • clientID is your Lawson client ID number.

lawappinstall.log

The lawappinstall.log file is an overview of the individual process logs. The lawappinstall.log file lists any errors that may have occurred during the individual installation processes: lasetup, appmetaload, patchcompile, and apploadcsv. The lawappinstall.log file is located in the following location.

$LAWDIR/productline/Admin

The following is an example of the lawappinstall.log file.

lawappinstall UPDATE 9.0.1.5 installation started at 
03/29/2011 03:38:07.
	command line = '/901int/univ/bin/lawappinstall update 
msptest3 /cmbase/brenda/MDV_PHII/TEST/NEW_FORMAT/8039 
F3-0EQENEGERTHR8 9999'.
03/29/2011 03:38:08  Executing lasetup.
03/29/2011 04:25:11  lasetup execution successful.
03/29/2011 04:25:11  Executing appmetaload.
03/29/2011 04:28:34  appmetaload execution successful.
03/29/2011 04:28:34  Executing loadhelp.
03/29/2011 04:31:54  loadhelp execution successful.
03/29/2011 04:31:54  Searching for modifications.
03/29/2011 04:31:56  Known modifications - The following 
custom modified files were overwritten during the 
installation and will need to be reapplied prior to starting 
the ACTIVATE installation phase: metadata/acmeta/AC.skn 
metadata/admeta/AD.skn metadata/ammeta/AM.skn metadata/
apmeta/AP.skn metadata/armeta/AR.skn metadata/bnmeta/BN.skn 
metadata/brmeta/BR.skn metadata/brmeta/BR11.msg metadata/
icmeta/IC.skn metadata/mameta/MA.skn metadata/pameta/PA.skn 
metadata/pometa/PO.skn metadata/prmeta/PR.skn metadata/
pwmeta/PW.skn
03/29/2011 04:31:56  Possible modifications - The following 
files were installed during the installation and the 
installation was unable to  installed during the installation 
and the installation was unable to determine if their 
metadata was custom modified. They should be investigated 
prior to starting the ACTIVATE installation phase: metadata/
brmeta/BR40.msg
03/29/2011 04:31:56  Searching for new tokens.
03/29/2011 04:31:56  New Tokens Added - The following new 
tokens were added to the productline during this 
installation. You should set appropriate security on these 
new tokens: AD325 AM330 AR31.7 BR157 BR180 BR215 BR253 BR254 
BR53.2 BR58.1 IC285 IC84.1 IC84.2 LM52.1 LM552 MA41.6 MA41.7 
PR539 PR82.3 MM80.1 MM80.2 MM80.3 RQ705
lawappinstall UPDATE 9.0.1.5 installation completed 
successfully at 03/29/2011 04:31:56.

lawappinstall ACTIVATE installation started at 03/29/2011 
04:36:46 for the following deliverables: 9.0.1.5.
	command line = '/901int/univ/bin/lawappinstall activate 
msptest3 /cmbase/brenda/MDV_PHII/TEST/NEW_FORMAT/8039 
F3-0EQENEGERTHR8 9999'.
03/29/2011 04:36:58  Database preparation.
03/29/2011 04:36:58  Executing bldckp.
03/29/2011 04:37:00  bldckp execution successful.
03/29/2011 04:37:00  Executing setsfl.
03/29/2011 04:37:05  setsfl execution successful.
03/29/2011 04:37:05  Executing setnotused.
03/29/2011 04:37:12  setnotused execution successful.
03/29/2011 04:37:12  Executing blddbdict.
03/29/2011 04:38:10  blddbdict execution successful, plus 
dictionary created.
03/29/2011 04:36:58  Database preparation.
03/29/2011 08:04:57  Executing apploadcsv.
03/29/2011 08:05:02  apploadcsv execution successful.
lawappinstall ACTIVATE installation completed successfully 
at 03/29/2011 08:05:02.