all groups > visual studio .net general > april 2005 >
You're in the

visual studio .net general

group:

Getting installed code to run on Windows XP start up


Re: Getting installed code to run on Windows XP start up Lau Lei Cheong
4/29/2005 12:00:00 AM
visual studio .net general:
I think console projects are good enough in most case, as you won't want a
lot of interaction for a program runs during logon.

There's lots of way to get a program runs, ranging from putting the program
shortcut in startup folder to writing a logon script, depending on your
situation.

<g62msdnatll@nospam.nospam> ¼¶¼g©ó¶l¥ó·s»D:CBEBEF7E-6F25-4C0F-995E-4D500C11181D@microsoft.com...
[quoted text, click to view]

Getting installed code to run on Windows XP start up g62msdnatll NO[at]SPAM nospam.nospam
4/29/2005 9:00:06 AM
What kind of project do you create in VS .NET and C# to get an installed
program to run on startup/login?
Is there sample code for this function?
RE: Getting installed code to run on Windows XP start up v-garych NO[at]SPAM online.microsoft.com
4/30/2005 12:00:00 AM
Hi,

I agree with Lau Lei's suggestion, the usual convention to invoke a
program(such as the installer in your case) in the System's start-up time
is used login script, the following links have some useful information
about it:

Logon Scripts
http://www.computerperformance-.co.uk/Logon/logon_scripts.htm

Sample Logon Script for Windows NT
http://www.rethinkit.com/ntscr-ipt/LogonScript.htm

How To Assign a Logon Script to a Profile for a Local User in Windows 2000
http://support.microsoft.com/default.aspx?scid=kb;en-us;258286

How to run a logon script one time when a new user logs on
http://support.microsoft.com/d-efault.aspx?scid=kb;en-us;2841-93


Hope this helps!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
Re: Getting installed code to run on Windows XP start up Norman Yuan
5/2/2005 7:52:54 AM
In addition to the other posts, if you need something runs whenever the
computer start up (whether there is user logged in or not), then you may
want to look at Wndows Service project.

[quoted text, click to view]

AddThis Social Bookmark Button