Hello

I have a couple of problems with my installer on a major upgrade. I'm using Wix 
3.5.

My installer has 2 features and I use the MajorUpgrade element available with 
Wix 3.5 to do my major upgrade. 

Here is what I did:

Product Code and version changed within the new installer.
As I use "MajorUpgrade" element, I removed my explicit declaration of 
RemovedExistingProducts as "MajorUpgrade" seems it schedules it. From the 
documentation, I understand "MajorUpgrade" schedules also MigrateFeatureStates 
and this is good as I want to take advantage of this MSI feature (more below).
ALLUSERS property is set to 1 in both installers.

Here is what I get:

Install the first version of the product which installs fine; then launch the 
installer for the newer version to perform an upgrade.
I do a verbose log and I get a couple of strange things:

Action 15:29:09: FindRelatedProducts. Searching for related applications
Action start 15:29:09: FindRelatedProducts.
FindRelatedProducts: Found application: {C0C6FEAB-9024-481E-BB4F-7A54EC0BA765}
MSI (c) (C8:A0) [15:29:09:708]: PROPERTY CHANGE: Adding PREVFOUND property. Its 
value is '{C0C6FEAB-9024-481E-BB4F-7A54EC0BA765}'.
Action ended 15:29:09: FindRelatedProducts. Return value 1.

...

MSI (c) (C8:A0) [15:29:09:817]: Doing action: MigrateFeatureStates
Action 15:29:09: MigrateFeatureStates. Migrating feature states from related 
applications
Action start 15:29:09: MigrateFeatureStates.
Action ended 15:29:09: MigrateFeatureStates. Return value 0.

...

Plenty of 

Disallowing installation of component: {83D1BFA5-5703-43F2-AB56-BB0630B8E921} 
since the same component with higher versioned keyfile exists

...

My 2 features are absent from the installation 

MSI (s) (5C:FC) [15:29:23:721]: Feature: FullInstallation; Installed: Absent;   
Request: Null;   Action: Null

MSI (s) (5C:FC) [15:29:23:721]: Feature: DcServer; Installed: Absent;   
Request: Null;   Action: Null



This explains why no upgrade is done, the question is why they are absent? I 
select them through a UI which changed like below compared to the previous 
version of my installer:

Old version:

<InstallUISequence>
        <Custom Action="FillingListBox" After="CostFinalize" />
</InstallUISequence>

New version:

<InstallUISequence>
        <Custom Action="FillingListBox" After="MigrateFeatureStates" />
</InstallUISequence>


Nothing is removed like for a major upgrade (and it says this is maintainance 
or uninstall):

MSI (s) (5C:FC) [15:29:23:736]: Doing action: RemoveExistingProducts
Action 15:29:23: RemoveExistingProducts. Removing applications
Action start 15:29:23: RemoveExistingProducts.
MSI (s) (5C:FC) [15:29:23:736]: Skipping RemoveExistingProducts action: current 
configuration is maintenance mode or an uninstall
Action ended 15:29:23: RemoveExistingProducts. Return value 0.

So it looks like MigrateFeatureStates doesn't detect the feature state of the 
current installation to set it for the new version of the installer.

Here is the Upgrade table for the initial installer:

Upgrade code                                                   Version         
Attributes   ActionProperty
{CB09E96B-19D6-439C-9A40-68143559032A}     6.6.0             258           
NEWERFOUND
{64EF24E1-8FC8-44C0-B9AD-981D638B4596}    6.5.0    6.6.0  256           
PREVFOUND

And here is the Upgrade table for the new installer:

{CB09E96B-19D6-439C-9A40-68143559032A}    6.7.0   1 WIX_UPGRADE_DETECTED
{CB09E96B-19D6-439C-9A40-68143559032A}    6.7.0   2 WIX_DOWNGRADE_DETECTED

Anyone has an idea what am I doing wrong?

Thanks!





      
------------------------------------------------------------------------------
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

Reply via email to