NSISLog plug-in: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Added category links.)
m (Adding new author and category links.)
Line 1: Line 1:
{|align=right
{{PageAuthor|joost}}
|<small>Author: [[{{ns:2}}:joost|joost]] ([[{{ns:3}}:joost|talk]], [[{{ns:-1}}:Contributions/joost|contrib]])</small>
 
|}
<br style="clear:both;">
== Description ==
== Description ==
With this plugin you can write some text to a textfile at install time.
With this plugin you can write some text to a textfile at install time.
Line 24: Line 22:
McKenna
McKenna


[[{{ns:14}}:Plugins]]
[[Category:Plugins]]

Revision as of 13:16, 24 June 2005

Author: joost (talk, contrib)


Description

With this plugin you can write some text to a textfile at install time.

The Script

Section "Log test"
  ... do something ...
  nsislog::log "$INSTDIR\install.log" "before registering my dll"
  RegDll "$INSTDIR\mydll.dll"
  nsislog::log "$INSTDIR\install.log" "after registering my dll"
  ... do something more ...
SectionEnd

At any time you can use different files for your logs. After the call, your text is written and the file is closed.

Note: Very useful to debug a installation without a compilation of the NSIS compiler.

Hope its useful.
McKenna