(Winbom)

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

[OEMRunOnce]

The [OEMRunOnce] section enables you to control how and when external applications and command shell scripts run when auditing the computer in Factory mode, by using the Sysprep -factory command.

You can run any application or command shell script accessible on the destination computer or on the network (if you specify a network adapter).

Applications and command shell scripts called in the [OEMRunOnce] section process synchronously. Each application or script runs in the order specified in the [OEMRunOnce] section, and each application or script must finish before the next command runs.

You should verify that all applications and shell command scripts listed in this section run in a fully-automated way. If the application or script stops for user input, or for any other reason requiring user interaction, the process eventually times out and logs an error.

The applications and scripts listed in [OEMRunOnce] process before the applications and scripts listed in the [OemRun] section. The [OEMRun] section processes last.

Syntax
display_text, { command_line | section_name, {APP | INF | MSI} }
[section_name] 
entry1 
entry2 
entry3 . . .
Value Description

display_text

Specifies text to display in the OemRunOnce dialog box when Sysprep -factory processes this section.

command_line

Specifies a command-line command to run synchronously with respect to the other commands listed in the [OEMRunOnce] section.

section_name

Specifies the name to use in the [section_name] heading within the [OEMRunOnce] section.

APP

Indicates that the application or command is not an .inf file or an .msi file (installation package file).

INF

Indicates that the setup application is an .inf file.

MSI

Indicates that the setup application to run is an .msi file.

[section_name]

Contains entries for configuring the preinstallation of applications during Factory mode of Sysprep. Preinstall the applications using the credentials specified in the UserName and Password entries in the [Factory] section of Winbom.ini.

entry

Entries that specify how to process a given application, .msi file, or .inf file.

Example
[OEMRunOnce]
"Connect to shared folder", "net use R: \\server\share"
"First Application Stage", "Application1.Stage", MSI
"Second Application Stage", "Application2.Stage", MSI
"Third Application Stage", "Application3.Stage", MSI

[Application1.Stage]
InstallType = Standard

[Application2.Stage]
InstallType = Attach

[Application3.Stage]
InstallType = Detach
Comments

None.