Jump to content

Recommended Posts

Posted

hi boys and girls

i 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,3
AddReg =Base.AddReg
RegisterDlls =Files.Register
CreateServices =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 me

Sereby


Posted

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.

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...