Admin Production rocket
Current Publication

Script to install silently

Server for COBOL Help for Windows V5.1
Rocket® Server for COBOL (formerly a product of Micro Focus or formerly a product of Open Text) documentation, created before Rocket Software acquired certain products from OpenText, may include outdated references to "Micro Focus" or "OpenText", both of which are trademarks of OpenText or its affiliates. Rocket Software is not affiliated with Micro Focus or OpenText and has since rebranded these products as Rocket® products. You may also encounter outdated links in this documentation. If you do, please contact Rocket Support (support@rocketsoftware.com) for assistance.

Script to install Micro Focus Server silently

rem This is a sample script that installs Micro Focus Server silently. 
rem Replace the following with your own values, so that:
rem SRP325xxxxxx.exe is the installation file on your Server CD
rem MyMFserver-path is the drive and path in which to install Server 
rem MyLicensdb-path is the drive and path to contain the license database
rem MySerial is the serial number on your license key card 
rem MyLicense is the license number on your license key card

@echo off
echo ***** Starting installation *****
start /wait SRP325xxxxxx.exe /s /v"/qn INSTALLDIR=MyMFserver-path"
if not exist MyMFserver-path\bin\cobver goto FAIL

MyMFserver-path\bin\aslmpclocate -q
if errorlevel 0 goto FOUNDDB

MyMFserver-path\bin\aslmpclocate -q MyLicensdb-path
MyMFserver-path\bin\aslmpcsilent 1 MySerial MyLicense
if errorlevel 0 goto PASS
echo ***** License not set. Call Support *****
goto END

:FOUNDDB
MyMFserver-path\bin\aslmpcsilent 2 MySerial MyLicense
if errorlevel 0 goto PASS
echo ***** License not set. Call Support *****
goto END

:FAIL
echo ***** Installation Failed - Call Support - check installation log file : "%temp%\SRP32msilog.txt" *****
goto END

:PASS
echo ***** Installation completed *****
goto END

:END