Is your ProductCode different between packages? I suspect not as you've got it 
explicitly defined it in your code below & the error you are seeing is commonly 
caused by this. Try using Product@Id="*" to auto generate your ProductCode 
every time you build.

Also try updating Package@InstallerVersion="301". You can target Windows 
Installer 3.1 as far back as Windows 2000.

Palbinder Sandher 
Software Deployment Engineer
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 
Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 
0SP
Email Disclaimer

-----Original Message-----
From: John Thornborrow [mailto:j...@pinesoft.co.uk] 
Sent: 05 April 2011 12:25
To: 'wix-users@lists.sourceforge.net'
Subject: [WiX-users] Remove Existing Products

Hi Guys,

I'm trying to use Upgrade and RemoveExisitingProducts to completely remove a 
existing versions (both newer and older) of a product, but it always complains 
that a previous version is installed and I must remove it via add/remove 
programs. I don't need to worry about patching/partial upgrades, I just need to 
remove any and all existing versions. :)

The relevant parts of my WXS are pasted below, can anyone offer some pointers?

Thanks,
J.

<Product Id="{84346479-DD80-4af3-9402-094D72213EEA}"
           Name="Foo App"
           Language="1033"
           Version="$(var.ProductVersion)"
           Manufacturer="Foo Ltd."
           UpgradeCode="{A7726D9C-E0C2-45c5-BC43-9D8BFE5FB20D}">

    <Package InstallerVersion="200" Compressed="yes" />

    <Property Id="FOO" Secure="yes"/>

    <Upgrade Id="{A7726D9C-E0C2-45c5-BC43-9D8BFE5FB20D}">
      <UpgradeVersion Property="FOO" Minimum="0.0.0" Maximum="999.999.999" 
IncludeMinimum="yes"/>
    </Upgrade>

    <InstallExecuteSequence>
      <RemoveExistingProducts After="InstallFinalize"/>
    </InstallExecuteSequence>

________________________________

This email is from Pinesoft Limited. Its contents are confidential to the 
intended recipient(s) at the email address(es) to which it has been addressed. 
It may not be disclosed to or used by anyone other than the addressee(s), nor 
may it be copied in anyway. If received in error, please contact the sender, 
then delete it from your system. Although this email and attachments are 
believed to be free of virus, or any other defect which might affect any 
computer or IT system into which they are received and opened, it is the 
responsibility of the recipient to ensure that they are virus free and no 
responsibility is accepted by Pinesoft for any loss or damage arising in any 
way from receipt or use thereof.

Pinesoft Limited are registered in England, Registered number: 2914825. 
Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA
? Consider your responsibility to the environment - think before you print!
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to