Solved

Logging on and startup question

Posted on 2006-07-09
8
157 Views
Last Modified: 2010-04-30
I just want a little explaination on what happens on a computer with multiple accounts.
1. If I have an app add a value to the Startup section of the registry (HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run)
so that the app starts when the computer starts, will that app start when the computer starts, or only when the user that installed it logs on, or when any user logs on or what?  I mainly want to know 2 things:  where to put it so that only the user that installed it will have it run when he logs on, and where to put it no matter who logs on, it will always start.
When a user logs off, and a different logs on, all his personal settings are set.  Does that also mean that any programs he installed to run at startup will also run?


2.  Same question, only with the startup folder instead of the registry.

I don't have multiple accounts on my computer and I don't want to set it up to test it because pulling a tooth is easier than getting rid of them.  I started making some of my apps available online, but I don't know enough about this to do it properly.  I need to make sure I set it up right so that it works for the end user.

Thanks!
Cheers!
ahammar
0
Comment
Question by:ahammar
  • 6
  • 2
8 Comments
 
LVL 13

Accepted Solution

by:
Mark_FreeSoftware earned 500 total points
Comment Utility

>>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
this is only for the CURRENT user, so not for other users

use local machine (HKEY_LOCAL_MACHINE) instead for all users


0
 
LVL 13

Expert Comment

by:Mark_FreeSoftware
Comment Utility

startup from the start menu:

if you put it in the %windir%\Username\Menu start\......

it will be ONLY for one user (Username in this case)

if you put it in All Users:
%windir%\All Users\Menu start\......
it is for all users.


but be aware!
the folder from the start menu is not always the same!
for example in dutch windows it is "Opstarten"
0
 
LVL 23

Author Comment

by:ahammar
Comment Utility
So if I put something in:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
then the app will only start when the user that installed it logs on?

even if a different user logs off and the user that installed it logs on without turning the computer off first?

Thanks Mark_FreeSoftware
0
 
LVL 13

Expert Comment

by:Mark_FreeSoftware
Comment Utility

>>then the app will only start when the user that installed it logs on?
indeed

>>even if a different user logs off and the user that installed it logs on without turning the computer off first?
it should run then,
i'm going to test this now, and post back with the results
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 13

Expert Comment

by:Mark_FreeSoftware
Comment Utility

test was positive,
it runs without shutting down
(so logging off and on runs the program)
0
 
LVL 23

Author Comment

by:ahammar
Comment Utility
Ok...Thank you very much for doing that test for me!
You're awesome!

Cheers!
ahammar
0
 
LVL 13

Expert Comment

by:Mark_FreeSoftware
Comment Utility

thanks for the points, and happy coding!
0
 
LVL 13

Expert Comment

by:Mark_FreeSoftware
Comment Utility

oh, almost forgot:

if you are not running on the admin account right now,
(name: "Admin" or "Administrator")

that is your secondary account, it just doesnt show up on the login screen

to access it:
press control + alt + del twice while at the login screen,
and type "Admin" as username
leave the password blank (that should work)
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now