Entries added to the RunOnce registry key run programs after the .inf file executes. If the .inf file specifies that the computer must be restarted, the RunOnce entries execute after the computer restarts.
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 execute programs that run synchronously using RunOnce, add description-string=command-line entries under the following registry key:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce\Setup