title: How to execute VSTO post-install by WiX
body: <p>I need to run some VSTOs after they been installed. Everything I tried came out negative.</p>
  
  <p>One example:<br>
      <code>&lt;Property Id="runcmd"&gt;start&lt;/Property&gt;</code></p>
  
  <pre><code>&lt;CustomAction Id="RunOutlookVSTO"
                Property="runcmd"
                Execute="deferred"
                Return="asyncNoWait"
                ExeCommand="[SourceDir]Outlook2010AddIn.vsto"&gt;
  &lt;/CustomAction&gt;
  
  &lt;InstallExecuteSequence&gt;
    &lt;Custom Action="RunOutlookVSTO"
            After="PublishProduct"&gt;NOT INSTALLED&lt;/Custom&gt;
  &lt;/InstallExecuteSequence&gt;
  </code></pre>
  
  <p>Error: No reaction.</p>
  
  <p>Second example: replace start with cmd<br>
  Error: No reaction.</p>
  
  <p>Third example: Replace start with msiexec and msiexec /i<br>
  Error: msiexec help screen and "did not find any msi to exec"</p>
  
  <p>Fourth example: <code>&lt;Custom action id="RunOutlookVSTO" etc&gt;</code><br>
  Error: Does not understand custom at compile.</p>
  
  <p>EDIT:
  Seems to be a bit of a confusion, just to be clear - yes I tried the registry key, and it is being ignored by the Office applications (Outlook, Word, Excel).</p>
  
  <pre><code>&lt;RegistryKey Action="none" Root="HKLM" Key="SOFTWARE\Microsoft\Office\14.0\User Settings\"&gt;
              &lt;RegistryKey Id="CreateVSTOOutlook" Action="createAndRemoveOnUninstall" 
                           Key="OUR.Outlook2010AddIn\Create\Software\Microsoft\Office\Outlook\Addins\OUR.Outlook2010AddIn"&gt;
                &lt;RegistryValue Id="CmdLineOutlook" Name="CommandLineSafe" Value="1" Type="integer"&gt;&lt;/RegistryValue&gt;
                &lt;RegistryValue Id="descOutlook" Name="Description" Value="Tilføjelsesprogram til Outlook 2010" Type="string"&gt;&lt;/RegistryValue&gt;
                &lt;RegistryValue Id="nameOutlook" Name="FriendlyName" Value="Outlook 2010 AddIn" Type="string"&gt;&lt;/RegistryValue&gt;
                &lt;RegistryValue Id="LoadOutlook" Name="LoadBehavior" Value="3" Type="integer"&gt;&lt;/RegistryValue&gt;
                &lt;RegistryValue Id="manifestOutlook" Name="Manifest" Value="[INSTALLDIR]OUR.Outlook2010AddIn.vsto|vstolocal" Type="string"&gt;&lt;/RegistryValue&gt;
              &lt;/RegistryKey&gt;
            &lt;/RegistryKey&gt;
  </code></pre>
  
  <p>Any ideas what I could try next?</p>