redfive19 Posted February 27, 2006 Posted February 27, 2006 What are the differences between Run, RunOnce and RunOnceEx?I've got no clue!!! Anyone know?Thanks!-redfive
jondercik Posted February 27, 2006 Posted February 27, 2006 Run runs the command every time a user logs in.RunOnce clears the registry key as soon as the command is run.RunOnceEx clears the registry key on completion of the command.Jim
exrcizn Posted February 27, 2006 Posted February 27, 2006 Here's Microsoft's answer which makes sense and is info I can use:The Run key is processed after every logon, either by the Explorer shell, if it is present, or by First Boot Agent (FBA), if a custom shell, Command shell, or Task Manager shell is used. If FBA processes this key, it does so after every logon, not during first boot as it normally would. Typically, this flag is used to load Systray applications, launch services in executables, hide autostart applications, or hide background processes. 1: RunOnce. Default. The RunOnce key is processed only once, by FBA, after Plug and Play device enumeration and DLL registration processing have completed. The values of this registry key are deleted from the registry after it is processed, so that it will not run again. Typically, this flag is used when a reboot is required, such as for a DLL or OCX registration, or for cleaning up a setup or an uninstall. 2: RunOnceEx. The RunOnceEx key is processed only once, by the Explorer shell, after the first logon. The values of this registry key are deleted from the registry after it is processed, so that it will not run again. If the Explorer shell is not present, this key is ignored. Typically, this flag is used for a process that runs only once, and that either cannot be run correctly by FBA or requires the system to be fully operational.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now