title: Script to associate an extension to a program
body: <p>My customer is replacing MS Office with OpenOffice in some workstations. My program export a file to Excel using the .xml extension (using open format) and opens it using the current associated program (using ShellExecute)</p>
  
  <p>The problem is that OpenOffice does not register the .xml extension associated with it.</p>
  
  <p>Manually association works fine, but I want to make a .reg or something to easily change the setting.</p>
  
  <p>I'm looking in the registry in a PC with the change already made, but the  </p>
  
  <pre><code>"HKEY_CLASSES_ROOT\.xml" 
  </code></pre>
  
  <p>key does not have anything referencing OpenOffice.</p>
  
  <p>Where is the association stored? How can I make a script to do the work?</p>