简体   繁体   English

使用WiX自定义引导程序显示软件包安装进度

[英]Showing package installation progress with WiX custom bootstrapper

I'm currently developing a custom bootstrapper application for my WiX installer. 我目前正在为WiX安装程序开发自定义引导程序。

I currently include just a single package in my bundle to be installed and are showing the progress as following: 目前,我的软件包中仅包含一个要安装的软件包,并且显示进度如下:

private void Bootstrapper_Progress(object sender, ProgressEventArgs e)
{
    ApplyingPercentage = e.ProgressPercentage;
    OverallPercentage = e.OverallPercentage;

    if (Bootstrapper.EngineModel.UserCancellationRequested)
    {
        e.Result = Result.Cancel;
    }
}

Now, everyone knows about the "regular" installation progress the windows installer gives to the user. 现在,每个人都知道Windows Installer提供给用户的“常规”安装进度。

What I want to do is to give the user the same amount of progress in my custom bootstrapper application, which unfortunately only shows a tiny amount (0% - 50% - 100%). 我想要做的是在我的自定义引导程序应用程序中为用户提供相同数量的进度,不幸的是,它仅显示了很小的数量(0%-50%-100%)。

I assume it only shows the progress of installed packages within the bundle and not the progress of the actual package itself (which the Windows Installer shows on default, because only one package is going to get installed). 我假设它仅显示捆绑软件中已安装软件包的进度,而不显示实际软件包本身的进度(Windows Installer默认显示该软件包的进度,因为将只安装一个软件包)。

How can I do that? 我怎样才能做到这一点?

OnCacheAcquireProgressOverallPercentage提供更精细的缓存进步和OnExecuteProgressOverallPercentage提供了更细化的执行进度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM