Re: How to create service for “Win XP Embedded" based device??

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,
Thanks a lot ...
I could run my excutable under "Custom Actions" -> "Install" folder. i just
add my .exe. and after installation, it executed.

-rahul

"voidcoder" wrote:


> 1. Is it necessary to run the service as an executable
> file (can’t I use dll instead)?

Yes, services run as executables. And no, you can't use a
DLL instead. However you can build a dummy wrapper service
which is loading your DLL and passing control to it. or use
more exotic solution with rundll32 (not service) ...


> 2. How can I communicate with my service? I have to pass some
> data from an external application to my service while its running?
> How can I do that?

You are opening the service using OpenService() and
sending control codes to it using ControlService().
There is no standard way to pass data, it is up to
you to implement some sort of IPC communication.
You can use sockets, file mappings, mail slots,
named pipes etc ...


> 3. How can I run a small executable file while running an installation?
> Means, where should I define an executable file in the setup project, so that
> as user runs the setup file, that specified executable will run
> automatically?

You just add a new action in "Custom Action"
editor to one of the steps (eg. "install" step)
and select which executable to run...


4. It is Windows Embedded CE (!= Windows XP Embedded)
newsgroup.


- Oleg


Rahul P. Shukla wrote:
Hi,
I am creating a service for my “Win XP Embedded” based device.
I am using Win32 applications for that (using VS 2005, VC++). I am having
some queries regarding this.

1. Is it necessary to run the service as an executable file (can’t I use dll
instead)?

2. How can I communicate with my service? I have to pass some data from an
external application to my service while its running? How can I do that?

3. How can I run a small executable file while running an installation?
Means, where should I define an executable file in the setup project, so that
as user runs the setup file, that specified executable will run
automatically?

Please let me know, if you know anything about this…
It’s urgent …
Thanks a lot…

.



Relevant Pages

  • Re: How to create service for =?UTF-8?B?4oCcV2luIFhQIEVtYmVkZGVk?= =?UTF-8?B?IiBiYXNlZCBkZXZ
    ... Yes, services run as executables. ... DLL instead. ... How can I run a small executable file while running an installation? ... Means, where should I define an executable file in the setup project, so that as user runs the setup file, that specified executable will run automatically? ...
    (microsoft.public.windowsce.embedded)
  • Re: Has anyone run into executable file tnnfsysguard?
    ... like malware or a virus but it could also be part of your virus scanner. ... Google has a history of installing executable files into ... process and instead dump their executables under %userprofile%. ... etc) does NOT have to be an admin-level user to do the installation. ...
    (microsoft.public.windowsxp.general)
  • Re: file permission problem - 10g client on solaris
    ... installation, to my surprise all directories and files under ... you've no business using SQL*Plus on the server. ... Puget Sound Oracle Users Groupwww.psoug.org ... be directly accessing executables on the server unless the object is to ...
    (comp.databases.oracle.server)
  • Re: REFRESH: EUDORA MAIL 5.1.1
    ... > Trivial silent delivery and installation of an executable on a target ... > 'allow executables in HTML content' DISABLED ... A Eudora expert I am not, but I suppose one could also change ... New folder must exist before running eudora again. ...
    (Vuln-Dev)
  • Re: Installation of software, and security. . .
    ... > executables can have odd logic that obfuscates things from heuristics ... installation process can do and, in turn, what the installed software is ... SELinux, for example, has a security policy for the rpm package ... system) constrain what that package is permitted to do. ...
    (Bugtraq)