Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 



Sign in to follow this  
Sereby

Create a new Service

Recommended Posts

Sereby    0

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
MHz    11

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.

Share this post


Link to post
Share on other sites

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

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×