Note that there are some explanatory texts on larger screens.

plurals
  1. POConditional uninstall of previous version in Wix
    primarykey
    data
    text
    <p>I'm doing an installer for an software used for debugging embedded ARM cores (OpenOCD) and this installer automatically removes the previous versions - that's simple. However, sometimes that would be desirable to have more than just one version installed (each version has it's own folder, so there's no conflict here) due to various (in-)compatibility issues etc.</p> <p>I'm trying to create an installer which would have an option in the Feature tree (or anywhere else) to uninstall (or not) the previous version.</p> <p>Basically there is this install sequence:</p> <pre><code>&lt;InstallExecuteSequence&gt; &lt;Custom Action="NewerVersionDetected" After="FindRelatedProducts"&gt;DOWNGRADE&lt;/Custom&gt; &lt;RemoveExistingProducts After="InstallFinalize"/&gt; &lt;/InstallExecuteSequence&gt; </code></pre> <p>I know that RemoveExistingProducts can be made conditional by putting a condition between RemoveExistingProducts tags but... what should the condition be? There's a lot of info about making features conditional or about conditions like OS version and some registry entries, but I haven't found any useful info about "user-defined conditions"...</p> <p>Let's say that in the feature tree there is this element:</p> <pre><code>&lt;Feature Id="UninstallOlderVersionFeature" Title="Uninstal previous versions" Level="1" Description="..."/&gt; </code></pre> <p>How to make uninstallation previous version conditional on this feature (or any other method the user could select during the installation - a question box or a separate window or whatever it takes)?</p> <p>Any help appreciated (by me and the users of the installer), as I'm not very good in Wix and XML (I'm an embedded person (; )</p> <p>If any more details on the whole Wix file are required - tell me and I'll post relevant bits.</p>
    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. 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