Wix Burn Bootstrapper MajorUpgrade

不想你离开。 提交于 2019-12-08 08:32:52

问题


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:


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



来源:https://stackoverflow.com/questions/17676657/wix-burn-bootstrapper-majorupgrade

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!