I'm having a problem: turns out the removal is not taking place at all. I
guess I didn't notice this before. When I install my update overtop of an
existing installation and look at add/remove programs, there are two
entries: one for each version.

Can someone give me a clue as to what's wrong? I've compared the msi's for
both this and my old product that worked properly and they appear to be
similar. Here's what I have in product.wxs:

<Upgrade Id="$(var.UpgradeCode)">
        <UpgradeVersion Maximum="$(var.ProductVersion)"
                Property="PREVIOUSVERSIONSINSTALLED" />
</Upgrade>

<InstallExecuteSequence>
        <ScheduleReboot After="InstallFiles"
                Suppress="no">REBOOT = 1 AND UILevel = 5 AND NOT
Installed</ScheduleReboot>
        <RemoveExistingProducts After="InstallFinalize" />
        <Custom Action="LaunchApplication"
                After="RemoveExistingProducts">UILevel &lt; 5 AND NOT Installed 
AND NOT
REBOOT = 1</Custom>
        <Custom Action="RunUninstall"
                After="RemoveExistingProducts">REMOVE = "ALL" AND NOT
UPGRADINGPRODUCTCODE</Custom>
</InstallExecuteSequence>

<Binary Id="uninstall.exe"
        SourceFile="Resources/uninstall.exe" />

<CustomAction Id="LaunchApplication"
        FileKey="OrangeNote.exe"
        ExeCommand="-updated"
        Return="asyncNoWait"
        Impersonate="yes" />
<CustomAction Id="RunUninstall"
        BinaryKey="uninstall.exe"
        ExeCommand="-test"
        Execute="immediate"
        Return="check" />

Anything obviously wrong or missing??

-----
A. Logan Murray
http://pihole.org/
-- 
View this message in context: 
http://n2.nabble.com/Run-CA-on-uninstall%2C-but-not-when-updating-%28RemovePreviousVersions%29-tp1372539p1373492.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to