Create a Windows Setup


How to create a Windows setup executable.

Needed tools:

The only extra tool needed to create a setup is Inno Setup. You can download the setup tool on Jordan Russell's website: http://www.jrsoftware.org/ If you are planning to cross compile you must also install Wine to be able to start the Inno Setup program.

Build the project:

You can choose from one of the build processes best suited for you:

Strip the binaries from debug info:

To reduce the size of the setup you best strip the binaries first: Windows build:

cd Rocrail\winbin
strip *.dll
strip *.exe

Cross build:

cd Rocrail/winbin
i586-mingw32msvc-strip *.dll
i586-mingw32msvc-strip *.exe

Starting the Inno Setup:

Copy mingw10.dll to the winbin directory. You most likely have a shortcut on your desktop to start Inno Setup. After startup: Open an existing script: Rocrail/rocrail/package/rocrail.iss
The Inno Setup program shows you the script text in it's main window:

; -- rocrail.iss --

[Setup]
AppName=Rocrail
AppVerName=Rocrail 0.11.0 snapshot-svnxxxx-unicode
DefaultDirName={pf}\Rocrail
DefaultGroupName=Rocrail
UninstallDisplayIcon={app}\rocgui.exe
Compression=lzma
SolidCompression=yes
DirExistsWarning=auto
OutputDir=.
AppCopyright=GNU
AppPublisher=rocrail.net
AppPublisherURL=http://www.rocrail.net/
OutputBaseFilename=rocrail-0.11.0-snapshot-svnxxxx-unicode

Compiling the setup:

Choose from the main menu Build→Compile.

Where the package is stored:

The new created setup is stored in the Rocrail/rocrail/package directory. Example output filename:

rocrail-0.11.0-snapshot-svn1482-unicode.exe

Personal Tools