473,320 Members | 2,071 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,320 software developers and data experts.

Managing Startup Keys

I am putting a key for my application to run at startup in
SOFTWARE\Microsoft\Windows\CurrentVersion\Run

My goal is to allow individual users to toggle this on and off, so I
was placing the key under CurrentUser.

However, I want the program to default to starting up for the user the
first time any user logs in after it is installed. In the past we had
installed the key under local machine, but this means that removing the
key as per one users request will affect all users.

Also I am not sure if users will always have permission to remove keys
from Local machine? This would make it impossible in some cases for a
user to disable the run at startup feature if the key was added to
local machine during installation.

So I am not sure the best way to handle this and was open to ideas that
will give me these things:
1. After installation by an administrator, the program will default to
starting up when any user logs in.
2. Each user can disable/enable the run at startup feature via an
options menu, and this option will be specific for each user.

Thanks in advance.

Oct 25 '06 #1
2 1333
Keep the key in HKEY_CURRENT_USER so that each individual user can turn it
off
The subkeys under HKEY_USERS contain the HKEY_CURRENT_USER hive for each
user that has ever logged on to the system, as well as a default user
profile for any new users. When installing, simply enumerate all the subkeys
in HKEY_USERS and add the setting to each user you find there. That should
cause the default behaviour you want

/claes

<sh******@cs.fsu.eduwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
>I am putting a key for my application to run at startup in
SOFTWARE\Microsoft\Windows\CurrentVersion\Run

My goal is to allow individual users to toggle this on and off, so I
was placing the key under CurrentUser.

However, I want the program to default to starting up for the user the
first time any user logs in after it is installed. In the past we had
installed the key under local machine, but this means that removing the
key as per one users request will affect all users.

Also I am not sure if users will always have permission to remove keys
from Local machine? This would make it impossible in some cases for a
user to disable the run at startup feature if the key was added to
local machine during installation.

So I am not sure the best way to handle this and was open to ideas that
will give me these things:
1. After installation by an administrator, the program will default to
starting up when any user logs in.
2. Each user can disable/enable the run at startup feature via an
options menu, and this option will be specific for each user.

Thanks in advance.

Oct 25 '06 #2
That sounds good. Thanks.

Claes Bergefall wrote:
Keep the key in HKEY_CURRENT_USER so that each individual user can turn it
off
The subkeys under HKEY_USERS contain the HKEY_CURRENT_USER hive for each
user that has ever logged on to the system, as well as a default user
profile for any new users. When installing, simply enumerate all the subkeys
in HKEY_USERS and add the setting to each user you find there. That should
cause the default behaviour you want

/claes

<sh******@cs.fsu.eduwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
I am putting a key for my application to run at startup in
SOFTWARE\Microsoft\Windows\CurrentVersion\Run

My goal is to allow individual users to toggle this on and off, so I
was placing the key under CurrentUser.

However, I want the program to default to starting up for the user the
first time any user logs in after it is installed. In the past we had
installed the key under local machine, but this means that removing the
key as per one users request will affect all users.

Also I am not sure if users will always have permission to remove keys
from Local machine? This would make it impossible in some cases for a
user to disable the run at startup feature if the key was added to
local machine during installation.

So I am not sure the best way to handle this and was open to ideas that
will give me these things:
1. After installation by an administrator, the program will default to
starting up when any user logs in.
2. Each user can disable/enable the run at startup feature via an
options menu, and this option will be specific for each user.

Thanks in advance.
Oct 26 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Robin | last post by:
H I am having some problems with form creation & navigation in .NET. I have a sub main that calls my first form (login) using the application.run() method. If the validations are correct I wish...
4
by: Stuart Clark | last post by:
Hi, I am having quite a major problem with an access database. Basically, under "Tools => Startup", there are options to disable the Menu's (e.g. - file, tools etc), the toolbars, the main...
1
by: cefrancke | last post by:
I have set the Startup properties to the following... All menus, toolbars, etc are turned off plus these are unchecked Allow Full Menus Allow Built-in Toolbars Allow Default Shortcut Menus...
10
by: PC Datasheet | last post by:
How can I programatically set the startup form when the database opens? Thanks! Steve
2
by: Teis Draiby | last post by:
I am looking for a way to handle shortcut functionality in a program. I would like to be able to handle all kind of shortcuts - not only to commands that exist in the meu bar. It is probably...
12
by: chinkuang | last post by:
Hi Everyone: I have a question here: I used a startup object to protect my application - whenever PC starts up, I will check the setting of my application like registry, program files and so on,...
4
by: jdcharbonneau | last post by:
I am working on a foreign language learning program. (C# DotNet V2) I have some written text, and a recording of a native speaker speaking that text. I would like to be able to do the following: ...
0
by: Dale | last post by:
Access 2000 (mdb / mde) Frt End to SQL 2000 Backend I have an Access app that is linked to SQL 2000 using the DSN-Less method. I have 3 sql servers (3 different locations) that contain the exact...
0
by: diego72 | last post by:
Hi!, I'm trying to delete some registry keys and subkeys with a vbs script, deploying it through gpo starup script. The Os is Windows 2003 Enterprise Server R2 and the clients are Windows Xp. The...
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.