title: Inno Script Generator - Unable to Create Registry Entries
body: <p>I am running InnoScriptGenerator 1.0.3.1 to create an install script.
  Everything works EXCEPT the registry creation.  I want to create two entries...</p>
  
  <pre><code>HKEY_LOCAL_MACHINE\SOFTWARE\DocAssist
  HKEY_LOCAL_MACHINE\SOFTWARE\DocAssist\InstallDir   - which has my install directory
  </code></pre>
  
  <p>My script lines are as follows:</p>
  
  <p>[Registry]</p>
  
  <pre><code>Root: HKLM; Subkey: SOFTWARE\DocAssist; ValueType: none; Permissions: admins-full; Flags: uninsdeletekey createvalueifdoesntexist;
  Root: HKLM; Subkey: SOFTWARE\DocAssist; ValueType: string; ValueName: InstallDir; ValueData: {app}; Permissions: admins-full; Flags: uninsdeletekey createvalueifdoesntexist
  </code></pre>
  
  <p>The script runs, does not give an error, but also does not create the entry in the registry.</p>
  
  <p>When I run it from InnoScript Generator, the debug log shows</p>
  
  <p><img src="https://i.stack.imgur.com/2IyK3.jpg" alt="Screen Install Log"></p>
  
  <p>I am running this as an admin user.  It is being run on Windows 7 64 bit.
  The only other interesting piece of info is that in my application, when it accesses the registry, (via Delphi) I had to define the Registry as...</p>
  
  <pre><code>MyRegistry := TRegistry.Create(KEY_READ OR KEY_WOW64_64KEY);
  </code></pre>
  
  <p>because</p>
  
  <pre><code>MyRegistry := TRegistry.Create();
  </code></pre>
  
  <p>just did not work...</p>