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

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 5769
On Aug 29, 9:47 am, "DaveL" <dvs_...@sbcglobal.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*****@sbcglobal.netwrote in message
news:wV******************@nlpi065.nbdc.sbc.com...
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*****@sbcglobal.netwrote in message
news:wV******************@nlpi065.nbdc.sbc.com...
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
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...
19
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...
5
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...
5
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...
3
by: Brian Mitchell | last post by:
Is there any way to make a docking and auto hide toolbar in Visual Basic.NET? Thanks!
2
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...
4
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...
3
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...
3
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...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

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.