title: Expand an x86 .exe to 'C:\Windows\System32' under both Windows x86 and x64?
body: <p>I would like to make my installer compatible under both <strong>x86</strong>/<strong>x64</strong> windows, this means portable.</p>
  
  <p>I did the innosetup installer only to expand an <strong>x86</strong> <em>CLI</em> executable file, and I need to expand it to <strong>C:\windows\system32</strong> directory even if the installer is running under a Windows <strong>x64</strong> because otherwise if I expand it to <strong>C:\Windows\Syswow64</strong> directory then the exe is not recognized under a Windows x64 <strong>CMD</strong>.</p>
  
  <p>So how I should set this property to make it portable with the specified condition above?:</p>
  
  <pre><code>ArchitecturesInstallIn64BitMode= ???
  </code></pre>
  
  <p>And what flags I should use when expanding the file here?:</p>
  
  <pre><code>Source: {sys}\My_x86_application.exe; DestDir: {sys}; Flags: ??? 
  </code></pre>
  
  <p>I've played a little bit with some flags like <code>32Bit</code>, <code>64Bit</code>, and <code>Is64BitInstallMode</code>, but I can't get the expected result because if I know that restricted constants as <code>{syswow64}</code> throws an installation error under a Windows x86...</p>
  
  <blockquote>
    <p>UPDATE</p>
  </blockquote>
  
  <p>This is the relevant part of my installation script, but it is wrong, it should be compatible with x86 and x64 windows (portable) and only expand the <code>Source: {sys}\*</code> files to <strong>C:\Windows\System32</strong> under both windows (using the constant <code>{sys}</code> to detect the dir path, of course).</p>
  
  <pre><code>[Setup]
  DefaultDirName={pf32}\{#AppName}
  ArchitecturesAllowed=x86 x64
  ArchitecturesInstallIn64BitMode=x64
  
  [Files]
  Source: {app}\*; DestDir: {app}; Flags: ignoreversion
  Source: {sys}\*; DestDir: {sys}; Flags: ignoreversion 64bit
  </code></pre>