How to move progress bar during custom action

荒凉一梦 提交于 2019-12-22 17:50:01

问题


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 ?

Advance thanks \ Velu


回答1:


Use ProgressText element.

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.

Sample:

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

Outputs:

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

etc.



来源:https://stackoverflow.com/questions/2783448/how-to-move-progress-bar-during-custom-action

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