Skip to main content
The installer skin template builds an installer that installs, uninstalls and repairs your game, with full control over how it looks. It’s a React app in the skins folder of your release package.
Installer template showing the install folder and shortcut options

The installer template's custom install options

Features

  • Install, uninstall and repair wizards
  • End user license agreement (EULA)
  • Choice of install folder
  • Desktop and Start menu shortcuts
  • REST, proxy and web authentication
  • Storage decryption key authentication
  • Light and dark window themes
  • Localization
  • Customizable header image
  • Custom JavaScript workflow tasks

Requirements

  • DIRECT 6.1 or newer
  • Node 24
Players need:

Run the skin while you develop

  1. Use Node 24:
  2. Install the packages:
  3. Start the web server:
  4. Start the DirectGVR client, pointing it at the web server and the skin’s public folder, where app.yaml is:
To debug the skin in Visual Studio Code, see Debug the CEF client with VS Code.

Package the skin

  1. Build a production version:
  2. Pass the generated build folder to builder.py as --skin_directory.

Command line

With no arguments, the installer runs the state task to check whether the application is installed. If it isn’t, the installer shows the install wizard; if it is, it shows the uninstall wizard.

App config options

Set these in public/app.yaml: The EULA text is in public/eula/ (en.md for English).

Change the installer’s name

The window title comes from the Host string in the localization files. In public/locale/en.json, change it to your installer’s name, and do the same in every other language file you ship:

Default install folders

How the install workflow works

The tasks are in public/workflow.yaml. Set your repository and executable in the load task:
workflow.yaml

Elevation

install first checks whether the install folder is writable. If it isn’t, such as C:\Program Files, it reruns the install actions elevated, which shows a User Account Control prompt on Windows:
To elevate as soon as the installer starts instead, set requiresElevated: true in app.yaml.

Install actions

  • installSync syncs your main repository.
  • createShortcuts creates the desktop and Start menu shortcuts the player chose.
  • copyInstaller-* copies the installer into the install folder so players can uninstall and repair later.
  • createSystemEntries-* registers the application. On Windows, this adds the Apps and Features entry and the uninstall command:
productName, companyName and productVersion come from the installer executable when it’s compiled.

Launch

The Launch button runs the launch task, which starts the file in executableName-* and closes the installer:

Install prerequisites

public/prereqs.yaml has tested tasks that check for, download and install common prerequisites. To use one, copy its tasks into workflow.yaml and add its first task before installSync in installActions:
When the installer runs on a machine without a prerequisite, it installs it before syncing your game.

Show a system notification

The systemNotify task shows a notification in the system tray: