Sereby Posted December 10, 2005 Posted December 10, 2005 hi boys and girlsi need your help i want to create a new service for an app which is located in the system32 dir. i tested already the following (it would be good if it is via .inf if you found another way clal it me ^^)[Version]Signature=$Windows NT$[Optional Components]Name[Name]OptionDesc ="A"Tip ="B"Modes =0,1,2,3AddReg =Base.AddRegRegisterDlls =Files.RegisterCreateServices =Services.Create[Base.AddReg][Files.Register][Services.Create] "Name","Description","%11%\app.exe",0x10,0x02,"RpcSs"but it dont work.. i get the framedy.dll error on startup^^plz help meSereby
jamesagmoore Posted December 10, 2005 Posted December 10, 2005 A normal windows program just as a single winmain entry point. A service has many more to handle start/stop/pause/restart/system hibernate etc. from the service control manager. You can't just force a windows executable to behave in this way.
Sereby Posted December 10, 2005 Author Posted December 10, 2005 i only want to know how to set aprogram as an service!just say me how to do or impossible and when impossibly why plz ^^
MHz Posted December 11, 2005 Posted December 11, 2005 This is using commandline tools:If the executable was compiled to be used as a service, then you can use SC.exe to create the service.If the executable was not compiled to be used as a service, then you can use Instsrv.exe and Srvany.exe from one the latest Resource Kit Tools from Microsoft, which will create the service as Srvany.exe will act as a kind of wrapper for your executable. More details can be found here.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now