IPB

Welcome Guest ( Log In | Register )

Recommended
BootDisk.com

Active Users

 
Reply to this topicStart new topic
How to start a service/driver,, when it is handregistered after boot?
MedEvil
post Sep 5 2008, 05:07 PM
Post #1


Advanced Member
***

Group: .script developer
Posts: 2,545
Thank(s): 27
Joined: 29-December 06
Member No.: 2,192



I have the strange problem, that i can't start a driver when i write the registry settings after the PE has already booted up. Yet i can start it, when i write the registry entries 'before' PE boots.

Do i have to flush some cache, trigger some refresh ... ?

(IMG:../forums/style_emoticons/default/cheers.gif)

(This writing of registry entries is in form of a reg file, not a inf!)
Go to the top of the page
 
+Quote Post
ctmag
post Sep 5 2008, 05:43 PM
Post #2


Advanced Member
***

Group: .script developer
Posts: 362
Thank(s): 14
Joined: 19-May 08
Member No.: 15,320


Germany


Hmm, can you give us the reg and/or script contents?

can you try to install the service by the ms utils from the resourcekit (intsrv) instead by registry key?

(BTW: removed double post)
Go to the top of the page
 
+Quote Post
MedEvil
post Sep 5 2008, 06:23 PM
Post #3


Advanced Member
***

Group: .script developer
Posts: 2,545
Thank(s): 27
Joined: 29-December 06
Member No.: 2,192



I did for a test the following:
- copied all the required files to the right spots
- made ISO of PE
- after boot merged the reg file that contains all the necessary registry entries
- typed at the prompt - net start 'driver'
- response: driver name unknown

- copied all the required files to the right spots
- merged the reg file that contains all the necessary registry entries
- made ISO of PE
- typed at the prompt - net start 'driver'
- response: everything fine

So it's clearly not a driver or script or registry problem.
It seems that windows reads at some point during startup the list of available services/drivers from the registry and what does not exist at that point is unknown and stays unkown. (IMG:../forums/style_emoticons/default/mad.gif)

(IMG:../forums/style_emoticons/default/cheers.gif)
Go to the top of the page
 
+Quote Post
jaclaz
post Sep 5 2008, 09:20 PM
Post #4


Finder
***

Group: Advanced user
Posts: 3,001
Thank(s): 120
Joined: 14-July 06
Member No.: 2


Italy


Are you using CurrentControlSet or ControlSet001?

Does using SC make a difference?

It may also depend on the particular service or on the particular section of the Registry/Group amd/or on some service dependencies.

If you do not violate any law or trade secret, can you post the name of the service and the settings you are using?

Am I correct to take the info given here as already known and tested?
http://www.microsoft.com/whdc/system/pnppw.../no_reboot.mspx
and this older but maybe still valid one:
http://support.microsoft.com/kb/137890/en-us


jaclaz
Go to the top of the page
 
+Quote Post
MedEvil
post Sep 5 2008, 10:20 PM
Post #5


Advanced Member
***

Group: .script developer
Posts: 2,545
Thank(s): 27
Joined: 29-December 06
Member No.: 2,192



QUOTE (jaclaz @ Sep 5 2008, 11:20 PM) *
Are you using CurrentControlSet or ControlSet001?

- CurrentControlSet when i register in the running system
- ControlSet001 when i preregister

QUOTE (jaclaz @ Sep 5 2008, 11:20 PM) *
Does using SC make a difference?

Did not yet try, as i don't see why it should. But you're right, no reason to get sloppy! (IMG:../forums/style_emoticons/default/wink.gif)

QUOTE (jaclaz @ Sep 5 2008, 11:20 PM) *
It may also depend on the particular service or on the particular section of the Registry/Group amd/or on some service dependencies.

The driver depends on 1 other service which gets set up the same way as the main driver.

QUOTE (jaclaz @ Sep 5 2008, 11:20 PM) *
If you do not violate any law or trade secret, can you post the name of the service and the settings you are using?

No secret. I used for the tests FBWF which depends on Fltmgr.
The settings are the ones from the script/plugin.
I can post them too if you like, but i'm confident that they're not the problem.

QUOTE (jaclaz @ Sep 5 2008, 11:20 PM) *
Am I correct to take the info given here as already known and tested?
http://www.microsoft.com/whdc/system/pnppw.../no_reboot.mspx
and this older but maybe still valid one:
http://support.microsoft.com/kb/137890/en-us

The first is of little help unless i want to write a own program, which i don't at this moment. (IMG:../forums/style_emoticons/default/wink.gif) Instrsrv.exe might be useful, if i can register a service with the same name to which that already exists in the registry without deleting all it's settings. Thus giving me the needed initiation/refresh.

Will check and post back. (IMG:../forums/style_emoticons/default/cheers.gif)
Go to the top of the page
 
+Quote Post
jaclaz
post Sep 5 2008, 11:00 PM
Post #6


Finder
***

Group: Advanced user
Posts: 3,001
Thank(s): 120
Joined: 14-July 06
Member No.: 2


Italy


QUOTE (MedEvil @ Sep 6 2008, 12:20 AM) *
- CurrentControlSet when i register in the running system
- ControlSet001 when i preregister

Why not using in both cases ControlSet001?
I don't think it will make a difference, but why bothering having two different .reg files?

QUOTE (MedEvil @ Sep 6 2008, 12:20 AM) *
The driver depends on 1 other service which gets set up the same way as the main driver.


No secret. I used for the tests FBWF which depends on Fltmgr.
The settings are the ones from the script/plugin.
I can post them too if you like, but i'm confident that they're not the problem.

I wasn't suspecting that your settings are involved, I was wondering whether some particular groups, for example "Boot Bus Extender" actually had a different way of "refreshing". (IMG:../forums/style_emoticons/default/unsure.gif)

(IMG:../forums/style_emoticons/default/cheers.gif)

jaclaz
Go to the top of the page
 
+Quote Post
MedEvil
post Sep 6 2008, 10:34 PM
Post #7


Advanced Member
***

Group: .script developer
Posts: 2,545
Thank(s): 27
Joined: 29-December 06
Member No.: 2,192



QUOTE (jaclaz @ Sep 6 2008, 12:00 AM) *
Why not using in both cases ControlSet001?
I don't think it will make a difference, but why bothering having two different .reg files?

Because the default setup of the reg files was CurrentControlSet as i use them together with a installer for systems i want to protect.

Besides that no news on the topic. (IMG:../forums/style_emoticons/default/cheers.gif)
Go to the top of the page
 
+Quote Post
jaclaz
post Sep 8 2008, 10:53 AM
Post #8


Finder
***

Group: Advanced user
Posts: 3,001
Thank(s): 120
Joined: 14-July 06
Member No.: 2


Italy


Would these help? (IMG:../forums/style_emoticons/default/unsure.gif)
http://www.bbdsoft.com/utils.html
QUOTE
Download LoadDrv (zip, 19KB) - a simple command line utility to install and load into memory kernel mode device driver.

Download UnlDrv (zip, 16KB) - a simple command line utility to unload from memory and uninstall kernel mode device driver.


http://www.codeproject.com/KB/system/DevMgr.aspx
QUOTE
This article demonstrates a simple enumeration device and a dynamic, driver load/unload facility. I tried to prepare four very simple functionality for everyone's use.


Since they come with source code, maybe you can write your own thingy, "inspired" by them.

One more:
http://www.codeproject.com/KB/system/tdriver.aspx

jaclaz
Go to the top of the page
 
+Quote Post
sanbarrow
post Sep 8 2008, 06:15 PM
Post #9


Advanced Member
***

Group: Developer
Posts: 289
Thank(s): 11
Joined: 13-October 06
From: Germany - Sauerland
Member No.: 755



I load kernel drivers like this (assuming PE is already running)

drv_ctl --inst-nostart <drivername> <driverpath>
then I patch registry for currentcontrolset and make sure I do NOT overwrite driverpath in registry
then I run
net start <drivername>

Works pretty well - I use it for example to load VMware workstation or VirtualBox without adding any registry stuff at build-time.
It is essential to make sure your registry patches do not overwrite ImagePath for the driver in registry.
Go to the top of the page
 
+Quote Post
« Next Oldest · Suggestions and Requests · Next Newest »
 

Fast ReplyReply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 

Display Mode: Standard · Switch to: Linear+ · Switch to: Outline

Track this topic · Email this topic · Print this topic · Subscribe to this forum

RSS Lo-Fi Version Time is now: 12th October 2008 - 08:55 AM

W3C XHTML • © 2008 Boot Land • All rights reserved • W3C CSS