473,809 Members | 2,731 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Auto Start windows Application

Hi All
I have a windows application that needs to run
24/7 in the SysTray

How to Start this on Start up When ever the machine is re-started etc

I also need to run as a Different User that has
Rights to do FileSystem and other work on this
Server

Thanks
DaveL
Aug 29 '08 #1
3 5799
On Aug 29, 9:47 am, "DaveL" <dvs_...@sbcglo bal.netwrote:
Hi All
I have a windows application that needs to run
24/7 in the SysTray

How to Start this on Start up When ever the machine is re-started etc

I also need to run as a Different User that has
Rights to do FileSystem and other work on this
Server

Thanks
DaveL

Dave,

One approach would be create two applications: a Windows service and a
WinForms application for the system tray. The Installer can setup the
Windows service to run under a privileged account not effected the the
current logged in user. The system tray application can provide the
user interface and communicate/interchange data with the Windows
service through .NET remoting or WCF depending on what version of .NET
you're using requirements call for on the target systems.

Reference:
[Building a system tray app in C#]
http://www.developer.com/net/csharp/article.php/3336751

[Creating a Windows Service in C#]
http://www.codeproject.com/KB/system...wsService.aspx

[From .NET Remoting to WCF]
http://msdn.microsoft.com/en-us/libr...57(VS.80).aspx
Aug 29 '08 #2
"DaveL" <dv*****@sbcglo bal.netwrote in message
news:wV******** **********@nlpi 065.nbdc.sbc.co m...
I have a windows application that needs to run
24/7 in the SysTray

How to Start this on Start up When ever the machine is re-started etc

I also need to run as a Different User that has
Rights to do FileSystem and other work on this
Server
The SysTray only exists when a user is logged on to the computer, so this
is not the right place to run the application itself.

Instead, split the appliction in two:
- One part to do the actual work that needs to be performed 24x7. Build
ths application as a Windows Service. Configure the Installer to install
this service with the correct user settings, and to startup automatically.
If the user needs to be modified after the application is installed, an
Administrator can change it from Control Panel -Administrative Tools ->
Services.
- Another part to allow user interaction with the service. This can be
built as a Windows Application that uses NotifyIcon to display itself in the
System Tray. It can communicate with the service through any adequate
interprocess communication method, such as Remoting. Install this
application into the Start folder, so it will run as soon as a user logs in.

Aug 29 '08 #3
Thank you for your responses
DaveL

"DaveL" <dv*****@sbcglo bal.netwrote in message
news:wV******** **********@nlpi 065.nbdc.sbc.co m...
Hi All
I have a windows application that needs to run
24/7 in the SysTray

How to Start this on Start up When ever the machine is re-started etc

I also need to run as a Different User that has
Rights to do FileSystem and other work on this
Server

Thanks
DaveL


Aug 29 '08 #4

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

Similar topics

9
3272
by: Dayne | last post by:
I need to have a auto timeout feature for a webform application(vb.net). Basically, I want to close the application if the user does not have a keyboard or mouse input after a specific period of time. Please help! Dayne
19
398
by: Thom Little | last post by:
I developed a C# application and a windows installer application that properly installs the C# application on a new machine. After the C# application is installed I would like to automatically start it on the User's machine. - How do I instruct the setup program to start execution of the newly installed program? - Is there a good general resource that documents the use of the installer?
5
2931
by: Khurram Hanif | last post by:
I want to auto run asp.net page after a fixed interval of time without sending any request from browser to server. I dont want to use windows service or something like that. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
5
5051
by: Samuel | last post by:
Hi, I am running into a problem of mixing UICulture = auto and allowing users to select culture using a dropdown list. I am detecting a querystring, "setlang", and when found, setting the CurrentUICulture to what's specified in the querystring. Since I want to allow UICulture auto detecting, I add UICulture = "auto" to page directive on each page.
3
2992
by: Brian Mitchell | last post by:
Is there any way to make a docking and auto hide toolbar in Visual Basic.NET? Thanks!
2
6779
by: MJB | last post by:
I'm using Visual Studio 2005 and I have built an msi using the built in setup project. My application installs fine, but on install the application itself runs a few configuration scripts which alter the original contents of the directory. The next time you start the application by clicking the shortcut the MSI automatically tries to repair/restore the install back to the out of the box configuration. Any idea how to turn this feature...
4
8835
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi... Following the samples online, we implemented a windows service in .Net. Like most services, there's a worker thread actually doing stuff in the background. The problem we've run into is how to get the service to exit when the worker thread has a fatal error *and* get the SCM to invoke the auto-restart configuration? The worker thread can error out while the parent thread in the server process chugs along. We can set the exit...
3
12198
by: SilverLight | last post by:
I need to write a C# windows application that can open a web page, fill in the fields and click the submit button on the web page automatically. I don't want to use the web browser control and have the web site open within my application. The windows application should launch the IE browser and navigate to a URL that the windows application receives from an XML file. Not sure where I should start from. Any help is greatly appreciated. Thank...
3
4027
by: TS | last post by:
I am using IE 7. I have a website running on my local machine (localhost) and auto complete doesnt work for any of the textboxes, but going to web sites on the internet does support this so i know the browser has this config turned on. any ideas why it doesnt work on my local web application (.net 2)? thanks
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9601
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10376
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3013
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.