Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Saving NSIS Install Log

What's the easiest way to save the install log that is displayed in NSIS? I seem to remember reading somewhere that you can recompile the NSIS code with a special flag to enable it to save the log. Is there an easier way?

like image 669
onedozenbagels Avatar asked May 14 '09 02:05

onedozenbagels


People also ask

How do I find MSI installer logs?

The log file, Msi. log, appears in the Temp folder of the system volume. For more information about MSI logging, see Windows Help. To do this, search by using the phrase msi logging, and then select Managing options for computers through Group Policy.

What is an NSIS file?

Text file written using NSIS (Nullsoft Scriptable Install System) script, a language used for declaring the logic and tasks for software installers; often references files and folders to install as well as Windows registry actions.

How do you compile NSIS?

NSIS installers are generated by using the 'MakeNSIS' program to compile a NSIS script (. NSI) into an installer executable. The NSIS development kit installer sets up your computer so that you can compile a . nsi file by simply right-clicking on it in Explorer and selecting 'compile'.


1 Answers

In an attempt to keep file sizes small, the default installation of the NSIS compiler doesn't make log files. Download the Special Build of a release and copy it over the makensis.exe application (and Stub folder) to patch it to have logging support.

Once you have done that, simply add the following to your script:

 LogSet on  

No other changes are needed. I have no idea why this isn't default as in my cases, it only adds 48 bytes to the filesize!

like image 146
Ray Hayes Avatar answered Sep 19 '22 14:09

Ray Hayes