"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.