Wix Burn Bootstrapper MajorUpgrade

2019-06-08 01:20发布

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.

1条回答
三岁会撩人
2楼-- · 2019-06-08 01:34

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

查看更多
登录 后发表回答