title: File redirection not working if I SetCurrentDirectory to C:\Program Files in 32 bit app on Win7 64 bit, should it not navigate to (x86) folder?
body: <p>Here is my test code below.</p>
  
  <pre><code>//This correctly prints C:\Program Files from 64 app on 64 bit Win7 and
  //C:\Program Files (x86) 32 bit app on 64 bit Win7
  system("echo %PROGRAMFILES%\n");
  
  BOOL ret = SetCurrentDirectory("C:\\Program Files\\");
  
  char szFolder[512] = {0};
  GetCurrentDirectory(512, szFolder);
  
  //folder is printed as C:\Program Files from 32 bit app on 64 Win7! Why?
  cout &lt;&lt; "Current folder now: " &lt;&lt; szFolder &lt;&lt; endl;
  </code></pre>
  
  <p>Reason for writing code is to test what would happen if 32 bit InstallShield set path to C:\Program Files.  We want the path to be set to C:\Program Files on 32 bit OS and C:\Program Files (x86) on 64 bit OS.  I assumed that the Windows File System Redirection feature would ensure this happened?</p>
  
  <p>Basically, we have to locate a 32 bit library which will be in (x86) folder.  We were hoping that setting to C:\Program Files would be redirected correctly so we don't have to worry about it?</p>
  
  <p>Why is SetCurrentDirectory not being redirected?  I am testing on 64 bit Windows 7.  Application is compiled using MS VSC++ 2008.</p>