docs/windows
Jeffrey Morgan 05ca1fc9a7 Only offer to migrate if requirements are met
Signed-off-by: Jeffrey Morgan <jmorganca@gmail.com>
2015-08-12 15:09:12 -07:00
..
256-logo.xcf Adding windows 2015-07-07 17:16:43 -07:00
README.md Update README.md 2015-07-29 16:15:16 -07:00
Toolbox.iss Only offer to migrate if requirements are met 2015-08-12 15:09:12 -07:00
bundle.sh Bump Kitematic to 0.8.1 on windows 2015-08-12 15:08:47 -07:00
delete.sh Fixing migration on windows 7, adding Kitematic as files instead of a separate installer 2015-08-10 13:28:52 -07:00
docker-quickstart-terminal.ico Update icon work 2015-07-23 13:46:17 -07:00
migrate.bat Fixing migration on windows 7, adding Kitematic as files instead of a separate installer 2015-08-10 13:28:52 -07:00
migrate.sh Minor Windows fixes 2015-08-10 23:25:08 -07:00
modpath.iss Anonymous status on Windows 2015-08-05 15:47:16 -07:00
start.sh Removed the need for sed in the startup script on windows, and made it more defensible 2015-08-12 15:08:34 -07:00
toolbox.ico Update icon work 2015-07-23 13:46:17 -07:00
windows-installer-logo.bmp Update icon work 2015-07-23 13:46:17 -07:00
windows-installer-side.bmp Update icon work 2015-07-23 13:46:17 -07:00

README.md

Building the Windows Toolbox

  1. Install Inno Setup 5 non-unicode: http://www.jrsoftware.org/isdl.php (isetup-5.x.x-unicode.exe).

  2. Install kSignCMD: http://codesigning.ksoftware.net/ (click "Download kSign" and then "FREE DOWNLOAD" or "Click Here to Download kSign", which will likely be a link to http://cdn1.ksoftware.net/ksign_installer.exe)

  3. Install the docker-code-signing.pfx certificate somewhere (the instructions below assume Z:\sven\src\docker\windows-installer\docker-code-signing.pfx); you will need the password (d_get_from_core below).

  4. Open Toolbox.iss in the Inno Setup Compiler. It has a few constants at the top that are important to make note of (especially MyAppVersion and the path variables dockerCli, dockerMachineCli, kitematicSetup, b2dIso, msysGit, virtualBoxMsi, and virtualBoxCommon).

  5. Launch Inno Setup Compiler by opening Toolbox.iss and add code signing by applying the following steps:

  • Click "Tools" --> "Configure Sign Tools" > "Add"
  • "Name of the Sign Tool:" ksign
  • "Command of the Sign Tool:" "C:\Program Files (x86)\kSign\kSignCMD.exe" /f Z:\sven\src\docker\toolbox\docker-code-signing.pfx /p d_get_from_core $p

Releasing a new version

Update the versions of the dependencies in bundle.sh.

Update #define MyAppVersion line in Toolbox.iss.

Downloading bundle dependencies

Open a git bash window in this directory and run script:

./bundle.sh

This should be downloading dependencies with their correct versions to bundle\ folder where the Inno Setup Compiler can pick up from.

Compiling the installer

After configuring, open Toolbox.iss with Inno Setup Compiler and hit 'Build'. The results will be in the Output folder.

This can be done through commandline as welll. Launch a cmd.exe shell from this directory and run:

"c:\Program Files (x86)\Inno Setup 5\ISCC.exe" Toolbox.iss