Skip to content
This repository has been archived by the owner on May 16, 2020. It is now read-only.

Commit

Permalink
Merge pull request #186 from rakslice/win_installer_arch_redist
Browse files Browse the repository at this point in the history
win installer improvements
  • Loading branch information
alamminsalo authored Jun 25, 2017
2 parents 3f7c5df + 2d94dc3 commit 253729a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ after_build:
- del %configuration%\*.h
- del %configuration%\*.res
- if %configuration%==release copy "resources\orion-installer.iss" orion-installer.iss
- if %configuration%==release "C:\Program Files (x86)\Inno Setup 5\iscc.exe" /F"orion-%APPVEYOR_REPO_COMMIT%-%platform%" "orion-installer.iss"
- if %configuration%==release "C:\Program Files (x86)\Inno Setup 5\iscc.exe" /DPlatform=%platform% /DAdditionalRedist="C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\redist\1033\vcredist_%platform%.exe" /F"orion-%APPVEYOR_REPO_COMMIT%-%platform%" "orion-installer.iss"

artifacts:
- path: orion_$(configuration)_$(platform)_snapshot_$(APPVEYOR_REPO_COMMIT).zip
Expand Down
24 changes: 24 additions & 0 deletions resources/orion-installer.iss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@

; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!

#ifndef Platform
#error Platform undefined. Pass /DPlatform={x86|x64}
#endif

#if "x86" == Platform
#elif "x64" == Platform
#else
#error Unknown platform. Must be x86 or x64
#endif

#define AppVersion GetFileVersion("release\orion.exe")

[Setup]
Expand All @@ -14,9 +24,23 @@ UninstallDisplayIcon={app}\orion.exe
Compression=lzma2
SolidCompression=yes
OutputDir=.
#if "x64" == Platform
ArchitecturesAllowed=x64
ArchitecturesInstallIn64BitMode=x64
#endif

[Files]
Source: "release\*"; DestDir: "{app}\bin"; Flags: ignoreversion recursesubdirs
#ifdef AdditionalRedist
Source: "{#AdditionalRedist}"; DestDir: "{app}\AdditionalRedist"; Flags: ignoreversion
#endif

[Icons]
Name: "{group}\Orion"; Filename: "{app}\bin\orion.exe"

[Run]
Filename: "{app}\bin\vcredist_{#Platform}.exe"; Parameters: "/install /passive /norestart"
#ifdef AdditionalRedist
#define AdditionalRedistProper ExtractFileName(AdditionalRedist)
Filename: "{app}\AdditionalRedist\{#AdditionalRedistProper}"; Parameters: "/install /passive /norestart"
#endif

0 comments on commit 253729a

Please sign in to comment.