Wix Burn Bootstrapper MajorUpgrade
Asked Answered
C

1

1

I use Wix 3.7 to create bootstrapped installer with custom WPF UI.

I want to implement the following use case:
1. User downloads installer for version 1 of the product and installs.
2. User downloads installer for version 2 and runs installer, which detects previous version and suggests upgrading.
3. User presses 'Upgrage' button and has the product upgraded to version 2.

I get the problem with the 3rd step. On user action I do the following:

_bootstrapper.Engine.Plan(LaunchAction.UpdateReplace);
_bootstrapper.Engine.Apply(_handle);

in the log file located in Temp I find:

Plan begin, 1 packages, action: UpdateReplace  
Error 0x8000ffff: Invalid package type.

What does it mean "Invalid package type"? I think I've made some lame mistake obvious to more experienced Wix devs.

Notes:
Repro
I've used MajorUpgrade and Id="*" for Product.
I've raised versions for both of Product and Bundle from 1.0.1.0 to 1.0.2.0.
I have one week of Wix experience.

Calkins answered 16/7, 2013 at 12:34 Comment(3)
I have just used LaunchAction.Install for my bootstrapper and it has worked for updgrade scenarios.Trahern
@Trahern Thanks, looks like when doing LaunchAction.Install Bootstrapper executes upgrade of my msi.Calkins
good to hear. Then I will submit that as an answer.Trahern
T
2

I have just used LaunchAction.Install for my bootstrapper and it has worked for updgrade scenarios.

Trahern answered 19/7, 2013 at 12:35 Comment(2)
This fixed my issue as well.Precursory
I followed similar but facing problems, posted here: #21855153Erlking

© 2022 - 2024 — McMap. All rights reserved.