build_nsis_config: Build the electron-builder 'nsis' block from installer config

View source: R/build-package-json.R

build_nsis_configR Documentation

Build the electron-builder nsis block from installer config

Description

Maps installer.one_click, installer.allow_to_change_installation_directory and installer.per_machine onto electron-builder's oneClick, allowToChangeInstallationDirectory and perMachine. Each option is emitted only when the config sets it, so electron-builder's own defaults apply otherwise: the one-click installer installs for the current user, and the wizard (one_click: false) asks whether to install for all users and does not offer a directory page. validate_config() has already checked the values.

Usage

build_nsis_config(config)

Arguments

config

List. The effective configuration.

Details

installer.license_file becomes the NSIS license, pointing at the copy that copy_installer_license() places in the generated project.

Value

A named list for the package.json build.nsis field, empty when no installer option is set.


shinyelectron documentation built on Dec. 3, 2026, 9:07 a.m.