自定义安装程序 [英] Custom Installer application
问题描述
你好,
我想创建一个窗口应用程序,它将安装其他应用程序而不显示安装程序窗口。
我已创建 -
1.一个.msi安装应用程序。
2.将安装的批处理文件没有显示安装程序窗口的msi应用程序
(无提示安装)。
3.带有按钮的Windows应用程序。在该按钮的点击事件中,我调用一个新进程并执行批处理文件。
我想显示一个进度条,显示msi安装程序的进度。
请用适当的代码帮助我。
我感谢所有答案。
如果您对此有任何疑问问题,请随时与我联系。
谢谢和问候
Raghubir Sarkar
+(从不投入你在公共论坛上的电话!)
(永远不要把你的电子邮件放在公共论坛上!)
Hello there,
I want to create a window application that will install other application without showing the installer window.
I have create -
1. a .msi setup application.
2. a batch file that will install the msi application without showing installer window
(Silent installation).
3. a windows application with a button. in click event of that button i call a new process and execute the batch file.
I want to show a progress bar that will show the progress of msi installer.
Please help me with appropriate code.
I appreciate All answers.
If you have any question about this question, Please feel free to contact me.
Thanks and Regards
Raghubir Sarkar
+(NEVER PUT YOUR PHONE IN A PUBLIC FORUM!)
(NEVER PUT YOUR EMAIL IN A PUBLIC FORUM!)
推荐答案
这里没有代码。在安装过程中,您不会从MSIEXEC获得任何进度信息。
您不需要批处理文件,实际上,您不需要甚至不需要任何代码来启动安装。您只需要正确的命令行参数,以便在安装过程中显示来自MSIEXEC的部分(基本)UI:
There is no code for this. You're not going to get any kind of progress information from MSIEXEC during the install.
You don't need a batch file for this and, really, you don't even need any code to launch the installation. All you need is the correct command line parameters to show a partial(basic) UI from MSIEXEC during the install:
msiexec /i filename.msi /qb-
这篇关于自定义安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!