Task 5.2.1 Record and Customize a Silent Install Response File


The program for installing Workbench for Eclipse is located on the installation media at

   \cpwr\Topaz\Windows\Disk1\InstData\VM\install.exe

To run the installation and record a response file, execute the following command,

   install.exe -r <response_file_path>

where < response_file_path > is the directory where the response file will be placed. For example, if the Workbench for Eclipse media has been copied to C:\media and a directory exists at C:\silent, then the following command will perform a silent install and create a response file.

   C:\media\cpwr\Topaz\Windows\Disk1\InstData\VM\install.exe -r C:\silent

For deployment to end users, the response file can be edited to change the target install and workspace directories, if desired.

To change the target install directory, change the value assigned to USER_INSTALL_DIR in the installer.properties file. For our example, this file is in the C:\silent directory.

For example,

   USER_INSTALL_DIR=$prop.user.home$\\BMC\\Workbench

Important

$prop. is an InstallAnywhere variable that can access any Java property. In this example, $prop.user.home$ returns the value of the user.home property — the user’s home directory.

To designate a default Workbench for Eclipse workspace directory, add the WORKSPACE_DIR parameter to the installer.properties file and give it a value for the desired default directory path.

For example,

WORKSPACE_DIR=@user.home\\BMC\\Workbench\\workspace

Important

@user.home  resolves to the user’s home directory by the Java Virtual Machine (JVM).

Warning

Use a double-backslash to specify the directory paths in the parameter values. Use a backslash to escape the colon (:) when specifying a drive letter for Windows.

For example: WORKSPACE_DIR=C\:\\myhomedirectory\\BMC\\Workbench\\workspace

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*