Sorry.. the solution was to execute the msi like this:
msiexec.exe /I product.msi REINSTALL=All REINSTALLMODE=vomus So I am not stuck anymore. Regards, Daniel Daniel Marjamäki wrote: > > I am having trouble with upgrades. > Upon installation I want to completely uninstall any old versions. > > I have seen so many answers about this in various places. But nothing > works. > > I use the same UpgradeCode in both old and new versions. > I use the same Product Id in both old and new versions. > > I use wix 3.0.5419.0 > > Here is my WIX code: > > <Upgrade Id='$(var.ProductUpgradeCode)'> > <UpgradeVersion OnlyDetect='no' Property='PREVIOUSFOUND' > Minimum='1.0.0' IncludeMinimum='yes' > Maximum='$(var.ProductVersion)' IncludeMaximum='no' /> > </Upgrade> > > <InstallExecuteSequence> > <RemoveExistingProducts After="InstallInitialize" /> > </InstallExecuteSequence> > > When I compile that I get no error messages. > When I execute the MSI I get an error message that another version is > already installed and I need to uninstall that manually. > > What is the PREVIOUSFOUND good for? I don't have it anywhere else in my > WIX file. None of the answers I have seen so far have explained this. > > I wonder how the RemoveExistingProducts knows which entry to look at in > the upgrade table. If I have two UpgradeVersion elements in the upgrade > table (to also prevent downgrade) then a newer version of my program might > be matched in the upgrade table. > > -- View this message in context: http://n2.nabble.com/Upgrading-tp4042099p4042249.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users