最新消息:

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

nsis 永恒心锁 2445浏览 0评论
/*
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
永恒心锁,版权所有丨如未注明,均为转载丨本网站采用BY-NC-SA协议进行授权

转载请注明:永恒心锁-分享互联网 » LogEx是NSIS支持记录字符日志的插件

您必须 登录 才能发表评论!