The following steps explain how to create a silent install script for the Resource Monitoring Client.
Since the following process requires knowledge of editing server setup scripts, no customer support is available to create a silent install.
To create a silent installation, install the monitoring client on a machine and run the setup.exe program with a attribute (-r or /r) to capture (Record) your responses during the installation process. This attribute creates and records your responses into a file called setup.iss located in the Windows directory of that system. You can then copy the setup.iss file to the folder where you copied the installation files so it can be used for your silent installation. After you create the iis file, create a statement in a logon script to execute the setup.exe with the attribute (-s or /s) that runs the installation in silent mode. This will use the responses created in the setup.iss file. If the installation fails, errors are written to a file called "setup.log".
Steps
- Copy the setup.iss file from that system's windows directory to the network share folder where you copied the installation files. You can review the contents of this file by opening it up using notepad. Note: You can rename this file if you have several versions for different types of installs. Install the monitoring client on a machine.
- From the run command run the setup.exe with the record attribute . Example: "\\Servername\RMInstallDir\Setup.exe /r"
- Test the silent install by adding an entry in a logon script that uses various attributes of the setup.exe program. These attributes include:
- -s or /s to run in silent mode
- -f1 or /f1 to state an alternate location and name of the .iss file
- -f2 or /f2 to state an alternate location and name of the .log file
- Include logic in your script to check for existing installed files. If your logon script finds a file(like Rm.sec), terminate the script from executing the installation program. If the logon script runs after a successful installation, the installation program will uninstall the software. The default installation folder is C:\Documents and Settings\All Users\Application Data\Microsoft\Msapps\RM
Additional Notes:
- /r or -r
Causes Setup.exe automatically to generate a silent setup file (.iss file), which is a record of the setup input, in the Windows folder.
- /f1<path\ResponseFile> or -f1<path\ResponseFile>
Specifies an alternate location and name of the response file (.iss file). If this option is used when running the installation in silent mode (-s or /s), the response file is read from the folder/file specified by<path\ResponseFile>. If this option is used along with the -r option, the response file is written to the folder/file specified by<path\ResponseFile>.
- /f2<path\LogFile> or -f2<path\LogFile>
Specifies an alternate location and name of the log file created installation running is silent mode. By default, Setup.log log file is created and stored in the same directory as that of Setup files.
- By default, the setup program tries to load the setup.iss file from the same folder as the setup program.
- Separate multiple command line switches with a space. But do not put a space inside a command line switch (for example, /r /f1setup.iss is valid, but not /r/f1 setup.iss).
- When using long path and filename expressions with switches, enclose the expressions in double quotation marks. The enclosing double quotes tell the operating system that spaces within the quotation marks are not to be treated as command line delimiters.
- Examples:
- "C:\RMInstallDir\Setup.exe" /r /f1"C:\RMInstallDir\ Setup.iss"
- "\\Servername\RMInstallDir\Setup.exe" /s /f1"\\Servername\RMInstallDir\ Setup.iss" /f2"\\Servername\RMInstallDir\ Setup.log"
|