Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>From the msdn topic on <a href="http://msdn.microsoft.com/en-us/library/aa371626%28VS.85%29.aspx" rel="noreferrer">sequencing custom actions</a>:</p> <blockquote> <p>As in the case of standard actions, custom actions that are scheduled in the InstallUISequence or AdminUISequence run only if the internal user interface is set to the full level.</p> </blockquote> <p>So I guess your custom action is scheduled in a UI sequence, not in <code>InstallExecuteSequence</code>. Try scheduling your custom action in the <code>InstallExecuteSequence</code> like this:</p> <pre><code> &lt;InstallExecuteSequence&gt; &lt;Custom Action='LaunchApplication' After='InstallFiles'/&gt; &lt;/InstallExecuteSequence&gt; </code></pre> <p>where "LaunchApplication" should be replaced by the <code>Id</code> of your <code>CustomAction</code> element.</p> <p><strong>edit</strong>: I looked at the <a href="http://www.dizzymonkeydesign.com/blog/misc/adding-and-customizing-dlgs-in-wix-3/" rel="noreferrer">instructions</a> that you followed, and I don't see the custom action for launching the application being scheduled in any sequence. It is only triggered from a UI action (clicking the Finish button). This explains why it is never executed during a silent install.</p> <p><strong>edit</strong>: full sample (it's a bit sloppy as it also tries to execute the custom action on uninstall, repair etc. but for some reason I couldn't get the "NOT Installed" condition to work)</p> <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt; &lt;Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'&gt; &lt;Product Name='ProductName' Id='*' Language='1033' Version='0.0.1' Manufacturer='ManufacturerName' &gt; &lt;Package Keywords='Installer' Description='Launch application demo' Manufacturer='ManufactererName' InstallerVersion='100' Languages='1033' Compressed='yes' SummaryCodepage='1252'/&gt; &lt;Media Id='1' Cabinet='test.cab' EmbedCab='yes'/&gt; &lt;Directory Id='TARGETDIR' Name="SourceDir"&gt; &lt;Directory Id='ProgramFilesFolder'&gt; &lt;Directory Id='TestFolder' Name='Test' &gt; &lt;Component Id="ExeComponent" Guid="*"&gt; &lt;File Id="ExeFile" Source="c:\windows\notepad.exe" /&gt; &lt;/Component&gt; &lt;/Directory&gt; &lt;/Directory&gt; &lt;/Directory&gt; &lt;Feature Id='Complete' Display='expand' Level='1' Title='Test' Description='Test'&gt; &lt;ComponentRef Id="ExeComponent" /&gt; &lt;/Feature&gt; &lt;InstallExecuteSequence&gt; &lt;Custom Action='LaunchInstalledExe' After='InstallFinalize'/&gt; &lt;/InstallExecuteSequence&gt; &lt;CustomAction Id="LaunchInstalledExe" FileKey="ExeFile" ExeCommand="" Execute="immediate" Impersonate="yes" Return="asyncNoWait" /&gt; &lt;/Product&gt; &lt;/Wix&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload