DumpLog plug-in: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 21: Line 21:
MessageBox MB_OK "$0"</highlight-nsis>
MessageBox MB_OK "$0"</highlight-nsis>


The output variable is '''necessary'''. The installer will crash without it. It should return 0 if nothing went wrong.
The output variable reference is '''necessary'''. The installer will crash without it. It should return 0 if nothing went wrong. Do not use a variable name - e.g:
<highlight-nsis>$0</highlight-nsis>
 
Use a reference to that variable name - e.g:
<highlight-nsis>.0</highlight-nsis>


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

Revision as of 09:17, 5 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.

dumplog::DumpLog "$INSTDIR\log.txt" .r0
MessageBox MB_OK "$0"

The output variable reference is necessary. The installer will crash without it. It should return 0 if nothing went wrong. Do not use a variable name - e.g:

$0

Use a reference to that variable name - e.g:

.0