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 7867171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:38:23+00:00 2026-06-03T00:38:23+00:00

I have a .NET 3.5 application that has always run on x86 (XP). I

  • 0

I have a .NET 3.5 application that has always run on x86 (XP). I now need this program to run on x64 (Win7). The build for this application is Any CPU so it should run on x64. In my setup project > Registry Editor I create a registry key called AppPath in HKEY_LOCAL_MACHINE\Software\Company\Product\AppPath.

On a 64 bit machine my setup project installs this key at HKEY_LOCAL_MACHINE\Software\Wow6432Node\Company\Product\AppPath

My first question is if I change the TargetPlatform of my Setup project to x64 why do the registry keys get added to the Wow6432Node subsystem? If I understand correctly targeting x64 should install the keys in the x64 registry not the Wow6432Node subsystem. Obviously I have not done everything required to target x64. What may I have missed that would cause the program to install as though it’s 32 bit even though the setup project has a target platform of x64?

My second question is if I have code that reads the registry as follows:

clientPbDir = Registry.LocalMachine.OpenSubKey("Software\\Company\\Product").GetValue("AppPath").ToString();

How can I make this work for both x86 and x64?

This article kind of answers the question.

Reading the registry and Wow6432Node key

But I would prefer not have to compile my project as x86 just to be able to read the registry on both x86 and x64 if I can avoid it. I want to be able to make the most of x64 performance.

  • 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-06-03T00:38:24+00:00Added an answer on June 3, 2026 at 12:38 am

    You may have missed this link: http://www.rhyous.com/2011/01/24/how-read-the-64-bit-registry-from-a-32-bit-application-or-vice-versa/

    It looks like it does what you want to do, which is read the x86 registry from an x64 program.

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

Sidebar

Related Questions

We have a VB.Net application that has in the region of about 80 unique
I have an ASP.NET MVC application that has one part where I dont really
I have a .net WinForms 2.0 application that has an image library of about
I have a code base that has been used as an ASP.Net web application.
I have a web application on ASP.NET (C#) that has some precompiled components. I've
I have a .NET application that contains a checkbox (System.Windows.Forms.Checkbox). This component (WindowsForms10.BUTTON.app.0.378734a1) is
I have a .NET application that I want to use as a client to
We have a .net application that we didn't develop, but use. I can tell
I have a .Net application that dynamically creates a small HTML page and pops
I have a .NET application that uses some API calls, for example GetPrivateProfileString .

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.