INF Writing Tutorial - 5 - RunOnce (Running Programs)
46
2
0
0
3
ShareFavoritePlaylistsFlag
Kugee
Kugee
Published
You may not know about this program, but if you've ever installed Windows 95, Windows 98, or Windows ME, you've definitely seen it before. It executes some predefined RunOnce entries during Setup, and other programs for both Windows 9x and NT can add their own. You can add some yourself with an INF file, as RUNONCE.EXE simply reads RunOnce and/or RunOnce\Setup entries from the registry and is automatically loaded in the event entries for these keys are present upon executing an INF. RunOnce can be useful for running certain programs in a sequence should that be necessary.

You can even have RunOnce execute other INFs, although I should note from my experience with Windows 95 that it may be unreliable, as it may cause an INF file to reexecute itself over and over again. This can be worked around by creating an MS-DOS batch script that extensively uses START.EXE /W.
Expand