Run Book
Run Book
Introduction
Over View:
This document contains the instructions to execute an error-free, installation script which
has initially been designed to simplify the automation of an installation without having to
write, compile and debug code. It has been observed to provide several additional benefits:
Script Description
The beginning of the Script contains file system objects and variables that are declared.
This particular section of the script should not be modified. Modification of this section will
affect the functionality of the script.
The “Registry stamping data” section of the script contains data that has to be updated
according to every application.
ApplicationActualName = ""
licenseSupplier = ""
manufacturerName = ""
applicatonVersion = ""
supplierID = ""
bit = ""
exeName = ""
Before the install section begins, Log File is created. The Log File Creation is taken care of
by the script in the specific location. (Windowsdir & "\NSSAppLogs\" &
manufacturerName & "\"& ApplicationActualName &"\")
LogFileOpening
Install Section :
The install section of the script contains all the processes necessary for application
packaging. It includes processes such as the following :
ProcessKill
InstallMSI
InstallMSID (D Drive)
InstallMST
InstallMSTD (D Drive)
UninstallMSI
RunExe (Without parameters)
RunExe (With parameters)
InstallISS (InstallShieldResponse File)
FileCopy
FolderCopy
DeleteFile
DeleteFolder
RunVbs
AddReg
Delreg
set_Regstamp
ProcessKill:
Syntax:
ProcessKill("Process Name")
Parameters:
Process Name is the title of the process that has to be terminated. Process Name is the
name of the exe without their full path. For instance: notepad.exe , setup.exe etc.
Examples:
ProcessKill("calc.exe")
ProcessKill("notepad.exe")
ProcessKill("EXCEL.EXE")
ProcessKill("mspaint.exe")
InstallMSI:
Syntax:
call InstallMSI("MSIPath")
Parameters:
Examples:
InstallMSID:
The InstallMSI process is used for the silent installation of an MSI in D drive .
Syntax:
MSIPath denotes the full path of the MSI that has to be installed.
Installation directory path denotes the complete path of the directory property
Examples:
InstallMST:
InstallMST process is used for the silent installation of an MSI with its transforms.
Syntax:
Parameters:
MSIPath and MSTPath denote the complete path of the MSI and its Transform.
Examples:
InstallMSTD:
InstallMST process is used for the silent installation of an MSI with its transforms for
D Drive.
Syntax:
MSIPath and MSTPath denote the complete path of the MSI and its Transform.
Installation directory path denotes the complete path of the directory property
Examples:
UninstallMSI:
UninstallMSI is used for the silent uninstallation of an MSI using its product code.
Syntax:
Call UninstallMSI("ProductCode")
Parameters:
Examples:
Call UninstallMSI("{518487D9-7D70-41D7-8292-1105E47A1145}")
The RunEXE action launches an executable file and waits for it to complete.
Syntax:
Call RunExe(“Exepath")
Parameters:
Exepath is the path of the exe that has to be executed.
Examples:
The RunEXE action launches an executable file and waits for it to complete. Command line
parameters can be passed to the EXE file.
Syntax:
Parameters:
Parameter is the switch that can be passed along with the exe.
Examples:
InstallISS:
InstallShield Setup files can be installed using response file using InstallISS.
Syntax:
Parameters:
Examples:
Call InstallISS(ScriptPath &"\iss\Package\erdpro\setup.exe",ScriptPath &"\iss\Package\
Install_C.iss")
FileCopy:
Syntax:
Parameters:
Destination is the destination path into which the file has to be copied to.
Examples:
FolderCopy:
Syntax:
Parameters:
Source denotes the source folder along with its complete path.
Destination is the destination path into which the contents of the folder has to be copied
into.
Examples:
DeleteFile:
Syntax:
Call DeleteFile("File&Path")
Parameters:
Examples:
DeleteFolder:
It removes the target folder and any files and subfolders it contains.
Syntax:
Call DeleteFolder("Folder&Path")
Parameters:
Examples:
RunVbs:
Call RunVbs("VbsPath")
Parameters:
Examples:
AddReg:
Syntax:
Examples:
DelReg:
Syntax:
Examples:
Call DelReg("HKLM" ,"\Software\Microsoft\Active Setup\Installed Components\Citrix\
StubPath")
set_Regstamp:
Syntax:
Examples:
LogFileclosing
Example Script: A Basic install script for installing an msi with its transform will be
as follows:
manufacturerName = "Microsoft"
applicatonVersion = "2010"
supplierID = ""
bit = "32"
exeName = "VSSDKTestHost.exe"
‘The install section will have different sections depending on customization required
LogFileOpening()
' Filedelete
LogFileclosing()