Re: ActiveX EXE as a service...
- From: Michael B. Johnson <mjohnson@xxxxxxxxxxx>
- Date: Fri, 27 Jan 2006 10:35:04 -0600
On Fri, 27 Jan 2006 10:06:32 GMT, "Dag Sunde" <me@xxxxxxxxxxxx> wrote:
>As of today, I'm running a VB6 application which also
>exposes a com-interface as a service under Win2000 AS.
>
>I'm using an application called SrvAny to set up and
>run my app as a system service.
>
>I feel rather unconfortable with this solution, as the
>behaviour is sometimes a little unstable.
>
>Sometimes it is impossible to shut it down. And sometimes
>it stops reacting. I've found no pattern to this behaviour.
I've seen services written with NTSvc.ocx, but they also seemed to suffer from
some flakiness. They were /not/ impossible to shut down, but on occasion would
hiccup and need to be "kill.exe" killed. This might have been due to Winsock
issues at the time and a poor, bottlenecked design, though.
<snip />
>The reason for running it as a service, is that it is a server
>application that needs to be restarted after an eventual power-
>failure, even if nobody is there to log in. (The start-folder,
>and the "run" key in registry is only executed when someone
>logs in).
>
>Any thoughts or ideas?
* Does a scheduled task run without the user having to be logged in? Maybe you
could leverage that somehow.
* I've heard of a utility that will run an application on boot - can't remember
where. I wonder if there is some way to use the system.ini like so:
[boot]
shell=Explorer.exe %Windows%\YourApplication.exe
I'm not sure if this applies to XP, but have you looked at the
HKLM\Software\Microsoft\Windows\CurrentVersion\RunServices registry key too? I
believe you can point these keys to .exe files that are not actually services
<<< may be Win '95 specific info. You might be able to wrap the command line
with the RUNAS.EXE application to provide it a security context.
See http://support.microsoft.com/default.aspx?scid=kb;en-us;125714
& http://techrepublic.com.com/5100-10877_11-5604618-2.html for additional ideas
along this theme.
..:.:.:.
I haven't tried this myself, but take a look at
* http://www.freevbcode.com/ShowCode.asp?ID=4317.
* http://www.smsoft.ru/en/ntservice.htm
Here's the search I was using:
http://www.google.com/search?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial_s&hl=en&q=VB6+NT+service&btnG=Google+Search
A commercial solution from Desaware:
http://www.xtras.net/products/ntservicetoolkit/
Hope this sparks some ideas...
_______________________
Michael B. Johnson
.
- Follow-Ups:
- Re: ActiveX EXE as a service...
- From: Dag Sunde
- Re: ActiveX EXE as a service...
- From: Steve Gerrard
- Re: ActiveX EXE as a service...
- From: John Burns
- Re: ActiveX EXE as a service...
- References:
- ActiveX EXE as a service...
- From: Dag Sunde
- ActiveX EXE as a service...
- Prev by Date: Re: ActiveX EXE as a service...
- Next by Date: Re: ipconfig output
- Previous by thread: Re: ActiveX EXE as a service...
- Next by thread: Re: ActiveX EXE as a service...
- Index(es):
Relevant Pages
|