2009-01-17 12:49:12 +01:00
|
|
|
; cppcheck InnoSetup installer script
|
|
|
|
; Copyright (c) 2009 Kimmo Varis
|
|
|
|
|
|
|
|
; This program is free software: you can redistribute it and/or modify
|
|
|
|
; it under the terms of the GNU General Public License as published by
|
|
|
|
; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
; (at your option) any later version.
|
|
|
|
;
|
|
|
|
; This program is distributed in the hope that it will be useful,
|
|
|
|
; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
; GNU General Public License for more details.
|
|
|
|
;
|
|
|
|
; You should have received a copy of the GNU General Public License
|
|
|
|
; along with this program. If not, see <http://www.gnu.org/licenses/
|
|
|
|
|
|
|
|
; To create an installer, get the latest InnoSetup installer creation
|
|
|
|
; program from: http://www.jrsoftware.org/
|
|
|
|
|
|
|
|
|
|
|
|
#define MyAppName "cppcheck"
|
2009-04-12 19:54:15 +02:00
|
|
|
#define AppVersion "1.31"
|
2009-03-09 18:03:19 +01:00
|
|
|
#define MyAppURL "http://cppcheck.wiki.sourceforge.net/"
|
2009-01-17 12:49:12 +01:00
|
|
|
#define MyAppExeName "cppcheck.exe"
|
|
|
|
|
2009-05-08 21:57:24 +02:00
|
|
|
; Set this macro to point to folder where VS runtimes are
|
|
|
|
; Runtime files are not included in repository so you need to
|
|
|
|
; get them from elsewhere (e.g. from VS installation).
|
|
|
|
#define RuntimesFolder "..\..\Runtimes"
|
|
|
|
|
2009-01-17 12:49:12 +01:00
|
|
|
[Setup]
|
|
|
|
; NOTE: The value of AppId uniquely identifies this application.
|
|
|
|
; Do not use the same AppId value in installers for other applications.
|
|
|
|
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
|
|
|
|
AppId={{48254FD9-669B-4A53-A060-D56EB50DDF72}
|
|
|
|
AppName={#MyAppName}
|
|
|
|
AppVersion={#AppVersion}
|
|
|
|
AppVerName={#MyAppName} {#AppVersion}
|
|
|
|
AppPublisherURL={#MyAppURL}
|
|
|
|
AppSupportURL={#MyAppURL}
|
|
|
|
AppUpdatesURL={#MyAppURL}
|
2009-03-09 17:45:22 +01:00
|
|
|
|
|
|
|
; This is for the installer file
|
|
|
|
VersionInfoVersion={#AppVersion}
|
2009-03-09 18:09:05 +01:00
|
|
|
VersionInfoDescription=cppcheck installer
|
2009-03-09 17:45:22 +01:00
|
|
|
|
2009-01-17 12:49:12 +01:00
|
|
|
DefaultDirName={pf}\{#MyAppName}
|
|
|
|
DefaultGroupName={#MyAppName}
|
|
|
|
AllowNoIcons=yes
|
|
|
|
LicenseFile=..\COPYING
|
|
|
|
|
|
|
|
OutputBaseFilename={#MyAppName}-{#AppVersion}-setup
|
|
|
|
|
2009-01-24 19:07:51 +01:00
|
|
|
ChangesEnvironment=yes
|
2009-03-09 18:21:22 +01:00
|
|
|
OutputDir=..\Build
|
2009-01-24 19:07:51 +01:00
|
|
|
|
2009-01-17 12:49:12 +01:00
|
|
|
Compression=lzma/ultra
|
|
|
|
InternalCompressLevel=ultra
|
|
|
|
SolidCompression=true
|
|
|
|
|
|
|
|
[Languages]
|
|
|
|
Name: english; MessagesFile: compiler:Default.isl
|
|
|
|
|
|
|
|
[Tasks]
|
|
|
|
Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked
|
2009-02-26 09:10:59 +01:00
|
|
|
Name: modifypath; Description: &Add {#MyAppName} folder to your system path; Flags: unchecked
|
2009-01-17 12:49:12 +01:00
|
|
|
|
|
|
|
[Files]
|
2009-03-09 19:03:22 +01:00
|
|
|
Source: ..\Build\Release\cppcheck.exe; DestDir: {app}; Flags: ignoreversion
|
2009-01-17 12:49:12 +01:00
|
|
|
Source: ..\COPYING; DestDir: {app}; Flags: ignoreversion
|
|
|
|
Source: ..\readme.txt; DestDir: {app}; Flags: ignoreversion
|
2009-05-08 21:57:24 +02:00
|
|
|
; VS runtimes
|
|
|
|
Source: {#RuntimesFolder}\Microsoft.VC90.CRT.manifest; DestDir: {app}
|
|
|
|
Source: {#RuntimesFolder}\msvcp90.dll; DestDir: {app}
|
|
|
|
Source: {#RuntimesFolder}\msvcr90.dll; DestDir: {app}
|
2009-01-17 12:49:12 +01:00
|
|
|
|
|
|
|
[Icons]
|
|
|
|
; As cppcheck is a program run from command prompt, make icons to open
|
|
|
|
; command prompt in install folder
|
|
|
|
Name: {group}\{#MyAppName}; Filename: {sys}\cmd.exe; WorkingDir: {app}
|
|
|
|
Name: {group}\{cm:ProgramOnTheWeb,{#MyAppName}}; Filename: {#MyAppURL}
|
|
|
|
Name: {group}\{cm:UninstallProgram,{#MyAppName}}; Filename: {uninstallexe}
|
|
|
|
Name: {commondesktop}\{#MyAppName}; Filename: {sys}\cmd.exe; WorkingDir: {app}; Tasks: desktopicon
|
2009-01-24 19:07:51 +01:00
|
|
|
|
|
|
|
[Code]
|
|
|
|
function ModPathDir(): TArrayOfString;
|
|
|
|
var
|
|
|
|
Dir: TArrayOfString;
|
|
|
|
begin
|
|
|
|
setArrayLength(Dir, 1)
|
|
|
|
Dir[0] := ExpandConstant('{app}');
|
|
|
|
Result := Dir;
|
|
|
|
end;
|
|
|
|
#include "modpath.iss"
|