473,769 Members | 4,010 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Managing Startup Keys

I am putting a key for my application to run at startup in
SOFTWARE\Micros oft\Windows\Cur rentVersion\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 1353
Keep the key in HKEY_CURRENT_US ER so that each individual user can turn it
off
The subkeys under HKEY_USERS contain the HKEY_CURRENT_US ER 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.fs u.eduwrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.com.. .
>I am putting a key for my application to run at startup in
SOFTWARE\Micros oft\Windows\Cur rentVersion\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_US ER so that each individual user can turn it
off
The subkeys under HKEY_USERS contain the HKEY_CURRENT_US ER 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.fs u.eduwrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.com.. .
I am putting a key for my application to run at startup in
SOFTWARE\Micros oft\Windows\Cur rentVersion\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
409
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 to call another form (mdI type) and close form1. I realize that if I declare a variable for form2 in form 1 when I close form1 I destroy form2. I tried declaring the form publicly outside of form1 but it still shuts down. I don't want to get into...
4
2308
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 window, and in fact, everything. A vital database has had everything disabled, and so the menus and windows no longer load when I open the database. This means I can't get to the
1
11321
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 Allow Toolbar/Menu Changes Use Access Special Keys
10
16153
by: PC Datasheet | last post by:
How can I programatically set the startup form when the database opens? Thanks! Steve
2
1365
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 simple but I will be very happy to get some help anyway. Any answer is appreciated. regards, Teis
12
2029
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, if they have been tampered then I will restore the original settings from the backup files I store in some hidden place. However now a guy said he has a tool that able to modify the Windows XP registry without even login to window - that means...
4
1508
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: 1 - synchronize the voice with the text, so that the background color of each word is hilighted as the voice reads that word. 2 - be able to jump around within the recorded text. For instance if the user double-clicks a certain sentence - just...
0
1138
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 same database (achieved through replication) When the user moves to a different office, they need to connect to the sql server located in that office for speed issues. I am trying to create a user interface to allow the user to connect to...
0
1853
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 problem is that, although I run the script perfectly in local double-clicking it, when the script is deployed via gpo, registry keys remain undeleted. I've used several echos to know it if was being executed and it was, but keys remained there. ...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9995
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9863
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8872
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6674
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5304
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3962
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.