Jump to content
Sign in to follow this  

Service will not start with srvany.exe

Recommended Posts

Heres my current situation:

$service=Msgbox(4,"EServer v1.0","Install as a registry key? Clicking ""No"" will install as a Service.")

if $service =6 then
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run","EServerv1","REG_SZ",@HomeDrive&"\Program Files\Ethernet\EServer\EServer.exe")
$var = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run","EServerv1")
If not $var = @HomeDrive&"\Program Files\Ethernet\EServer\EServer.exe" then
    msgbox(0,"Error","Error adding registry key: "&$var)
;it worked
if $service =7 then

$servicename = "EServer"
$nRet=_CreateService("", $servicename, "Ethernet Server v1.0", @HomeDrive&"\Program Files\Ethernet\EServer\srvany.exe", "LocalSystem", "", 0x110)
RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\" & $servicename & "\Parameters", "Application", "REG_SZ", @HomeDrive&"\Program Files\Ethernet\EServer\EServer.exe")

If $nRet Then
      MsgBox(4096,'debug:' , 'EServer service created') ;### Debug MSGBOX
      If _StartService("", "EServer") Then
         MsgBox(4096,'debug:' , 'EServer service started') ;### Debug MSGBOX
      MsgBox(4096,'debug:' , 'Failed to create EServer service: ' & @error) ;### Debug MSGBOX

It gives up, why!?

It doesn't even give me an error, it just terminates itself

Edited by BackStabbed

tolle indicium

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.

  • Create New...