简体   繁体   English

是否可以在Windows的静默安装中显示错误

[英]Is it possible to show errors in silent install in windows

I have a created an installer using WiXStandardBootstrapperApplication. 我使用WiXStandardBootstrapperApplication创建了一个安装程序。 The intention is to run it silently and I do that using the /quiet flag and it runs silently just fine. 目的是静默运行它,而我使用/ quiet标志执行此操作,它可以静默运行就可以了。 The way it runs is, as soon as I enter the command on the command prompt the control returns to the command prompt instantly and the installation happens at the background. 它的运行方式是,一旦我在命令提示符下输入命令,控件便立即返回到命令提示符,并且安装在后台进行。 So if there are any errors or even in the case of Success, I don't know whether it completed fine or for what reason it failed. 因此,如果有任何错误,甚至在成功的情况下,我都不知道它是否完成正常或由于什么原因而失败。 In linux, I can run a command silently and the console will show the progress of what are the things that it is doing. 在linux中,我可以静默运行命令,控制台将显示其正在执行的操作的进度。 Can I do something similar in Windows? 我可以在Windows中做类似的事情吗? I initiate the command and the logs are displayed on the console or at the very least a Success or Failure message is shown on the console window before it stops the execution. 我启动命令,日志将在控制台上显示,或者至少在停止执行之前在控制台窗口上显示成功或失败消息。

I am aware about the messages being logged in the log file but wanted something to come on the console itself. 我知道正在日志文件中记录的消息,但希望控制台本身出现一些消息。 Thanks for your help in advance. 感谢您的帮助。

The point of /quiet switch is to have a silent installer. / quiet开关的目的是要有一个静默安装程序。 That contradicts the requirement to show any UI. 这与显示任何UI的要求相矛盾。 If the installer encounters any errors, it will return exit code other then 0. Details about the failure are in setup logs. 如果安装程序遇到任何错误,它将返回除0以外的退出代码。有关失败的详细信息在安装日志中。

WiX does not do any console logging. WiX不执行任何控制台日志记录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM