banner graphic
Reference

Using RunOnce Technology

You can run any program(s) after an .inf file is executed by adding entries to the Runonce registry key. If the .inf file specifies that the computer must be restarted, the Runonce entries are executed after the computer is restarted.

The Runonce registry key enables you to launch programs one time in Windows and to specify whether they should run "silently" (without prompts to the user) or as part of a list of programs or actions that the user sees. The reference to the program is then deleted so that the program will not be run again.

To run programs silently, add description­string=command­line entries under the following registry key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce

To run programs that synchronously run under the Windows Runonce manager, add description-string=command-line entries under the following registry key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce\Setup

The following example shows an AddReg section that causes the following to happen:

Note