Groups | Blog | Home
all groups > dotnet faqs > october 2004 >

dotnet faqs : Startup key


scorpion53061
10/19/2004 4:02:20 AM
Windows has a few possibillities to autostart a program
when you login to windows.

- via the startup menu
- via the registry

You can use this last one in your Setup project to deploy
your application so that the registry settings will be
added when you install the application.

Registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersio
n\Run

In this Key you create a new DWORD and give it a name.
The value should be the executeable that you want to start
when you logon to Windows.

User:
\Software\Microsoft\Windows\CurrentVersion\Explorer\LogonUserName

Why post this to the api newsgroups?




[quoted text, click to view]
Jeff Johnson [MVP: VB]
10/19/2004 9:42:04 AM

[quoted text, click to view]

Please do not crosspost between "classic" and .NET groups. The *.vb.* groups
are for VB6 and earlier. The .NET groups have "dotnet" in their names.

Wally
10/19/2004 10:46:45 AM
Hi all. I've wrote, using VB.NET a windows service that starts automatically
at power ON. It works well.
Now I need that my service write a key in the registry for running an
application as soon as a user log on Windows.
I want that this application starts at logon of each user.
In which registry key I have to write the application path?
Are there VB.NET examples?

Thanks in advance

VV

AddThis Social Bookmark Button