Hello, Could you please give me some tips or solution how to prevent from uninstalling package in bundle at the end (that is not being upgraded and is exactly the same like in previous setup).
I was trying to create dependency in registry by "Provides": <MsiPackage ForcePerMachine="yes" Id="Interface0020" After="MATRIS" SourceFile="..\Binaries\RP1210A\88890020Installer.msi" Name="Packages\RP1210A\88890020Installer.msi" Visible="yes" Compressed="yes" EnableFeatureSelection="no" DisplayName="88890020" DisplayInternalUI="no" Vital="no"> <dep:Provides Key="88890020" Version="1.0.142.0" /> </MsiPackage> I checked that key is created in registry in "HKCR\Installers", but when uninstall script is launched on old setup, package and key are being removed. Is this key verified by Windows somehow? I was trying to create "dependents" key inside 88890020, but it also doesn't help. This is how it looks from logs: 1. I am installing setup version 1.0.0. It includes a few packages (gathered in bootstrapper), among other “Interface0020”. [0FD0:046C][2013-06-25T13:24:28]: Detected package: Interface0020, state: Absent, cached: Partial [0FD0:046C][2013-06-25T13:24:30]: Planned package: Interface0020, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: None 2. After that I am installing application version 1.0.0.1. This installer is upgrade (new product code, the same upgrade code, new version). It contains new main package and exactly the same package for “Interface0020”. [0A80:0DB8][2013-06-25T13:54:57]: Burn v3.6.3303.0, Windows v5.1 (Build 2600: Service Pack 3), path: E:\Installers\Setup.exe, cmdline: '' [0A80:0DB8][2013-06-25T13:54:57]: Detected related bundle: {4e82567f-b62a-48ca-a7ef-f74874cb627c}, type: Upgrade, scope: PerUser, version: 1.0.0.0, operation: MajorUpgrade [0A80:0DB8][2013-06-25T13:54:57]: Detected related package: {2AA27D99-DB0A-474E-A60C-DA28EE228C11}, scope: PerMachine, version: 2.0.0.0, language: 0 operation: MajorUpgrade [0A80:0DB8][2013-06-25T13:54:57]: Detected package: Interface0020, state: Present, cached: Complete [0A80:0DB8][2013-06-25T13:55:00]: Planned package: Interface0020, state: Present, default requested: Present, ba requested: Present, execute: None, rollback: None, cache: No, uncache: No, dependency: None Finally installer is executed again with uninstall command. It happens automatically, at the end of installation of application version 1.0.0.1: [0674:0D1C][2013-06-25T14:00:26]: Burn v3.6.3303.0, Windows v5.1 (Build 2600: Service Pack 3), path: C:\Documents and Settings\MatrisAdmin\Local Settings\Application Data\Package Cache\{4e82567f-b62a-48ca-a7ef-f74874cb627c}\Setup.exe, cmdline: '-uninstall -quiet -burn.related.upgrade -burn.embedded BurnPipe.{EBD75B83-C794-486A-8976-43BF7C194307} {18513FCA-A3F7-4ECE-96A9-69CA4F259BCE} 2688' [0674:0D1C][2013-06-25T14:00:26]: Detected package: Interface0020, state: Present, cached: Complet [0674:0D1C][2013-06-25T14:00:26]: Planned package: Interface0020, state: Present, default requested: Absent, ba requested: Absent, execute: Uninstall, rollback: Install, cache: No, uncache: Yes, dependency: None Please provide me with some tips. Best Regards, Maciej -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Prevent-from-uninstalling-when-upgrade-with-bundle-tp7586651.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users