Writing NSIS files

class nsist.nsiswriter.NSISFileWriter(template_file, installerbuilder, definitions=None)[source]

Write an .nsi script file by filling in a template.

__init__(template_file, installerbuilder, definitions=None)[source]

Instantiate an NSISFileWriter

Parameters:
  • template_file (str) – Path to the .nsi template
  • definitions (dict) – Mapping of name to value (values will be quoted)
write(target)[source]

Fill out the template and write the result to ‘target’.

Parameters:target (str) – Path to the file to be written