Any application(s) can be run after an .INF file is executed by adding entries to the "Runonce" registry key. After the .INF file is executed, if the Runonce registry key has any entries in it, the programs listed in it will be executed. If executing the .INF file necessitates the need for a system reboot, These programs will be run after the system has been rebooted.
The Runonce key allows programs to be launched one time in Windows, ensures either symmetric or asymmetric launching of the programs (either runs silently or displays that program among the list of other items to be run), and then deletes the reference to the program so it will not be run again.
To run programs silently with no additional user interface, add descriptionstring=commandline entries under the following key:
To run programs that synchronously under the Windows 95 Runonce manager, add description-string=command-line entries under the following key:
These programs will be run with the following user interface:
The following example shows an AddReg
section that will cause myapp.exe (located in the Windows directory)
to be launched with no user interface, and will cause test.exe
(located in the System directory) to be launched with the Windows
95 Setup user interface displayed above:
Note that the description-string under the Setup key is used in the user interface.