Hi Thanks to all of you for the help. I was not changing my product ID lol thats why its was always saying that a newer version was installed.
But I found that this is not doing the same uninstall that Add/Remove Program do. I have many custom action that create things (SQL Server Database, Analysis Services OLAP Cube, Intergration Services Packages). I have coded custom action to Create all those components and some so delete them. Maybe my <InstallExecuteSequence> is not well coded ? What I would like to do is to execute the 2 Remove and 2 Delete custom action when the installer detect a new version. Anyone can help ? I work well at the moment when using uninstall from Add/Remove program. <InstallExecuteSequence> <RemoveExistingProducts After="InstallValidate" /> <Custom Action="CA_writePasswordInRegistry" After="InstallFinalize" Overridable="yes">NOT Installed</Custom> <Custom Action="ConfigureWebApp" After="InstallFinalize" Overridable="yes">NOT Installed</Custom> <Custom Action="CreateDW" After="InstallFinalize" Overridable="yes">NOT Installed</Custom> <Custom Action="DeploySSAS" After="CreateDW" Overridable="yes">NOT Installed</Custom> <Custom Action="DeploySSIS" After="DeploySSAS" Overridable="yes">NOT Installed</Custom> <Custom Action="CreateSQLJob" After="DeploySSIS" Overridable="yes">NOT Installed</Custom> <Custom Action="CA_readValueInRegistry" After="InstallFinalize" Overridable="yes" >Installed AND NOT UPGRADINGPRODUCTCODE</Custom> <Custom Action="DeleteSQLJob" After="CA_readValueInRegistry" Overridable="yes" >Installed AND NOT UPGRADINGPRODUCTCODE</Custom> <Custom Action="RemoveSSIS" After="DeleteSQLJob" Overridable="yes" >Installed AND NOT UPGRADINGPRODUCTCODE</Custom> <Custom Action="RemoveSSAS" After="RemoveSSIS" Overridable="yes" >Installed AND NOT UPGRADINGPRODUCTCODE</Custom> <Custom Action="DeleteDW" After="RemoveSSAS" Overridable="yes" >Installed AND NOT UPGRADINGPRODUCTCODE</Custom> <Custom Action="MakeWepApp20" After="InstallFinalize">ASPNETREGIIS AND NOT Installed</Custom> </InstallExecuteSequence> -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Automatic-remove-of-older-version-tp5589138p5591217.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users