Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I wrote this for <a href="http://wix.sourceforge.net/ctvision.html" rel="nofollow noreferrer">ClickThrough</a> a long time ago. Solution from that looks a lot like this (You provide a Property called "ApplicationFolderName"):</p> <p></p> <pre><code> &lt;Property Id="A" Secure="yes" /&gt; &lt;DirectoryRef Id="TARGETDIR"&gt; &lt;Directory Id="ApplicationFolder" Name="App" /&gt; &lt;/DirectoryRef&gt; &lt;Condition Message="Must specify TARGETDIR property when doing an administrative install."&gt;Installed OR (ACTION="ADMIN" AND TARGETDIR&amp;lt;&amp;gt;"")&lt;/Condition&gt; &lt;CustomAction Id="TARGETDIRtoA" Property="A" Value="[TARGETDIR]" Execute="firstSequence" /&gt; &lt;CustomAction Id="SpecifiedA" Property="ApplicationFolder" Value="[A]" Execute="immediate" /&gt; &lt;CustomAction Id="PerMachineInstall" Property="ApplicationFolder" Value="[ProgramFilesFolder]\[ApplicationFolderName]" Execute="immediate" /&gt; &lt;CustomAction Id="PerUserInstall" Property="ApplicationFolder" Value="[LocalAppDataFolder]\Apps\[ApplicationFolderName]" Execute="immediate" /&gt; &lt;InstallUISequence&gt; &lt;Custom Action="SpecifiedA" Before="LaunchConditions"&gt;NOT Installed&lt;/Custom&gt; &lt;/InstallUISequence&gt; &lt;InstallExecuteSequence&gt; &lt;Custom Action="PerMachineInstall" Before="CostFinalize"&gt;NOT Installed AND ACTION="INSTALL" AND A="" AND (ALLUSERS=1 OR (ALLUSERS=2 AND Privileged))&lt;/Custom&gt; &lt;Custom Action="PerUserInstall" Before="CostFinalize"&gt;NOT Installed AND ACTION="INSTALL" AND A="" AND (ALLUSERS="" OR (ALLUSERS=2 AND (NOT Privileged))&lt;/Custom&gt; &lt;/InstallExecuteSequence&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
    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