Using a Batch file
The utility Pinstall.exe can be used to install or maintain your AMT-COBOL application. This utility is the batch equivalent of the AMT Application Installer.
PInstall will also use the AmtProdInstall.config file as default configuration file.
Usage:
PInstall <Application> [/SET:<Generation Set name>] [/S] [/A] [/DEL] [/COPYDEBUG] [/COPYWEB] [/COPYAMTTOOLS] [/COPYEXTRAFOLDERS] [/C:<Configuration File>]
Parameter | Description |
<Application> |
The name of the application that you want to install. |
/SET:<GenSetName> |
Reads the production directory from the generation set (GenSetName). This function is similar to the Generation Set dropbox option in Prodinstall.exe. |
/S |
Scans the differences between the date-time stamps of the generation files and the files in your production environment. It also selects automatically the changed files in the generation directory. This function is similar to the option 'Scan directories' in Prodinstall.exe. |
/A |
Synchronizes the files in the production directory with the files in the generation directory. This function is similar to the option "Synchronize All" in Prodinstall.exe. |
/DEL |
Deletes the files from the production directory that are not present in the generation directory. |
/COPYDEBUG |
Copies the debug objects as well. |
/COPYWEB |
Copies the website as well |
/COPYAMTTOOLS |
Copies the AmtTools as well |
/COPYEXTRAFOLDERS |
Copies the extra folders as well |
/C:<ConfigFile> | Specify a configuration file to be read instead of the default AmtProdInstall.config file. |
Examples
To scan a directory use the following command:
PInstall.exe MyApplication /SET:MySet /S
To synchronize a directory use:
PInstall.exe MyApplication /SET:MySet /A
To also delete file that are ready to be removed use:
PInstall.exe MyApplication /SET:MySet /DEL
Note: The user still needs to confirm if there are files ready to delete.
To scan a directory specified in a different configuration file use:
PInstall.exe MyApplication /Set:MySet /S /C:D:\AmtConfigs\MyConfig.config
After every step the user can exit (EXIT) or start pinstall again (PINSTALL).
Prodinstall will create a file called “prodinstalling.now” when performing a prodinstall. This is a flagfile and will be used for the appserver to signal that prodinstall is being executed. After the prodinstall is done, the files will be deleted.
Note: prodinstalling.now can be found in the /server folder of both the sourcedirectory and the productiondirectory.
Note: the files app.ini and web.config will never be installed. If needed, copy them by hand.