DumpLog plug-in: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (DumpLog plugin moved to DumpLog plug-in)
No edit summary
Line 13: Line 13:
It is plugin version of [[User:KiCHiK|KiCHiK]]'s function "[[Dump_log_to_file]]".
It is plugin version of [[User:KiCHiK|KiCHiK]]'s function "[[Dump_log_to_file]]".
The main difference it is the speed of the dumping.
The main difference it is the speed of the dumping.
== Usage ==
Place dumplog.dll inside the {NSIS INSTALL DIR}\Plugins directory. Use the following sytax:
<highlight-nsis>DumpLog::Dumplog file_to_log_to user_var(status)</highlight-nsis>
e.g.
<highlight-nsis>Push $0
DumpLog::DumpLog "$INSTDIR\log.txt" $0
MessageBox MB_OK "$0"
Pop $0</highlight-nsis>
The output variable is '''necessary'''. The installer will crash without it. It should return 0 if nothing went wrong.


[[Category:Plugins]]
[[Category:Plugins]]

Revision as of 15:21, 3 April 2006

Author: Instructor (talk, contrib)


Links

Download v1.0:
DumpLog.zip (9 KB)

Description

This plugin will dump the log of the installer (installer details) to a file.


It is plugin version of KiCHiK's function "Dump_log_to_file". The main difference it is the speed of the dumping.

Usage

Place dumplog.dll inside the {NSIS INSTALL DIR}\Plugins directory. Use the following sytax:

DumpLog::Dumplog file_to_log_to user_var(status)

e.g.

Push $0
DumpLog::DumpLog "$INSTDIR\log.txt" $0
MessageBox MB_OK "$0"
Pop $0

The output variable is necessary. The installer will crash without it. It should return 0 if nothing went wrong.