Skip to content

How To Create Windows Installer

Ryan edited this page Jul 26, 2020 · 7 revisions

Prerequisites

NSIS (Nullsoft Scriptable Install System) Software

This free software tool is used to package the game into a neat Windows installer. Version > 3.0b1 required in order to support Unicode for the Chinese and Russian installer translations. Download the latest version here.

Corsix TH Binaries

Compiled binaries (executables and DLLs) for both Windows 32-bit and 64-bit. Checkout of CorsixTH from GitHub and see here for guidance on how to compile.

The Guide

  1. Put 64-bit binaries (executables and DLLs) in <corsix-th-checkout-root>/WindowsInstaller/x64 and 32-bit binaries in <corsix-th-checkout-root>/WindowsInstaller/x86.

  2. Make sure that the CorsixTH/README.txt and CorsixTH/changelog.txt files have been updated to reflect which release this is.

  3. Update the file WindowsInstaller/config-template.txt to make sure that it reflects what config_finder.lua would make.

  4. Change the top of the file WindowsInstaller/Win32Script.nsi so that the version number is correct.

  5. Run the script WindowsInstaller/Win32Script.nsi using NSIS.

  6. There should now be a file called WindowsInstaller.exe in that same directory.

Note: Translation can be found in the LanguageStrings.nsh.