NSISLog plug-in: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Reverted edits by 122.162.73.246 to last version by Deguix)
Line 22: Line 22:
Hope its useful.<br>
Hope its useful.<br>
McKenna
McKenna
Fuckingly useful it is


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

Revision as of 18:12, 5 March 2009

Download Link

Nsislog.zip (23 KB)

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