MsiExec progress catch

与世无争的帅哥 提交于 2019-12-03 21:19:15

You probably will have to consume Windows Installer API directly if you want to monitor progress,

http://www.codeproject.com/Articles/5773/Wrapping-the-Windows-Installer-2-0-API

This CodeProject article shows a sample, while Microsoft has little information about the functions on MSDN,

http://msdn.microsoft.com/en-us/library/windows/desktop/aa370384(v=vs.85).aspx

http://msdn.microsoft.com/en-us/library/windows/desktop/aa368786(v=vs.85).aspx

PresleyDias

instead of this

So is it possible to "catch" msiexec progress and for example update a progressbar on my app?

you can have a normal progresBar that will keep running until the task has been done something like this

     myProgressBar.Style = ProgressBarStyle.Marquee;

from Marquee also check msdn.microsoft.com

1.Keep a check if msiexec is running

2.start the myProgressBar.Style = ProgressBarStyle.Marquee;

3.Keep running

4.If msiexec has finished then hide the progresBar

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