473,387 Members | 1,619 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,387 software developers and data experts.

Service application

Hi, everybody

I've got a couple of questions, one appears an easy one and another
looked to me more difficult. So, I wrote in C# very simple service
and the only thing this service does - it's starting some exe. Now,
the simple question is how I can access and modify such things like
version, file description ... of my service exe. If I go to Resource
Tab, which is completely empty, whenever I "right-button click" -
nothing. I'm very new to C#, so probably it's simple?

And the second question - if I'm starting my exe normally, I mean as
a currently logged to the machine user, obviously I can use any pop up
windows, messages. But if my service starting the same exe, its
execution stops at the very first some message pops up. So this is
essential property of the process if not the user but System starts
it, i.e. any GUI call will stop execution?

Thanks,
Alex

Oct 19 '07 #1
2 1269
1) If your Service exe project has an AssemblyInfo.cs file, you should be
able to enter all the version etc. attributes you need.
2) Windows Services are designed to start running before any human has
actually logged on to the computer. Consequently, if their is any UI involved
you run the risk of your app hanging as there is nobody logged on to dismiss
a MessageBox or press a button. If you need a UI, make it separate from your
service and have it communicate with a WCF Host in the service.
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"Alex" wrote:
Hi, everybody

I've got a couple of questions, one appears an easy one and another
looked to me more difficult. So, I wrote in C# very simple service
and the only thing this service does - it's starting some exe. Now,
the simple question is how I can access and modify such things like
version, file description ... of my service exe. If I go to Resource
Tab, which is completely empty, whenever I "right-button click" -
nothing. I'm very new to C#, so probably it's simple?

And the second question - if I'm starting my exe normally, I mean as
a currently logged to the machine user, obviously I can use any pop up
windows, messages. But if my service starting the same exe, its
execution stops at the very first some message pops up. So this is
essential property of the process if not the user but System starts
it, i.e. any GUI call will stop execution?

Thanks,
Alex

Oct 19 '07 #2
Thank you, Peter, very much for your answers.

I've suspected the same for second question, it was just very nice to
get some confirmation from MVP. The first one was easy one indeed,

Thanks again,
Alex

Oct 19 '07 #3

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

Similar topics

15
by: Chakkaradeep | last post by:
Hi all, i have written a Service,now i want to execute another application (for eg;calc.exe) in the service....how will i perform it??... i tried using this.... /**************Executing a...
9
by: SP | last post by:
Hi All, I wrote a windows service which is supposed to stop after specified amount of time. I am calling OnStop() after specified time. OnStop() methods executed but I dont see the service...
3
by: Jeremy S. | last post by:
On my dev machine (XP/Pro with VS.NET 2003) I have been developing a Windows Service and installing it on the local machine by opening the Visual Studio Command Prompt and then executing . Now I...
2
by: Randall Powell | last post by:
I am in the process of developing a Windows Service which will: (1) monitor multiple network shares; (2) marshal text file transfers into an SQL Server 2000 instance; and (3) provide messaging...
3
by: =?Utf-8?B?RGFuZGFuIFpoYW5n?= | last post by:
Now I have a web application, a web service and a SQL Server database. The Web application will invoke the web service, the web service invokes the SQL Server stored procedure. I let the web...
6
by: Joseph Geretz | last post by:
I have the following class which I am serializing and passing back and forth between my Web Service application and the client. public class Token : SoapHeader { public string SID; public...
3
dmjpro
by: dmjpro | last post by:
plz send me a good link which can clearify me how the J2EE framework works i want the details information .... plz help thanx
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...
0
by: =?Utf-8?B?U2ltb25EZXY=?= | last post by:
Hi All I would like to install the same Windows Service project on the same server under different names, one for each customer. I have been able to do it but I would like an expert opinion as...
22
by: robertgregson | last post by:
Using C#, .NET3.5, Visual Studio 2008 and WCF on Windows VISTA SP1, I have written a service, service host (as a C# console application) and a client. The service uses...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.