Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6340409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:49:50+00:00 2026-05-24T19:49:50+00:00

The code below fails when running on Windows 7, with default access levels. (This

  • 0

The code below fails when running on Windows 7, with default access levels. (This is a C# application, built with Visual Studio 2010). I am writing to HKEY_CurrentUser, which is where I should be allowed to create and read keys.

Do I need to modify my program’s manifest? or is there another arcane trick?

Under Windows 7, If you dial down the notify setting on your user account, the code works. But not with the factory setting. Should programmers give up on the registry?

RegistryKey regsoftware = Registry.CurrentUser.OpenSubKey("Software", true);
RegistryKey regsw = regsoftware.CreateSubKey("MyCompanyName");

regsw.SetValue("User", Id);
regsw.SetValue("Pwd", encodeString(Pw));

Thanks,
Gerry

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T19:49:51+00:00Added an answer on May 24, 2026 at 7:49 pm

    By default if you wanna run your app with admin privileges you can try this.

    Go to Project->properties->Drop down “Linker” option->Manifest File->in your right pane check “UAC Execution Level” -> choose “requireAdministrator”
    (I’m using VS2008 hope it should be same in VS2010).
    Thatz all you have to do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Below I listed some code from simple Rails application. The test listed below fails
In the below code , why b1.subtract() fails . Please explain me the reason
The code below gives me this mysterious error, and i cannot fathom it. I
Do you know why the code below fails to compile? #include <iostream> namespace C
The code below compiles fine with VS2010 but fails to compile with gcc 4.6.1:
Code below does not run correctly and throws InvalidOperationExcepiton . public void Foo() {
Code below is not working as expected to detect if it is in design
Code below is working well as long as I have class ClassSameAssembly in same
The code below shows a sample that I've used recently to explain the different
The code below works. But if I comment out the line Dim objRequest As

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.