CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2002
    Posts
    29

    run on startup problem

    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

  2. #2
    Join Date
    Feb 2009
    Location
    India
    Posts
    444

    Re: run on startup problem

    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.
    «_Superman
    I love work. It gives me something to do between weekends.

    Microsoft MVP (Visual C++)

  3. #3
    Join Date
    Mar 2002
    Posts
    29

    Re: run on startup problem

    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

  4. #4
    Join Date
    Mar 2002
    Posts
    29

    Re: run on startup problem

    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

  5. #5
    Join Date
    Aug 2008
    Location
    India
    Posts
    186

    Re: run on startup problem

    Just have a look at this thread....

    http://www.codeguru.com/forum/showthread.php?t=469565

  6. #6
    Join Date
    Mar 2002
    Posts
    29

    Re: run on startup problem

    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

  7. #7
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: run on startup problem

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured