I have added my program to "HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Run" so it will start when any users logon. When i logon as a standard user it runs, but when i log in as the Administrator, it doesnt. Has anyone seen this?
123
Printable View
I have added my program to "HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Run" so it will start when any users logon. When i logon as a standard user it runs, but when i log in as the Administrator, it doesnt. Has anyone seen this?
123
This should normally work since you have added in the Run key of HKLM.
However, if you're using Vista or above, there is a chance that the created entry is in a virtualized path which can only be read by the standard user.
You are right, i am only seeing this problem with Vista and Win7. The admin password is required to install(which is when the key is added), so i thought this would take care of any virtualization problems. I will try again with a modified manifest file, requesting admin privileges, and see if that fixes the problem.
Thanks,
Steve123
i tried the new install with a changed manifest file that requires Admin privilages, but it still doesnt run automatically at startup when i log in to the admin account. Does anyone else have any ideas?
steve123
Just have a look at this thread....
http://www.codeguru.com/forum/showthread.php?t=469565
i turned off windows defender and still the app does not startup. I'm not sure why this is happening but i guess my only choice now is to write a service to kick off the app.
steve123
What does the app do when it starts up? Does it access any resources that aren't available to the machine administrator account?
As a test, add notepad to the HKLM\...\Run key. Then test it under the machine admin account.