in reply to Re^3: Perl registry reflection – How?
in thread Perl registry reflection – How?

Um, what?

In your original code, it doesn't matter what $SERVER_PLATFORM is, you always use the same $Registry key, both for $SERVER_PLATFORM eq x86 and for when $SERVER_PLATFORM is ne x85

If the keys are supposed to be different, assign a different key.

What is the problem? Does assigning a different key work, yes or no?

  • Comment on Re^4: Perl registry reflection – How?

Replies are listed 'Best First'.
Re^5: Perl registry reflection – How?
by roteme (Acolyte) on Mar 29, 2012 at 07:13 UTC

    I need to read key from the following registry path:

    'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B2AE58F9-BF87-4345-9A48-B4C855A484FD}

    The problem is that on x64 machine it go to read by default from:

    SOFTWARE\Wow6432Node\Microsoft\....

    And the key doesn't exist there! it exist under the first path above.

    my question - On x64 machine, How can I cause the program to read values from:

    SOFTWARE\Microsoft\....

    And not from:

    SOFTWARE\Wow6432Node\Microsoft\....

    If you can write me an example I'll appreciate it.

    Thanks.

      need to read key from the following registry path:

      But you didn't answer my question, does assigning a different key work, yes or no? Try turning on debugging (as shown in Scanning of 64 Bit registry ) and report error messages

        No I'll answer your question definitely: accessing the x64 part of the registry doesn't work from x86 program.

        There may be some workarounds but when you a not kind enough to even read background docs I provided I don't think somebody will invest time in looking for an answer.

      You keep asking the same question over and over again.

      Has it occurred to you that maybe no one knows how to do what you are asking for? Or perhaps it isn't possible?


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

      The start of some sanity?