建立安裝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
相關文章
相關標籤/搜索