LogEx是NSIS支持记录字符日志的插件

/*
LogEx是NSIS支持记录字符日志的插件
*/
!AddPluginDir "../../Plugins"
Name "LogEx Example"
OutFile "LogEx.exe"
ShowInstDetails show
Page InstFiles
Section
 LogEx::Init "$TEMPlog.txt"r
 LogEx::Write "Write this line to the log file only"
 LogEx::Write true "Write this line to the log file and the status list box"
 LogEx::Write true true "Write this line to the log file, the status list box and the statusbar"
 ExecDos::exec 'cmd /C dir' "" "$TEMPoutput.log"
 LogEx::Write 'Write complete "dir" output to the log file with ">" as prefix'
 LogEx::AddFile " >" "$TEMPoutput.log"
 LogEx::Write 'Write "dir" output from line3 to the log file'
 LogEx::AddFile 3 "" "$TEMPoutput.log"
 LogEx::Write 'Write "dir" output from line3 to line6 to the log file'
 LogEx::AddFile 3 6 "" "$TEMPoutput.log"
 LogEx::Close
SectionEnd
© 版权声明
THE END
喜欢就支持一下吧
点赞11 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容