Article ID: 310593 - Last Review: April 14, 2010 - Revision: 2.0 Description of the RunOnceEx Registry Key
This article was previously published under Q310593 On This PageSUMMARY
This article describes the functionality of the RunOnceEx registry key.
MORE INFORMATIONImportant This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base: 322756
(http://support.microsoft.com/kb/322756/
)
How to back up and restore the registry in Windows RunOnceEx has the following features:
32-bit systems: -------------------- C:\Windows\System32\runonce.exe Windows Vista and higher: C:\Windows\System32\en-US\runonce.exe.mui 64-bit systems: -------------------- 64-bit processes: C:\Windows\System32\runonce.exe Windows Vista and higher: C:\Windows\System32\en-US\runonce.exe.mui 32-bit processes: C:\Windows\SysWOW64\runonce.exe Windows Vista and higher: C:\Windows\SysWOW64\en-US\runonce.exe.mui In Windows 2000, Windows XP and Windows Server 2003, the RunOnceEx registry key exists by default: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx In Windows Vista, Windows Server 2008, Windows 7 and Windows Server 2008 R2. the RunOnceEx registry key does not exist by default: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx key RunOnceEx Sample to Run NotepadHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExTitle = "My Setup Title" Flags = dword:00000002 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\0001 RunMyApp = "||notepad.exe" Sample SyntaxHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExFlags = dword:00000000 Title = "Status Dialog Box Title" HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\Depend 0001 = " xxx 1" 000 X = " xxxx " HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\0001 Entry1 = "MyApp1.exe" Entry X = "MyApp2.exe" HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\000 x Notes
Definition of Values and SubkeysFlags is a DWORD value located in the RunOnceEx key to enable/disable the following settings.Collapse this table
The values are cumulative. If you want "No Status Dialog" and "Create Error Log File," set Flags to hexadecimal 90 (80 + 10). Title is a STRING value that you can use to fill in the Status dialog box title. The HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\Depend registry key contains the .dll files and the .ocx files that should be kept loaded in the memory while all sections of RunOnceEx are running. The HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\000X registry keys contain entries to be run. These sections are run in alphabetical order. Therefore, the ...\RunOnceEx\0001 section is processed before the ...\RunOnceEx\0002 section. The string values within a ...RunOnceEx\000 x section contain the commands that should be run for the section. The format is:
"
DllFileName
|
FunctionName
|
CommandLineArguements
"
For example:
-or- "|| command parameters "
"Line1" = "||my.exe -quiet -url http://www.microsoft.com/"
Line1 runs the "my.exe -quiet -url http://www.microsoft.com/" command line. Line2 runs the DllRegisterServer function in Shdocvw.dll.
"Line2" = "shdocvw.dll|DllRegisterServer" The HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\000 x \Depend registry key contains the .dll files and the .ocx files that should be kept in memory while section 000 x is running. For more information, click the following article number to view the article in the Microsoft Knowledge Base: 232487
(http://support.microsoft.com/kb/232487/
)
Description of the RunOnceEx Registry Key
232509
(http://support.microsoft.com/kb/232509/
)
Syntax for the RunOnceEx Registry Key
For more information about the RunOnce Request, visit the following Microsoft Web site: http://msdn.microsoft.com/en-us/library/ms940034(WinEmbedded.5).aspx
(http://msdn.microsoft.com/en-us/library/ms940034(WinEmbedded.5).aspx)
For more information about, visit the following Microsoft Web site: A Deep Dive into First Boot Agent (Standard 2009)http://msdn.microsoft.com/en-us/library/dd450713.aspx
(http://msdn.microsoft.com/en-us/library/dd450713.aspx)
APPLIES TO
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
