Skip to content

Commit

Permalink
Installer: cleaner logic behind VCRedist task
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-mogilko committed Mar 25, 2016
1 parent 7248201 commit 6b7349d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Windows/Installer/ags.iss
Expand Up @@ -73,7 +73,7 @@ Source: "Source\*"; DestDir: "{app}"; Excludes: "*.pdb"; Flags: ignoreversion; C
Source: "Source\Docs\*"; DestDir: "{app}\Docs"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: main
Source: "Source\Templates\*"; DestDir: "{app}\Templates"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: main
Source: "Source\Demo Game\*"; DestDir: "{code:GetDemoGameDir}"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: demogame
Source: "{#VcRedistInstaller}"; DestDir: {tmp}; Flags: deleteafterinstall; Check: VCRedistNeedsInstall;
Source: "{#VcRedistInstaller}"; DestDir: {tmp}; Flags: deleteafterinstall; Tasks: vcredist
; NOTE: Don't use "Flags: ignoreversion" on any shared system files


Expand All @@ -98,8 +98,7 @@ Root: HKCR; Subkey: "AGSGameSource\shell\open\command"; ValueType: string; Value
[Run]
; "How to perform a silent install of the Visual C++ 2008 redistributable packages"
; http://blogs.msdn.com/b/astebner/archive/2010/10/18/9513328.aspx
Filename: "{tmp}\{#VcRedistInstaller}"; Parameters: "/qb"; Check: VCRedistNeedsInstall; Flags: skipifdoesntexist; Tasks: vcredist

Filename: "{tmp}\{#VcRedistInstaller}"; Parameters: "/qb"; Flags: skipifdoesntexist; Tasks: vcredist
Filename: "{app}\AGSEditor.exe"; Description: "{cm:LaunchProgram,Adventure Game Studio}"; Flags: nowait postinstall skipifsilent;


Expand Down

0 comments on commit 6b7349d

Please sign in to comment.