title: Writing registry value in a 64-bit system
body: <p>I have an application setup build in NSIS. The set requires a key to be created at the following location for my application to start:-
                     HKEY_LOCAL_MACHINE\Software\\\" "VersionNo" 0
                     HKEY_LOCAL_MACHINE\Software\Wow6432Node\\" "VersionNo" "11"</p>
  
  <p>In the script, i have used:-</p>
  
  <pre><code>      WriteRegDWORD HKLM "SOFTWARE\&lt;Key1&gt;\&lt;Key2&gt;\&lt;Key3&gt;" "VersionNo" 0
        WriteRegStr HKLM "SOFTWARE\&lt;Key1&gt;\&lt;Key2&gt;" "VersionNo" "11"
  </code></pre>
  
  <p>This key is created successfully on a 32-bit Windows 7 system. However, when i install the setup on a 64-bit Windows 7 system the key is not created in the above location. Instead it creates the key at:-</p>
  
  <pre><code>      HKEY_LOCAL_MACHINE\Software\Wow6432Node\&lt;Key1&gt;\&lt;Key2&gt;\&lt;Key3&gt;" "VersionNo" 0
        HKEY_LOCAL_MACHINE\Software\Wow6432Node\&lt;Key1&gt;\&lt;Key2&gt;" "VersionNo" "11"
  </code></pre>
  
  <p>This results in my application not starting after installation.</p>
  
  <p>--Can someone please suggest command/script for NSIS to compulsorily create the key(s) under HKEY_LOCAL_MACHINE\Software\ for a 64-bit system instead of it getting created under HKEY_LOCAL_MACHINE\Software\Wow6432Node?</p>
  
  <p>Eagerly waiting for a solution....</p>