Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Start application before User Logon

Reply
 
Old 02-19-2009   #1 (permalink)
LLcoolQ


 
 

Start application before User Logon

I have a desktop application that is distributed to our clients and
has been working for the past few years.

I now have a requirement for an application to start up at windows
startup so that it is running before a user log on. I'm think that a
Windows Service will work.

However, here are some things this application currently does and I am
not sure all of them are supported via a service:

1) Desktop Interaction. Though this is an unattended application,
there can be desktop interaction for changing settings, etc. I think
I can do this by allowing desktop interaction

2) Internet access. This application connects to a Secure FTP server
to see if there are any files to be distributed. At the point that
the login dialog is displayed, does the machine have access to the
internet?

3) Printing - This app has an option to print files as they are
downloaded from the SFTP Server. Are printers available at the point
that the login dialog is displayed.

4) ProcessStartInfo- This application calls an executable to convert a
PDF to Postscript. Can this be done form a service?


As for Application settings, they are currently embedded in the
application. If a service can do all of the above, i am thinking of
creating a second executable just for the purposes of configuration.

Thoughts on any of this? Thanx.....Jay


My System SpecsSystem Spec
Old 02-19-2009   #2 (permalink)
Family Tree Mike


 
 

Re: Start application before User Logon

<LLcoolQ@xxxxxx> wrote in message
news:acc76551-eff1-4d8e-896b-1d19f41dd792@xxxxxx
Quote:

>I have a desktop application that is distributed to our clients and
> has been working for the past few years.
>
> I now have a requirement for an application to start up at windows
> startup so that it is running before a user log on. I'm think that a
> Windows Service will work.
>
> However, here are some things this application currently does and I am
> not sure all of them are supported via a service:
>
> 1) Desktop Interaction. Though this is an unattended application,
> there can be desktop interaction for changing settings, etc. I think
> I can do this by allowing desktop interaction
>
> 2) Internet access. This application connects to a Secure FTP server
> to see if there are any files to be distributed. At the point that
> the login dialog is displayed, does the machine have access to the
> internet?
>
> 3) Printing - This app has an option to print files as they are
> downloaded from the SFTP Server. Are printers available at the point
> that the login dialog is displayed.
>
> 4) ProcessStartInfo- This application calls an executable to convert a
> PDF to Postscript. Can this be done form a service?
>
>
> As for Application settings, they are currently embedded in the
> application. If a service can do all of the above, i am thinking of
> creating a second executable just for the purposes of configuration.
>
> Thoughts on any of this? Thanx.....Jay
>

Sometimes you need to question the requirements....

What user is the software running as before the user logs in, in the new
version? I presume that if multiple users were using the software in its
present mode, some files or logs have the user's name in them, or at least
the SFTP session uses their login. If this becomes a service, then you
could run the service as a user, but not 'all' users, nor is that mode
usually desired. Most services run with limited permissions.

Maybe if your site only has single users per computer, this is not an issue,
but it would be my first question.

Everything you asked can be done in a service, but I'm just not seeing what
occurs before there is a valid login.

--
Mike

My System SpecsSystem Spec
Old 02-19-2009   #3 (permalink)
Cor Ligthert[MVP]


 
 

Re: Start application before User Logon

LLCool,

A service is always running, so it is a waste to set everything what you
want in that service.
(Beside that it is not possible anymore, as services are disconnected from
the UI as much as possible).

Why not make simple a service and let it communicate with a desktop
application.
Samples on MSDN are all doing it that way.

Cor

<LLcoolQ@xxxxxx> wrote in message
news:acc76551-eff1-4d8e-896b-1d19f41dd792@xxxxxx
Quote:

>I have a desktop application that is distributed to our clients and
> has been working for the past few years.
>
> I now have a requirement for an application to start up at windows
> startup so that it is running before a user log on. I'm think that a
> Windows Service will work.
>
> However, here are some things this application currently does and I am
> not sure all of them are supported via a service:
>
> 1) Desktop Interaction. Though this is an unattended application,
> there can be desktop interaction for changing settings, etc. I think
> I can do this by allowing desktop interaction
>
> 2) Internet access. This application connects to a Secure FTP server
> to see if there are any files to be distributed. At the point that
> the login dialog is displayed, does the machine have access to the
> internet?
>
> 3) Printing - This app has an option to print files as they are
> downloaded from the SFTP Server. Are printers available at the point
> that the login dialog is displayed.
>
> 4) ProcessStartInfo- This application calls an executable to convert a
> PDF to Postscript. Can this be done form a service?
>
>
> As for Application settings, they are currently embedded in the
> application. If a service can do all of the above, i am thinking of
> creating a second executable just for the purposes of configuration.
>
> Thoughts on any of this? Thanx.....Jay
>
My System SpecsSystem Spec
Old 02-19-2009   #4 (permalink)
LLcoolQ


 
 

Re: Start application before User Logon

Thanx for for prompt replies

This application gets files from a lab. These files can be available
any time around the clock. The machine that it is installed on is
usually shared thoughout the day and/or week by different users. When
a user leaves for a day, they log out. The application needs to be
running when noone is logged in.

I tried putting a startup in

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows
\Run

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

but the application doe snot appear to start until someone actually
logs in at the login dialog



My System SpecsSystem Spec
Old 02-20-2009   #5 (permalink)
Cor Ligthert[MVP]


 
 

Re: Start application before User Logon

You can use a service which is running by the Server, however let the
service only do those tasks that should be done all day, visititing a
website you can do as well in a non service program and give the results
back to the service, the same as letting a user set values for the service.

Cor

<LLcoolQ@xxxxxx> wrote in message
news:ac7b138c-8c34-40d9-b8ca-cd7d1b689467@xxxxxx
Quote:

> Thanx for for prompt replies
>
> This application gets files from a lab. These files can be available
> any time around the clock. The machine that it is installed on is
> usually shared thoughout the day and/or week by different users. When
> a user leaves for a day, they log out. The application needs to be
> running when noone is logged in.
>
> I tried putting a startup in
>
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows
> \Run
>
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
>
> but the application doe snot appear to start until someone actually
> logs in at the login dialog
>
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Logon Failure: the user has not granted the requested logon type at this Vista networking & sharing
Looking to write an application to record the name and time of when a user start any and all applications in Windows XP/Vista .NET General
Logon failure: the user has not been granted the requested logon typeat this computer. .NET General
Application Error Explorer.exe after logon Vista General
start an application in elevated mode after logon Vista installation & setup


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46