Create an MSI log file

一个人想着一个人 提交于 2019-11-26 06:37:12

问题


I have been trying to create a log file for an issue with our installer with the following commands:

msiexec /i \"installer.msi\" /l*v \"log.log\"
msiexec /i \"installer.msi\" /l*v
msiexec /l*v /i \"installer.msi\"
msiexec /l*v \"log.log\" /i \"installer.msi\"

and several other variations of the command, but it always pops up the window that states what command line parameters are valid for msiexec. What is the correct way to have the msi file create a log? I have windows installer 4.5.


回答1:


The first and the last command lines are correct:

msiexec /i "installer.msi" /l*v "log.log"
msiexec /l*v "log.log" /i "installer.msi"

And you can drop quotes in this particular case.




回答2:


If you are using Visual Studio 2008, use capital "/L" for the log option. Lower-case "/l" is ignored.

msiexec /i "installer.msi" /L*v "log.log"

This appears to have been fixed in later versions of msiexec.



来源:https://stackoverflow.com/questions/7126077/create-an-msi-log-file

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