I need to have an entry stored in [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionAppCompatFlagsLayers] so as to mark a product file in compatibility mode (for all users). When setting this and running in Windows7, the entries land in [HKEY_LOCAL_MACHINESOFTWARE*Wow6432Node*MicrosoftWindows NTCurrentVersionAppCompatFlagsLayers] where they are not taken into account for the purpose.

I can understand that this translation isn't done by InstallBuilder; I found a general reference on this: http://stackoverflow.com/questions/7311146/write-the-registry-value-without-redirect-in-wow6432node

How can I follow one of these situations with Installbuilder?

asked 14 May '13, 02:36

Andre's gravatar image

Andre
0333
accept rate: 0%


You can force the key to be written to the 64bit view using the <wowMode> setting:

  <!-- The 64bit version takes precedence so we check it in second place -->
      <registryGet>
        <key>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\MSSQLServer\CurrentVersion</key>
        <name>CurrentVersion</name>
        <variable>currentVersion</variable>
        <wowMode>64</wowMode>
      </registryGet>

You can also force all your installer to write to the 64bit view enabling the 64bit mode as explained in this article.

link

answered 14 May '13, 03:07

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

Thanks a lot. I now see that the edition panel has the "Wow mode" field, I did not notice since it needs "Advanced mode" which is the default only if Wow mode is filled.

I'm now going to check if this setting is omitted in WinXP when I have coded:

<wowmode>64</wowmode> <rulelist> <platformtest type="windows-x64"/> </rulelist>

or at least that it doesn't cause an error message.

link

answered 14 May '13, 04:55

Andre's gravatar image

Andre
0333
accept rate: 0%

You can safely always enable it. It will be ignored on 32bit systems.

(14 May '13, 05:57) juanjo ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×28

Asked: 14 May '13, 02:36

Seen: 1,878 times

Last updated: 14 May '13, 05:57