Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>What does your <code>&lt;RemoveExistingProducts After=""&gt;</code> step look like? It could be that the removeexisting is running after the install -- and removing all files that were the same in the previous and current versions.</p> <p>I have my installer set to <code>&lt;RemoveExistingProducts After="InstallInitialize"&gt;</code> to make sure it's done before anything else. I don't know if it's right or not, but it seems to work.</p> <pre><code> &lt;Upgrade Id="$(var.UpgradeCode)"&gt; &lt;!--Upgrade code found at http://www.nichesoftware.co.nz/blog/200809/upgradable-msi-installations-with-wix --&gt; &lt;!-- Detect any newer version of this product--&gt; &lt;UpgradeVersion Minimum="$(var.version)" IncludeMinimum="no" OnlyDetect="yes" Language="1033" Property="NEWPRODUCTFOUND" /&gt; &lt;!-- Detect and remove any older version of this product--&gt; &lt;UpgradeVersion Maximum="$(var.version)" IncludeMaximum="yes" OnlyDetect="no" Language="1033" Property="OLDPRODUCTFOUND" /&gt; &lt;/Upgrade&gt; &lt;CustomAction Id="PreventDowngrading" Error="Newer version already installed"&gt;&lt;/CustomAction&gt; &lt;InstallExecuteSequence&gt; &lt;!-- Prevent Downgrading--&gt; &lt;Custom Action="PreventDowngrading" After="FindRelatedProducts"&gt;NEWPRODUCTFOUND&lt;/Custom&gt; &lt;RemoveExistingProducts After="InstallInitialize" /&gt; &lt;/InstallExecuteSequence&gt; &lt;InstallUISequence&gt; &lt;!-- Prevent Downgrading--&gt; &lt;Custom Action="PreventDowngrading" After="FindRelatedProducts"&gt;NEWPRODUCTFOUND&lt;/Custom&gt; &lt;/InstallUISequence&gt; </code></pre>
 

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