Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

RInno (version 0.0.3)

setup: Setup Section of ISS

Description

This section contains global settings used by the installer and uninstaller. See [Setup] for details.

Usage

setup(iss, dir_out, app_version = "{#MyAppVersion}", name = "{#MyAppName}",
  publisher = "{#MyAppPublisher}", default_dir = "userdocs",
  privilege = "lowest", info_before = "infobefore.txt",
  info_after = "none", license_file = "none", setup_icon = "setup.ico",
  inst_pw = "none", pub_url = "{#MyAppURL}", sup_url = "{#MyAppURL}",
  upd_url = "{#MyAppURL}", compression = "lzma2/ultra64")

Arguments

iss

Character vector which cummulatively becomes an Inno Setup Script (ISS).

dir_out

Installer's directory. A sub-directory of app_dir, which will be created if it does not already exist. Defaults to 'RInno_installer'.

app_version

Version number of the app being installed, defaults to '0.0.0'. It is displayed in the Version field of the app's Add/Remove Programs entry. See [Setup]:AppVersion for details.

name

Defaults to ISPP directive, '{#MyAppName}' set by directives(app_name).

publisher

String displayed on the "Support" dialogue of the Add/Remove Programs Control Panel applet, defaults to " ". See [Setup]:AppPublisher for details.

default_dir

The default directory name used by the Select Destination Page of the installer. See [Setup]:DefaultDirName and Constants for details.

privilege

Valid options: 'poweruser', 'admin', 'lowest'. Defaults to 'lowest'. This directive affects whether elevated rights are requested when an installation is started. See [Setup]:PrivilegesRequired for details.

info_before

File, in .txt or .rtf format, which is displayed on the first page of the installer. It must be located in app_dir. See [Setup]:InfoBeforeFile for details.

info_after

File, in .txt or .rtf format, which is displayed on the last page of the installer. It must be located in app_dir. See [Setup]:InfoAfterFile for details.

license_file

File, in .txt or .rtf format, which is displayed before the Select Destination Page of the wizard. See [Setup]:LicenseFile for details.

setup_icon

File name of the icon used for installer/uninstaller. The file must be located in app_dir. See [Setup]:SetupIconFile for details.

inst_pw

Installer password, string. Visit the Inno Setup Downloads page and place ISCrypt.dll in your Inno Setup directory. Afterwards, if a inst_pw is supplied, then the contents of the installer will be encrypted using a 160-bit key derived from the password string. See [Setup]:Password and [Setup]:Encryption for details.

pub_url

String. Defaults to '{#MyAppURL}', which is the ISPP directive for main_url. Therefore, main_url will be used, unless otherwise specified. See [Setup]:AppPublisherURL for details.

sup_url

String. Defaults to '{#MyAppURL}', which is the ISPP directive for main_url. Therefore, main_url will be used, unless otherwise specified. See [Setup]:AppSupportURL for details.

upd_url

String. Defaults to '{#MyAppURL}', which is the ISPP directive for main_url. Therefore, main_url will be used, unless otherwise specified. See [Setup]:AppUpdatesURL for details.

compression

Defaults to 'lzma2/ultra64', which has the best compression ratio available. Other valid options include: 'zip', 'bzip', 'lzma', and 'none'. See [Setup]:Compression for details.

Value

Chainable character vector, which can be used as the text argument of writeLines to generate an ISS.

See Also

get_R, copy_installation, create_config, create_bat, create_pkgs, directives, setup, languages, tasks, files, icons, run, and code.

Examples

Run this code
# NOT RUN {
start_iss('myapp') %>%
  directives(include_R = FALSE, R_version = '3.3.2') %>%
  setup(dir_out = 'installer', default_dir = 'pf')
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab