title: Customizing ClickOnce installer
body: <p>I need a post action on ClickOnce installer which should be performed after the application files are stored on the client side but before the application's first run. Specifically, I would like to encrypt sections of a configuration file.</p>
  
  <p>From what I've found, it's possible to add a class containing InPlaceHostingManager methods and use it for explicit installation/updates later on, but how can one override the default ClickOnce installer so that custom code is called? </p>
  
  <p>I would like to emulate the behavior of the ancient Setup Project which invokes the Install method of whatever inheritor of System.Configuration.Install.Installer you plug into your project.</p>
  
  <p>Thanks.</p>