如何在自定义操作期间移动进度栏 [英] How to move progress bar during custom action

查看:85
本文介绍了如何在自定义操作期间移动进度栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在安装程序中运行自定义操作时,没有进度栏。我们正在使用即时C#管理代码自定义操作。

While running the custom action in the installer there is no progress bar. We are using the Immediate C# manage code custom action.

运行自定义操作时是否还有其他方式显示进度?

Is any other ways to show the progress while running the custom action ?

预先感谢
\
Velu

Advance thanks \ Velu

推荐答案

使用ProgressText元素。

Use ProgressText element.

模板属性是放置令牌以反映进度的位置。例如,请参见标准的InstallFiles操作。表格 ActionData消息列出了此操作的可能标记。

The 'Template' attribute is the place to put tokens to reflect the progress. See the standard InstallFiles action for example. The table "ActionData messages" lists the possible tokens for this action.

示例:

<ProgressText Action="InstallFiles" Template="File: [9][1]">!(loc.InstallFilesActionText)</ProgressText>

输出:

文件:C: \程序文件\MyApp\bin\my.dll

File: C:\Program Files\MyApp\bin\my.dll

等。

这篇关于如何在自定义操作期间移动进度栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆