Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

NSIS Intaller

Heinrich Kießling edited this page Mar 18, 2014 · 7 revisions

Setup How-To

  1. Download latest version (3.0a2) here http://nsis.sourceforge.net/Download

  2. Since we encountered problems about max_str_length == 1024 and PATH Environment:
    http://nsis.sourceforge.net/Environmental_Variables:_append,_prepend,_and_remove_entries
    also download the Large string special build here:
    http://nsis.sourceforge.net/Special_Builds

  3. The special build is only a zip file containing makensis.exe and some extra files, so simply extract them and overwrtie the installed files. the special build is now able to manipulate strings of length 8192.
    PLEASE make shure you test strings read from registry like StrCmp $str "" and prevent writing strings to registry which could exceed this maximum lenght.

QTCreator build chain

  1. The core project file (core.pro) now contains extra install targets to copy the relevant QtDLLs (automatically choose current Qt/ToolKit version and Debug or Release) and the current NSIS installer build script (installer.nsi) into the output directory. So make sure the relevant deploy steps of all the projects are activated by adding a make-step with argument install to each of those projects settings.

  2. The TestCases project now get an extra deploy step with the following settings:

  • command: C:\Program Files\NSIS\makensis.exe (or your custom path to makensis.exe)
  • arguments: /V4 installer.nsi (/V4 for full verbosity on compiling and the script)
  • working directory: %{buildDir}\..\..\output\win32debug (a relative or absolute path that points to the target output directory (outside the bin subdir).)

Run(+Build&Deploy) should now build the the complete TestCases project and packs selectively relevant binaries into the installer executable.

Clone this wiki locally