title: How to associate a program with a file type, but only for the current user?
body: <p>So, I cannot associate my program with a specific file type without forcing the poor user to enter its admin password (it may be ok for home users, but it is a gigantic problem for users in a corporate env). In this case the only solution is to make the association only for the current user.</p>
  
  <p>I have tried that but something is not working. </p>
  
  <p>If i understand correctly I have to write a key like (let's say) '.mp3' in ctCurUserFileExt and write in it something like 'my_file'. Then in ctCurUserClases I add a key like this: </p>
  
  <pre><code>WriteReg_String(RootKey, ctCurUserClases+ 'my_file\shell\open\command', '', Application.ExeName+ ' "%L"', TRUE) 
  </code></pre>
  
  <p>However, when I double click the file, Windows asks me with which application should it open it.</p>
  
  <p>Here are the constant:</p>
  
  <pre><code>CONST
       RootKey= 'HKEY_CURRENT_USER';
       ctCurUserFileExt= '\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\';
       ctCurUserClases = '\Software\Classes\';
  </code></pre>