Help - Search - Members - Calendar
Full Version: Driver Installations And Run / Runonce Execution
The CD Forum > Bart's PE Builder > General
aec
@All

I noticed that in the process of some driver detection/installation some
entries are put in Run and RunOnce registry keys in HKCU and HKLM.
These instructions are actually never executed in non explorer shells.
They even fail to start in explorer shells if one tries to install the drivers
after the shell has started.
This is the case for example for audio drivers where typically
after pnp-detection we find in registry the following entries in RunOnce key.

CODE
rundll32.exe streamci,StreamingDeviceSetup {97ebaacc-95bd-11d0-a3ea-00a0c9223196},{53172480-4791-11D0-A5D6-28DB04C10000},{53172480-4791-11D0-A5D6-28DB04C10000}
rundll32.exe streamci,StreamingDeviceSetup {DDF4358E-BB2C-11D0-A42F-00A0C9223196},{97EBAACB-95BD-11D0-A3EA-00A0C9223196},{97EBAACB-95BD-11D0-A3EA-00A0C9223196}
rundll32.exe streamci,StreamingDeviceSetup {96E080C7-143C-11D1-B40F-00A0C9223196},{3C0D501A-140B-11D1-B40F-00A0C9223196},{3C0D501A-140B-11D1-B40F-00A0C9223196}
rundll32.exe streamci.dll,StreamingDeviceSetup {A7C7A5B0-5AF3-11D1-9CED-00A024BF0407},{9B365890-165F-11D0-A195-0020AFD156E4},{A7C7A5B1-5AF3-11D1-9CED-00A024BF0407},%SystemRoot%\INF\WDMAUDIO.inf,WDM_SYSAUDIO.Interface.Install
rundll32.exe streamci,StreamingDeviceSetup {EEC12DB6-AD9C-4168-8658-B03DAEF417FE},{ABD61E00-9350-47e2-A632-4438B90C6641},{6994AD04-93EF-11D0-A3CC-00A0C9223196},%SystemRoot%\INF\WDMAUDIO.inf,WDM_DRMKAUD.Interface.Install
rundll32.exe streamci,StreamingDeviceSetup {EEC12DB6-AD9C-4168-8658-B03DAEF417FE},{ABD61E00-9350-47e2-A632-4438B90C6641},{2EB07EA0-7E70-11D0-A5D6-28DB04C10000},%SystemRoot%\INF\WDMAUDIO.inf,WDM_DRMKAUD.Interface.Install
rundll32.exe streamci,StreamingDeviceSetup {EEC12DB6-AD9C-4168-8658-B03DAEF417FE},{ABD61E00-9350-47e2-A632-4438B90C6641},{FFBB6E3F-CCFE-4D84-90D9-421418B03A8E},%SystemRoot%\INF\WDMAUDIO.inf,WDM_DRMKAUD.Interface.Install
rundll32.exe streamci.dll,StreamingDeviceSetup {B7EAFDC0-A680-11D0-96D8-00AA0051E51D},{9B365890-165F-11D0-A195-0020AFD156E4},{AD809C00-7B88-11D0-A5D6-28DB04C10000},%SystemRoot%\INF\WDMAUDIO.inf,WDM_KMIXER.Interface.Install
rundll32.exe streamci.dll,StreamingDeviceSetup {B7EAFDC0-A680-11D0-96D8-00AA0051E51D},{9B365890-165F-11D0-A195-0020AFD156E4},{6994AD04-93EF-11D0-A3CC-00A0C9223196},%SystemRoot%\INF\WDMAUDIO.inf,WDM_KMIXER.Interface.Install
rundll32.exe streamci.dll,StreamingDeviceSetup {4245FF73-1DB4-11d2-86E4-98AE20524153},{9B365890-165F-11D0-A195-0020AFD156E4},{2EB07EA0-7E70-11D0-A5D6-28DB04C10000},%SystemRoot%\INF\WDMAUDIO.inf,WDM_AEC.Interface.Install
rundll32.exe streamci.dll,StreamingDeviceSetup {4245FF73-1DB4-11d2-86E4-98AE20524153},{9B365890-165F-11D0-A195-0020AFD156E4},{6994AD04-93EF-11D0-A3CC-00A0C9223196},%SystemRoot%\INF\WDMAUDIO.inf,WDM_AEC.Interface.Install
rundll32.exe streamci.dll,StreamingDeviceSetup {4245FF73-1DB4-11d2-86E4-98AE20524153},{9B365890-165F-11D0-A195-0020AFD156E4},{BF963D80-C559-11D0-8A2B-00A0C9255AC1},%SystemRoot%\INF\WDMAUDIO.inf,WDM_AEC.Interface.Install
rundll32.exe streamci.dll,StreamingDeviceSetup {6C1B9F60-C0A9-11D0-96D8-00AA0051E51D},{9B365890-165F-11D0-A195-0020AFD156E4},{2EB07EA0-7E70-11D0-A5D6-28DB04C10000},%SystemRoot%\INF\WDMAUDIO.inf,WDM_SWMIDI.Interface.Install
rundll32.exe streamci.dll,StreamingDeviceSetup {6C1B9F60-C0A9-11D0-96D8-00AA0051E51D},{9B365890-165F-11D0-A195-0020AFD156E4},{DFF220F3-F70F-11D0-B917-00A0C9223196},%SystemRoot%\INF\WDMAUDIO.inf,WDM_SWMIDI.Interface.Install
rundll32.exe streamci.dll,StreamingDeviceSetup {6C1B9F60-C0A9-11D0-96D8-00AA0051E51D},{9B365890-165F-11D0-A195-0020AFD156E4},{6994AD04-93EF-11D0-A3CC-00A0C9223196},%SystemRoot%\INF\WDMAUDIO.inf,WDM_SWMIDI.Interface.Install
rundll32.exe streamci.dll,StreamingDeviceSetup {8C07DD50-7A8D-11d2-8F8C-00C04FBF8FEF},dmusic,{2EB07EA0-7E70-11D0-A5D6-28DB04C10000},%SystemRoot%\INF\WDMAUDIO.inf,WDM_DMUSIC.Interface.Install
rundll32.exe streamci.dll,StreamingDeviceSetup {8C07DD50-7A8D-11d2-8F8C-00C04FBF8FEF},dmusic,{DFF220F3-F70F-11D0-B917-00A0C9223196},%SystemRoot%\INF\WDMAUDIO.inf,WDM_DMUSIC.Interface.Install
rundll32.exe streamci.dll,StreamingDeviceSetup {8C07DD50-7A8D-11d2-8F8C-00C04FBF8FEF},dmusic,{6994AD04-93EF-11D0-A3CC-00A0C9223196},%SystemRoot%\INF\WDMAUDIO.inf,WDM_DMUSIC.Interface.Install
rundll32.exe streamci.dll,StreamingDeviceSetup {CD171DE3-69E5-11D2-B56D-0000F8754380},{9B365890-165F-11D0-A195-0020AFD156E4},{3E227E76-690D-11D2-8161-0000F8775BF1},%SystemRoot%\INF\WDMAUDIO.inf,WDM_WDMAUD.Interface.Install
rundll32.exe streamci.dll,StreamingDeviceSetup {2F412AB5-ED3A-4590-AB24-B0CE2AA77D3C},{9B365890-165F-11D0-A195-0020AFD156E4},{9EA331FA-B91B-45F8-9285-BD2BC77AFCDE},%SystemRoot%\INF\WDMAUDIO.inf,WDM_SPLITTER.Interface.Install
rundll32.exe streamci.dll,StreamingDeviceSetup {2F412AB5-ED3A-4590-AB24-B0CE2AA77D3C},{9B365890-165F-11D0-A195-0020AFD156E4},{6994AD04-93EF-11D0-A3CC-00A0C9223196},%SystemRoot%\INF\WDMAUDIO.inf,WDM_SPLITTER.Interface.Install



So, I think it is important to have a tool to just launch these Run and RunOnce commands.
This will make life easier in making some devices work in enviroments with non-explorer shells.

So, anyone that would like to create such a utility is welcome.
paraglider
You should be able to use xpeinit with the appropriate switches:

xpeinit -r
aec
@paraglider

QUOTE
You should be able to use xpeinit with the appropriate switches:
xpeinit -r

I thought xpeinit was handling only the RunOnceEx entries.
Thanks, I'll check it.
aec
@paraglider

QUOTE
You should be able to use xpeinit with the appropriate switches:
xpeinit -r


Unfortunatelly, xpeinit -r executes only the RunOnceEx entries.
So RunOnce and Run entries which are executed when explorer starts, need special treatment for non explorer shells.
Also I think that such entries are also important for explorer shells since they can be found in registry with a delayed pnp-device detection (after explorer starts) . In such a case they should be looked for and executed, since in a PE enviroment we cannot simply wait for the next reboot.

Concluding, I think it is useful to have this extra RunOnce execution functionality implemented in pnp utilities (HwPnp, ....)

regards
verbalshadow
LiteStep 0.24.7 RC3 does. as do earlier version. supports both run and runonce keys . just so you know
look here
LiteStep
and here
LSDev

from the v0.24.6 change log
- Fixed [litestep / Headius / 2001-02-21]
- Run, RunOnce, and Startup items were being run in the wrong order

and from LiteStep 0.24.7 Release Candidate 2 - Changelog
- Miscellaneous StartupRunner fixes and additions. Now has RunOnceEx support.
sherpya
there is an exe in windows called runonce.exe
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.