Results 1 to 5 of 5

Thread: Windows 7 and registry

  1. #1

    Thread Starter
    Fanatic Member alexandros's Avatar
    Join Date
    Oct 2002
    Location
    Milky Way Galaxy
    Posts
    694

    Windows 7 and registry

    Hello,
    i want to add a key in the HKEY_CURRENT_USER\SOFTWARE\MYAPPLICATION
    under windows 7 !
    Unfortunately , i cannot do this ? How am i going to add info in the registry using Windows 7 without being an administrator ? Even with administrator rights it does not add a thing !

    Thanks !
    Last edited by alexandros; Jun 27th, 2010 at 12:44 PM.

  2. #2
    Frenzied Member Pc_Not_Mac's Avatar
    Join Date
    Oct 2009
    Location
    localhost
    Posts
    1,206

    Re: Windows 7 and registry

    You could change the UAC by...

    By clicking on Project> <"your project name"> Properties... > View Windows Settings > and change this line

    VB.net Code:
    1. <requestedExecutionLevel level="asInvoker" uiAccess="false" />
    to

    VB.net Code:
    1. <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />

    Good Luck
    My Codebank:
    Windows Vista & 7 Glass Effect & Limit the amount of times your application could be opened.
    Pause Your Code & Check the OS name

    The question of whether computers can think is like the question of whether submarines can swim.

    Currently learning: Java

    Coding can be a learning experience or

  3. #3

    Thread Starter
    Fanatic Member alexandros's Avatar
    Join Date
    Oct 2002
    Location
    Milky Way Galaxy
    Posts
    694

    Re: Windows 7 and registry

    sorry but i got vs 2005.

  4. #4

    Thread Starter
    Fanatic Member alexandros's Avatar
    Join Date
    Oct 2002
    Location
    Milky Way Galaxy
    Posts
    694

    Re: Windows 7 and registry

    I searched a little bit and found this...

    http://www.codeproject.com/KB/vista-...sUACAware.aspx

  5. #5
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: Windows 7 and registry

    If you are writing to HKEY_CURRENT_USER then you should not need admin permissions or need to bother with UAC etc. So you must just be not writing the code correctly that is supposed to create/modify this registry key. Show us the code you are using and I'm sure someone will be able to point out where the problem is.
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


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