创建安装log

●Windows安装log
▪i - Status messages
▪w - Nonfatal warnings
▪e - All error messages
▪a - Start up of actions
▪r - Action-specific records
▪u - User requests
▪c - Initial UI parameters
▪m - Out-of-memory or fatal exit information
▪o - Out-of-disk-space messages
▪p - Terminal properties
▪v - Verbose output
▪x - Extra debugging information
▪+ - Append to existing log file
▪! - Flush each line to the log
▪* - Log all information, except for v and x options
最常用的日志记录命令是/ L * V。 该命令将创建一个详细的日志,
提供有关安装的大量信息。 以下是创建日志的步骤:
①找出MSI文件的路径,例如C:\ MyPackage \ Example.msi
②决定日志的路径,例如C:\ log \ example.log
③打开cmd.exe(你可以使用任何命令shell)
④使用msiexec命令行来启动带有日志记录参数的MSI
(1),创建安装log。
msiexec /i "C:\MyPackage\Example.msi" /L*V "C:\log\example.log"
(2),创建卸载log。
msiexec /x "C:\MyPackage\Example.msi" /L*V "C:\log\example.log"
(3)创建升级包的log.
msiexec /p "C:\MyPackage\Patch.msp" /L*V "C:\log\patch.log
●InstallShield创建log。
▪/v : Pass command-line parameters to the .msi package
▪/s : Silent
▪/p : Password mode
▪/a : Administrative installation
▪/j : Advertise mode
▪/x : Uninstall mode
▪/f : Repair mode
▪/ua : Install Windows 9x MSI Engine
▪/uw : Install Windows NT MSI Engine
▪/b : Cache installation locally
▪/debuglog : Generate a log file for debugging
▪/w : Wait
例:
①Passing Parameters to the .msi File Within Setup.exe
Setup.exe /v"/l*v \"c:\My Log Files\test.log\""
Setup.exe /v"/l*v \"c:\My Log Files\test.log\" /qn"
Setup.exe /v"/l*v \"c:\My Log Files\test.log\"" /v"/qn"
②Running Setup.exe Silently
Setup.exe /s /v/qn
③Specifying a Password from the Command Line
Setup.exe /s /v/qn /p"password"
④Uninstall
Setup.exe /v/x
⑤Generate a Log File for Debugging
Setup.exe /debuglog"C:\PathToLog\setupexe.log"
⑥Requiring Setup.exe to Wait
start /WAIT setup.exe /w

 

https://www.advancedinstaller.com/user-guide/qa-log.html
http://helpnet.flexerasoftware.com/isxhelp19/helplibrary/IHelpSetup_EXECmdLine.htm
https://serverfault.com/questions/61883/does-installshield-keep-a-log-during-installation
http://www.installationdeveloper.com/686/using-log-files-in-installshield/
https://stackoverflow.com/questions/14527160/turning-msi-logging-on-from-an-installshield-exe
https://support.symantec.com/en_US/article.HOWTO2906.html

posted @ 2018-05-11 19:30  山的那一边  阅读(306)  评论(0编辑  收藏  举报