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
.
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)
Please log in to answer
Posted by:
sk
15 years ago
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
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
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
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
Posted by:
sumarchana
15 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.