• 0

Something weird when you create registry in Vista X64 SP1?!


Question

  • 0

Umm, that's where 32-bit apps write to the registry. It has nothing to do with Vista or SP1 - that's how it works on all 64-bit versions of Windows.

A 64-bit application will write into the "regular" registry path. For your uses it shouldn't matter - Windows should launch applications in either "run" key.

5 answers to this question

Recommended Posts

  • 0

Thanks Brandon, I made several tests between VB.Net and Inno Setup in creating registry, both create it in the same location. I was afraid that Inno Setup creates the registry into the old location but it seems that Vista can handle it correctly.

But it still bit strange that the code is creating the registry in different location, what if I want to create it programmatically in the old location?

  • 0

First, you should probably read up on WOW64 registry redirection.

Second, remember that 32-bit apps very, very rarely need to access the 64-bit sections of the registry. x64 versions of Windows are designed to support 32-bit applications without modification, and that's why the registry redirection/reflection mechanisms exist. For the most part, you should just let it do its thing.

Now to answer your question, there are two options:

1) Write a 64-bit application. They always write directly to the registry without any WOW64 redirection.

2) Write a "WOW64-aware" 32-bit application by passing the appropriate flag to the registry APIs.

To achieve number 1: If you're writing a .NET 2.0 (or later) application that doesn't rely on integration with any 32-bit applications or components, then you can simply change the target machine type to "Both" or "Any" in Visual Studio, and the application will automatically be compiled as 64-bit code when running on a 64-bit machine.

  • 0

Many Thanks for your help :), I tried the 2nd options and it works. However as I said I haven't trouble with creating registry in the 64-bit path but it's good to know new stuff.

BTW, I use Framework 2.0 but I can't choose "both" because there is some problems arise with Microsoft Jet Engine 4.0 (used to connect to MSAccess DB) when I select X64 or both, it only works with X86.

  • 0
Many Thanks for your help :), I tried the 2nd options and it works. However as I said I haven't trouble with creating registry in the 64-bit path but it's good to know new stuff.

BTW, I use Framework 2.0 but I can't choose "both" because there is some problems arise with Microsoft Jet Engine 4.0 (used to connect to MSAccess DB) when I select X64 or both, it only works with X86.

That's because there is no Jet engine for x64...

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Ridiculous claim that the labor cost difference of $6000 annually would increase cost per phone by $200. The employees produce 3 phones per month or what?
    • Sparkle 2.20.1 by Razvan Serea Sparkle is a free, open-source Windows optimization tool designed to make your PC faster, cleaner, and more private. With Sparkle, you can easily debloat Windows by removing unnecessary apps and services, disable Microsoft tracking to enhance privacy, and apply performance tweaks to boost speed. Its cleaner removes junk and temporary files, while every change is safe and fully reversible. Sparkle also features a modern, user-friendly interface with automatic updates, making system maintenance simple. Explore over 39 tweaks, from disabling telemetry and hibernation to optimizing network and game settings, all aimed at customizing and enhancing your Windows experience. Sparkle supports Windows 10 and 11. Sparkle 2.20.1 changelog: You can now change the Animation Direction from Up, Left, or Off. Added configurable animation direction (Up, Left, Off) for improved accessibility Added TTL caching to the system info backend Refactored tweak application flow to await NvidiaProfileInspector Improved IPC listener cleanup to correctly remove specific listeners Fixed online status not updating after successful network requests Updated system info tests to support backend caching Removed electron-toolkit utils dependency in favor of internal is.dev helper Fixed unwanted files and folders being included in application bundles Download: Sparkle 2.20.1 | Portable | ~100.0 MB (Open Source) Links: Sparkle Website | Github | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Never used the G7 Pro, but I've never had a good experience with that style of d-pad and fighting games.
    • And I just bought a seat cushion for my mesh chair. The chair feels nice but the first time I sat in it with boxers, I realized I don't like the feel of mesh on my legs. 😂
    • "This Dell 27 inch 4K 120Hz IPS monitor is really cheap after a very long time" ... Lol.
  • Recent Achievements

    • Dedicated
      Asgardi earned a badge
      Dedicated
    • Conversation Starter
      jessse3334 earned a badge
      Conversation Starter
    • Reacting Well
      JuvenileDelinquent earned a badge
      Reacting Well
    • One Month Later
      Excellence2025 earned a badge
      One Month Later
    • Week One Done
      Excellence2025 earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      499
    2. 2
      +Edouard
      247
    3. 3
      PsYcHoKiLLa
      153
    4. 4
      Steven P.
      84
    5. 5
      macoman
      64
  • Tell a friend

    Love Neowin? Tell a friend!