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?
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.
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.
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'.
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With