Documentation
¶
Overview ¶
Command nsgoinstaller writes Frostmail's additions into the NSIS script that nsgo build writes for the NSGo client's Windows package (docs/design/desktop.md, Windows):
nsgoinstaller -script FrostMail.nsi [-define NAME=VALUE]... INCLUDE...
NSGo's script has no place for an app's own steps. This command puts the INCLUDE files into it, in their order, ahead of .onInit, with a !define for each -define ahead of them, and their 3 macros where they run: FM_INIT in .onInit, FM_INSTALL at the end of the install section, and FM_UNINSTALL in the uninstall section, among the steps that undo the registered install. The script is edited in place: the installer takes every other file of its folder, so nothing is written beside it.
Each place is found by a line of NSGo's script, which must be there exactly once. A script that another version of NSGo writes otherwise is refused, so no installer is compiled without the additions.