/build/static/layout/Breadcrumb_cap_w.png

Kernel Driver Services

Hello All,

I am repackaging Nice Screen Agent.
I know this is a kernel drivers .sys files installing to windows folder.This has been captured as registries..

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tb2Device]
"DisplayName"="TB2 Remote Control Driver"
"ErrorControl"=dword:00000000
"Group"="Video"
"ImagePath"=hex(2):4e,65,74,6f,70,69,61,52,43,5c,54,62,32,44,65,76,69,63,65,2e,\
73,79,73,00
"Start"=dword:00000001
"Type"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tb2Device\Enum]
"0"="Root\\LEGACY_TB2DEVICE\\0000"
"Count"=dword:00000001
"NextInstance"=dword:00000001

With the registries MSI installs fine but does not comeup under sysInfo(msinfo32) listing the services.Once i restart the machine this will be fine and my screenagent will be active in the background.

As per the repackaging procedure i had tried installing these services using MSI tables Service install & service control.But i failed and getting the error 1920 that says i don't have rights to install service.

contents of the table service control are-
service control-newevent1
name-tb2device
event-129
agru-
wait-
component-tb2device.sys

serviceisntall-
serviceinstall-newserviceinstall1
name-tb2device
displayname-tb2device
servicetype-32
starttype-2 (also tried SYSTEM)
errorcontrol-1

Am i making mistake in these tables with the above values? Please correct if m wrong...
As far as i know it's a bit "unusual" to repackage Microsoft services that are part of Windows.


My Question is can i leave this with regsitries rebooting my machine or should i solve it using MSI table?

Thanks,
Suma

.

0 Comments   [ + ] Show comments

Answers (6)

Posted by: sk 15 years ago
Senior Yellow Belt
0
I'm not sure about the naming of your service, but you could use sc.exe using custom actions or a vbscript

To create it do (the space after = is crucial)

sc create NameOfYourService binPath= "FullPathToYourSysFile" group= Filter type= kernel start= auto DisplayName= "DisplayNameOfYourService"

with sc start, sc stop, sc delete you could resp start stop and delete it, with sc query NameOfYourService

But I would say, run a command box and type sc for the syntax
Posted by: sumarchana 15 years ago
Orange Senior Belt
0
Can you please tell me what is sc.exe?
Posted by: AngelD 15 years ago
Red Belt
0
Open a DOS prompt and type:
sc.exe /?
Posted by: sumarchana 15 years ago
Orange Senior Belt
0
Yeah thats fine.. I could see it.

MSI table is not allowing me to install because of the settings which i have done it inside the MSI. They are,
Install Start=Yes. If i set this to NO this will allow me to install MSI but the service will not get started and i will endup rebooting the machine which i don't want..

Any suggestions?

Suma
Posted by: AngelD 15 years ago
Red Belt
0
Kernel drivers cannot be handled by the InstallServices action (ServiceInstall table).
You need to populate the registry and then reboot the machine for the service to start.
Posted by: sumarchana 15 years ago
Orange Senior Belt
0
Ok thanks for your information. I assume that i can retains registries to install and control services and have a reboot to start the services.

Thanks Angel ID & SK.

Suma
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ