title: WIX - Adding a C# custom action code
body: <p>I'm creating a program which is being installed by Wix, using VS 2010 and I've already got the product.wxs ready.</p>
  
  <p>Now I want to add a custom C# action to the installation. I've searched how to do it and found this guide: <a href="http://www.advancedinstaller.com/user-guide/qa-c-sharp-ca.html" rel="nofollow"><em>How do I create fully fledged C# custom actions?</em></a></p>
  
  <p>The problem is that I don't understand all the instructions, specifically in this section of the guide: <code>Integrate the C# custom action in Advanced Installer</code></p>
  
  <p>I've created the Custom Action project but I don't understand how do I tell the setup project to run that custom action and how do I set the action to run at install in the commit phase.</p>
  
  <p>Another related thing. How in the C# code can I get the installation path that the user chose to install to?</p>