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

  • SEARCH
  • Home
  • 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 6005507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:24:25+00:00 2026-05-23T01:24:25+00:00

I have a .NET component written in C# that needs to register some registry

  • 0

I have a .NET component written in C# that needs to register some registry values under the HKLM hive. I’m expecting this component to be installed on both x86 (32-bit) and x64 (64-bit) boxes running the appropriate flavour of Windows. On 64-bit systems, I want to make sure the component can be used by both 32- and 64-bit hosting processes. I’m stuck with using Visual Studio’s deployment projects for the time being.

What I want is for my installer, when run on 64-bit systems, to put its registry entries under HKLM/Software/Blablah, so that when running in a 64-bit process, my component can find its global configuration settings. However, if my component is hosted by a 32-bit process running on the same machine, then it will read from what it thinks is the same key, but which Wow64 will translate to HKLM/Software/Wow6432Node/Blablah.

Is it OK to author my 64-bit installer so that:

  • it is marked as a x64 installer
  • it writes the entries under HKLM/Software/Blablah for the benefit of 64-bit processes
  • it writes exact copies of those entries under
    HKLM/Software/Wow6432Node/Blablah for the benefit of 32-bit processes on the same machine.

I’m guessing that because I’ve marked the installer as x64, I will be forced to author another separate installer specifically for 32-bit systems, which only writes to HKLM/Software/Blablah.

  • 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-23T01:24:25+00:00Added an answer on May 23, 2026 at 1:24 am

    The normal practise is to have both 32 bit and 64 bit install packages. On the 32 bit machine you just run the 32 bit package, on the 64 bit machine you run both.

    Trying to handle all the registry and file redirection yourself is a nightmare and it’s much better to install a 32 bit package on a 64 bit machine and let the system do the redirection for you. You’ve got to produce the 32 bit package anyway for 32 bit machines, so it’s no extra work.

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

Sidebar

Related Questions

I have a COM component written in C++ that has a Print function. This
I have a .NET 2.0 project that needs to use a COM component (specifically
If I have .Net Form with a component/object such as a textbox that I
I have a component (an assembly built in .net) that i need to access
I have a COM component written in VB6 that I'm using from a Visual
We have old .net 1.1 project that is using a third party component. Aparently
I have a C# .NET component that is being called from a COM out-of-process
I have this ASP.net component: <asp:Button ID=Button4 runat=server Text=Submit Entry CssClass=eventSubmitButton OnClick=SubmitData/> and I'd
I have a Windows Service written in .NET C# which calls a COM component.
I have a .NET component exposed as a CCW (Com Callable Wrapper) and being

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.