title: File association in Inno Setup
body: <p>I am using Inno Setup and am trying to associate a program that is located in the <code>Program Files (x86)</code> in Windows 7. I have the following:</p>
  
  <pre><code>#define MyAppName "MyView"
  
  #define MyAppExeName "MyView.exe"
  
  [Setup]
  AppName={#MyAppName}
  
  [Registry]
  Root: HKCR; Subkey: ".mpl"; ValueType: string; ValueName: ""; ValueData: "MyView"; Flags: uninsdeletevalue
  Root: HKCR; Subkey: "MyView"; ValueType: string; ValueName: ""; ValueData: "MyView"; Flags: uninsdeletekey
  Root: HKCR; Subkey: "MyView\delta.ico"; ValueType: string; ValueName: ""; ValueData: "{app}\GeoView.EXE,0"
  Root: HKCR; Subkey: "MyView\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\MYVIEW.EXE"" ""%1""" 
  </code></pre>
  
  <p>Any suggestions for why the association is not working?</p>