From 54ffbbdc3cd7ebdc0b7f232891390b5b79572972 Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Sun, 7 Jun 2015 09:57:46 +0200 Subject: [PATCH] Updated windows instructions to include the 2010 redistributable. Windows is several GiB large, but they felt like having to save space when they had to include a 5MiB library that is used by everything. --- windows/README.txt | 4 ++-- windows/ss.iss | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/windows/README.txt b/windows/README.txt index 65065f3..39dfd03 100644 --- a/windows/README.txt +++ b/windows/README.txt @@ -4,8 +4,7 @@ Requirements: 3)Py2exe 4)Innosetup -It might be necessary to have the: Microsoft Visual C++ 2008 Redistributable Package, because python 2.6 uses it and it's not installed by default in windows. I don't know if python 3 still needs it. - +It is necessary to have the: Microsoft Visual C++ 2010 Redistributable Package. Create an exe file - Move the file windows/input.py to ../ @@ -18,6 +17,7 @@ At the end, there should be a directory named "dist" containing the exe file and Create the setup with Inno Setup - Move windows/ss.iss to ../ +- Download the Microsoft Visual C++ 2010 Redistributable, call it vcredist_x86.exe and save it in the relational main directory - Open ss.iss with Inno Setup, Build and Compile A directory named "Output" will be created, which will contain the installer. diff --git a/windows/ss.iss b/windows/ss.iss index fe0f4c3..539b6dd 100644 --- a/windows/ss.iss +++ b/windows/ss.iss @@ -28,11 +28,17 @@ Name: "english"; MessagesFile: "compiler:Default.isl" Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked +[Run] +; add the Parameters, WorkingDir and StatusMsg as you wish, just keep here +; the conditional installation Check +Filename: "{tmp}\vcredist_x86.exe"; Check: VCRedistNeedsInstall + [Files] Source: "dist\relational_gui.exe"; DestDir: "{app}"; Flags: ignoreversion Source: "dist\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs Source: "windows\font dejavu\*"; DestDir: "{fonts}"; FontInstall: "Dejavu Sans" Source: "samples\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs +Source: "vcredist_x86.exe"; DestDir: {tmp}; Flags: deleteafterinstall ; NOTE: Don't use "Flags: ignoreversion" on any shared system files [Icons]