After you install a Risetup image on a client computer, you can install special applications and drivers by calling the Cmdlines.txt file at the end of Mini-Setup or by using [GuiRunOnce] to provide commands that execute after Mini-Setup runs. To set up for application or driver installation, you need to create Cmdlines.t 21121q1611v xt and configure it with the commands you want to run, or use the [GuiRunOnce] section in your Ristndrd.sif answer file to run the commands that perform the installation.
Consider using Cmdlines.txt in your Risetup image design when you want to do the following:
Install applications from the \$OEM$ folder on your RIS distribution share.
Install applications at the end of Mini-Setup.
Install an application that is designed for installation by one user, and you need to replicate user-specific information to all users of the computer.
However, before you decide to incorporate Cmdlines.txt into your Risetup image design, consider the following limitations:
Logon context. When Cmdlines.txt is called, it runs as a system service.
This means there is no logged-on user and no network connectivity. All user-specific information is written to the default user portion of the registry, and all subsequently created users inherit those registry settings.
Application support files. You must place the files necessary for an application or utility to run in your RIS distribution share.
Quiet mode. When you install applications by using Cmdlines.txt, you must install the application with an unattended setup so the user does not need to respond to messages about the application.
Limited applications. You cannot install Windows Installer (.msi) applications with Cmdlines.txt. To install these types of applications, use [GuiRunOnce] instead.
For this part of the image design process, check the "Use Cmdlines.txt" check box in job aid "Defining Risetup Images" (ACIRIS_07.doc) on the Windows Server 2003 Deployment Kit companion CD (or see "Defining Risetup Images" on the Web at https://www.microsoft.com/reskit), if you intend to use Cmdlines.txt to install applications or drivers.
To use Cmdlines.txt for installing components such as applications and drivers, you first need to create the file and then add the specific command strings that start the installations. You create the Cmdlines.txt file with a text editor such as Notepad (or Setupmgr.exe). In the Cmdlines.txt file, use the following syntax to specify the commands you want to run to install applications or drivers:
[Commands]
"command_1"
"command_2"
. . .
"command_x"
The command strings enclosed in quotation marks specify the commands that execute in order when Cmdlines.txt is called. For example, you could create a command string to run the commands in an .inf file as follows:
"%windir%\System32\Rundll32.exe ApplicationName.inf"
When you finish creating Cmdlines.txt, you need to place it in the following path in the RIS server directory structure:
RemoteInstall\Setup\Language\Images\ImageName\$OEM$\$1\Subfolder
The folder Subfolder might be named Drivers or Applications, as described earlier in this section in the discussion about software configurations and Risetup images. You also need to place the application(s) you want to install (along with any support files) in the \$OEM$\$1\Application subfolder and the drivers you want to install along with support files in the \$OEM$\$1\Drivers subfolder. In addition, you must specify the following value in the [Unattended] section in your Ristndrd.sif answer file to point to the location of the applications, special drivers, and Cmdlines.txt:
InstallFilesPath=RemoteInstall\Setup\Language\Images\ImageName\$OEM$\$1\Subfolder
After you properly configure all these parameters, Cmdlines.txt will run automatically at the end of Mini-Setup and process each command that it contains to install the applications you specify.
For this part of your Risetup image design process, record the commands you intend to run in Cmdlines.txt under the "Cmdlines.txt Commands" section of job aid "Defining Risetup Images" (ACIRIS_07.doc) on the Windows Server 2003 Deployment Kit companion CD (or see "Defining Risetup Images" on the Web at https://www.microsoft.com/reskit).
|