问题描述
我使用Wix 3.7通过自定义WPF UI创建自举式安装程序.
I use Wix 3.7 to create bootstrapped installer with custom WPF UI.
我想实现以下用例:
1.用户下载该产品的版本 1 的安装程序并进行安装.
2.用户下载版本为 2 的安装程序,然后运行安装程序,该程序将检测以前的版本并建议升级.
3.用户按下"Upgrage"按钮,并将产品升级到版本2.
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);
在Temp的日志文件中,我找到:
in the log file located in Temp I find:
Plan begin, 1 packages, action: UpdateReplace
Error 0x8000ffff: Invalid package type.
无效的包装类型"是什么意思?我认为我已经对一些经验丰富的Wix开发人员犯了一些la脚的错误.
What does it mean "Invalid package type"? I think I've made some lame mistake obvious to more experienced Wix devs.
注意:
复制
我已经将MajorUpgrade
和Id="*"
用于Product
.
我已经将Product和Bundle的版本从1.0.1.0
提升到了1.0.2.0
.
我有一个星期的Wix经验.
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.
推荐答案
我刚刚将LaunchAction.Install
用于引导程序,并且它已用于升级方案.
I have just used LaunchAction.Install
for my bootstrapper and it has worked for updgrade scenarios.
这篇关于Wix Burn Bootstrapper MajorUpgrade的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!