473,396 Members | 1,826 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Windows service start windows application

My environment...
VS .NET 2003
One solution
3 Project (1 Windows service - 1 Windows application - 1 Installshield basic
msi)

I know that there's not possible create a service with gui. In effect i must
was to be create a 2 different project

How to interact the service with the application?

Or better when the service start how to launch the other application
(project)? In conseguenz

Nov 21 '05 #1
4 2483
I dont think you can do that. Even if you lauch the EXE, the UI(even with
interact with desktop on) will not be visible as most probably the Service is
loaded even before you log in.

If you run the exe seperately, you can communicate with the service via
named pipes or sockets etc.

--
Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com
"Pippo" wrote:
My environment...
VS .NET 2003
One solution
3 Project (1 Windows service - 1 Windows application - 1 Installshield basic
msi)

I know that there's not possible create a service with gui. In effect i must
was to be create a 2 different project

How to interact the service with the application?

Or better when the service start how to launch the other application
(project)? In conseguenz

Nov 21 '05 #2
Soory for my eenglish but you don't understand...

The service onstart must to be launch the application. In pratically one exe
service that launch one exe application. But i don't know how.... you say me
or name pipes or socket ... Are you sure ther's not other method like
shell('exe application')???

"Anand[MVP]" wrote:
I dont think you can do that. Even if you lauch the EXE, the UI(even with
interact with desktop on) will not be visible as most probably the Service is
loaded even before you log in.

If you run the exe seperately, you can communicate with the service via
named pipes or sockets etc.

--
Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com
"Pippo" wrote:
My environment...
VS .NET 2003
One solution
3 Project (1 Windows service - 1 Windows application - 1 Installshield basic
msi)

I know that there's not possible create a service with gui. In effect i must
was to be create a 2 different project

How to interact the service with the application?

Or better when the service start how to launch the other application
(project)? In conseguenz

Nov 21 '05 #3
you can configure the service to start manually (via the StartType
property) and then start it from either Services in Administrative
tools or from a custom application that you write. you can pass
arguments to the OnStart method...

as for a "Shell" command approach "NO" -- a service is controlled by
the SCM and in order for it to work properly you must interact with it
through either the Service Control Manager or through the appropriate
..NET classes

Nov 21 '05 #4
I understood your need, but AFAIK, it is not possible to lauch a UI from a
service. A shell() will work without any errors and your exe will run, but
the GUI will not appear as the exe will be running the Services context and
not in the Desktop context.

--
Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com
"Pippo" wrote:
Soory for my eenglish but you don't understand...

The service onstart must to be launch the application. In pratically one exe
service that launch one exe application. But i don't know how.... you say me
or name pipes or socket ... Are you sure ther's not other method like
shell('exe application')???

"Anand[MVP]" wrote:
I dont think you can do that. Even if you lauch the EXE, the UI(even with
interact with desktop on) will not be visible as most probably the Service is
loaded even before you log in.

If you run the exe seperately, you can communicate with the service via
named pipes or sockets etc.

--
Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com
"Pippo" wrote:
My environment...
VS .NET 2003
One solution
3 Project (1 Windows service - 1 Windows application - 1 Installshield basic
msi)

I know that there's not possible create a service with gui. In effect i must
was to be create a 2 different project

How to interact the service with the application?

Or better when the service start how to launch the other application
(project)? In conseguenz

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Michael | last post by:
Hi, I have a windows service developed using c# and it needs to lunch another windows application. I have been trying to use Process class to do it but the problem is becase windows service...
2
by: Jesper Stocholm | last post by:
I have created a simple service which just copies a fil to a new file with a new name on certain intervals (the service implements a timer). I have no problems installing the service and the...
7
by: Mullin Yu | last post by:
if i put the same code at the windows application or console, i can logon to the computer. but, if i put the same code at the windows service and start it, i still can't logon to the machine. ...
2
by: Mark | last post by:
I created an extremely simple windows service that only writes to the EventLogs on Stop and Pause. I installed it using the InstallUtil.exe program, the output of which is below. It appears to be...
5
by: pberna | last post by:
Dear all, I built a Web Form application to start and stop a Windows Service remotely. I successful tested the application on Windows 2000 server + IIS. I must include the ASPNET user to the...
2
by: deko | last post by:
When to use a privileged user thread rather than a windows service? That's the question raised in a previous post . It was suggested that if the service needs to interact with a WinForms app...
7
by: Ahmed Perlom | last post by:
Hi all, I am trying to start a windows application that has a GUI from a Windows service written in .NET 2.0. I have been searching on this for few days now with no avail. When using the...
4
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
5
by: sonali_reddy123 | last post by:
Hello all, I am trying to develop an application which will run as a windows service. The application should have Normal options available with service like start, stop and pause but along...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.