Cmd安装msi:如何让msi包安装过程在cmd而不是Windows安装程序gui中进行

关于Cmd安装msi的问题,在msi how to install windows中经常遇到, 如何制作一个批处理文件,自动安装 java,office 和 adobe 的东西没有 gui,而不是我想让整个过程发生在命令提示符内。例如,我想在命令提示符内有一个栏,告诉我安装过程有多远。我如何做到这一点,我在互联网上找不到它。这是我已经有的一个例子:

如何制作一个批处理文件,自动安装 java,office 和 adobe 的东西没有 gui,而不是我想让整个过程发生在命令提示符内。例如,我想在命令提示符内有一个栏,告诉我安装过程有多远。我如何做到这一点,我在互联网上找不到它。这是我已经有的一个例子:

@echo off
echo Installing application...
msiexec.exe /passive /i "%~dp0skypesetup.msi"
echo Install failed.
pause

这里我有 msi 文件,如果你想帮助我:http://www.skype.com/go/getskype-msi

有谁知道如何在命令 promt 中使用百分比栏制作一个程序?

2

对于外部 GUI,您可以检查MsiSetExternalUI function(按照链接)。对于静默安装,基本的 msiexec.exe 命令行是:

msiexec.exe /I "C:\MsiFile.msi" /QN /L*V "C:\msilog.log"

快速解释

/I is for install 
/QN is silent mode
/L*V is verbose logging

一些链接

Silent Install of MSI What is different about a silent installation session Common msiexec.exe command lines Here is an answer that discusses alternative ways to install a package without using msiexec.exe How to disable an extra window to restart system even after selecting not to do so in files in use dialog in installshield
0

愚蠢的我:(,我 'v 搜索了很多,终于找到了。我以为我必须使用 msi,但我也可以用.exe 文件来做。愚蠢的我。这里是代码,如果有人想要它或需要它:

@ECHO OFF
echo Do you want to install ccleaner
pause
ccleaner.exe /S /L=1043
echo You've succesfully installed ccleaner
pause

本站系公益性非盈利分享网址,本文来自用户投稿,不代表码文网立场,如若转载,请注明出处

(303)
移动web开发教程:C# Web开发教程(asp net c# web application tutorial)
上一篇
Python变量互换:可互换字典(define interchangeably)
下一篇

相关推荐

发表评论

登录 后才能评论

评论列表(42条)