2009-01-17 12:49:12 +01:00
|
|
|
|
; cppcheck InnoSetup installer script
|
2009-06-04 11:38:08 +02:00
|
|
|
|
; Copyright (C) 2007-2009 Daniel Marjam<61>ki and Cppcheck team.
|
2009-01-17 12:49:12 +01:00
|
|
|
|
|
|
|
|
|
; 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-08-16 15:57:16 +02:00
|
|
|
|
#define AppVersion "1.35"
|
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-06-04 11:38:08 +02:00
|
|
|
|
#define QTGuiExe "gui.exe"
|
|
|
|
|
#define QTGuiName "cppcheck GUI"
|
2009-01-17 12:49:12 +01:00
|
|
|
|
|
2009-06-04 11:38:08 +02:00
|
|
|
|
; Set this macro to point to folder where VS and QT runtimes are
|
2009-05-08 21:57:24 +02:00
|
|
|
|
; Runtime files are not included in repository so you need to
|
2009-06-04 11:38:08 +02:00
|
|
|
|
; get them from elsewhere. VS runtimes come with VS installation. QT runtimes
|
|
|
|
|
; you must compile yourself.
|
2009-05-08 21:57:24 +02:00
|
|
|
|
#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}
|
2009-05-27 16:31:14 +02:00
|
|
|
|
AllowNoIcons=true
|
2009-01-17 12:49:12 +01:00
|
|
|
|
LicenseFile=..\COPYING
|
|
|
|
|
|
|
|
|
|
OutputBaseFilename={#MyAppName}-{#AppVersion}-setup
|
|
|
|
|
|
2009-05-27 16:31:14 +02:00
|
|
|
|
ChangesEnvironment=true
|
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
|
|
|
|
|
|
2009-05-27 16:31:14 +02:00
|
|
|
|
; Installer graphics
|
2009-05-27 17:00:29 +02:00
|
|
|
|
WizardImageFile=.\LargeLogo.bmp
|
2009-05-27 16:31:14 +02:00
|
|
|
|
WizardSmallImageFile=.\icon.bmp
|
|
|
|
|
WizardImageStretch=false
|
|
|
|
|
|
2009-01-17 12:49:12 +01:00
|
|
|
|
[Languages]
|
|
|
|
|
Name: english; MessagesFile: compiler:Default.isl
|
|
|
|
|
|
2009-06-04 11:38:08 +02:00
|
|
|
|
[Types]
|
|
|
|
|
Name: full; Description: Full installation
|
|
|
|
|
Name: compact; Description: Compact installation
|
|
|
|
|
Name: custom; Description: Custom installation; Flags: iscustom
|
|
|
|
|
|
|
|
|
|
; We have two components:
|
|
|
|
|
; - Core contains all C-runtimes, command line executable and basic documents
|
|
|
|
|
; - QTGui contains QT libraries and QT-based GUI
|
|
|
|
|
[Components]
|
|
|
|
|
Name: Core; Description: Core files (command line executable); Types: full custom compact; Flags: fixed
|
2009-07-06 09:51:19 +02:00
|
|
|
|
Name: QTGui; Description: GUI [Beta]; Types: full
|
2009-06-04 11:38:08 +02:00
|
|
|
|
|
2009-01-17 12:49:12 +01:00
|
|
|
|
[Tasks]
|
|
|
|
|
Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked
|
2009-07-06 10:02:45 +02:00
|
|
|
|
Name: guidesktopicon; Description: Create a desktop icon for GUI; 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
|
|
|
|
|
2009-05-27 17:36:39 +02:00
|
|
|
|
[InstallDelete]
|
|
|
|
|
; Name was changed to COPYING.txt so remove the old file.
|
|
|
|
|
Type: files; Name: {app}\COPYING
|
|
|
|
|
|
2009-01-17 12:49:12 +01:00
|
|
|
|
[Files]
|
2009-07-03 11:05:45 +02:00
|
|
|
|
; Core / command line
|
2009-06-04 11:38:08 +02:00
|
|
|
|
Source: ..\Build\Release\cppcheck.exe; DestDir: {app}; Flags: ignoreversion; Components: Core
|
|
|
|
|
Source: ..\COPYING; DestDir: {app}; DestName: COPYING.txt; Flags: ignoreversion; Components: Core
|
|
|
|
|
Source: ..\readme.txt; DestDir: {app}; Flags: ignoreversion; Components: Core
|
|
|
|
|
Source: ..\AUTHORS; DestDir: {app}; DestName: AUTHORS.txt; Flags: ignoreversion; Components: Core
|
2009-05-08 21:57:24 +02:00
|
|
|
|
; VS runtimes
|
2009-06-04 11:38:08 +02:00
|
|
|
|
Source: {#RuntimesFolder}\Microsoft.VC90.CRT.manifest; DestDir: {app}; Components: Core
|
|
|
|
|
Source: {#RuntimesFolder}\msvcp90.dll; DestDir: {app}; Components: Core
|
|
|
|
|
Source: {#RuntimesFolder}\msvcr90.dll; DestDir: {app}; Components: Core
|
2009-07-03 11:05:45 +02:00
|
|
|
|
; GUI executable
|
|
|
|
|
Source: ..\gui\Release\gui.exe; DestDir: {app}; Flags: ignoreversion; Components: QTGui
|
|
|
|
|
; GUI translations
|
|
|
|
|
Source: ..\gui\cppcheck_de.qm; DestDir: {app}; Components: QTGui
|
|
|
|
|
Source: ..\gui\cppcheck_en.qm; DestDir: {app}; Components: QTGui
|
|
|
|
|
Source: ..\gui\cppcheck_fi.qm; DestDir: {app}; Components: QTGui
|
|
|
|
|
Source: ..\gui\cppcheck_ru.qm; DestDir: {app}; Components: QTGui
|
|
|
|
|
Source: ..\gui\cppcheck_se.qm; DestDir: {app}; Components: QTGui
|
2009-06-04 11:38:08 +02:00
|
|
|
|
; QT runtimes
|
|
|
|
|
Source: {#RuntimesFolder}\QtCore4.dll; DestDir: {app}; Components: QTGui
|
|
|
|
|
Source: {#RuntimesFolder}\QtGui4.dll; DestDir: {app}; Components: QTGui
|
2009-06-22 11:35:44 +02:00
|
|
|
|
Source: {#RuntimesFolder}\QtXml4.dll; DestDir: {app}; Components: QTGui
|
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
|
2009-06-04 11:38:08 +02:00
|
|
|
|
Name: {group}\{#MyAppName}; Filename: {sys}\cmd.exe; WorkingDir: {app}; Components: Core
|
|
|
|
|
Name: {group}\{#QTGuiName}; Filename: {app}\{#QTGuiExe}; WorkingDir: {app}; Components: QTGui
|
|
|
|
|
Name: {group}\{cm:ProgramOnTheWeb,{#MyAppName}}; Filename: {#MyAppURL}; Components: Core
|
|
|
|
|
Name: {group}\{cm:UninstallProgram,{#MyAppName}}; Filename: {uninstallexe}; Components: Core
|
2009-07-06 10:02:45 +02:00
|
|
|
|
; Desktop icons
|
2009-06-04 11:38:08 +02:00
|
|
|
|
Name: {commondesktop}\{#MyAppName}; Filename: {sys}\cmd.exe; WorkingDir: {app}; Tasks: desktopicon; Components: Core
|
2009-07-06 10:02:45 +02:00
|
|
|
|
Name: {commondesktop}\{#QTGuiName}; Filename: {app}\{#QTGuiExe}; WorkingDir: {app}; Tasks: guidesktopicon; Components: QTGui
|
2009-05-27 18:36:08 +02:00
|
|
|
|
; Doc icons
|
2009-06-04 11:38:08 +02:00
|
|
|
|
Name: {group}\Authors; Filename: {app}\AUTHORS.txt; IconFileName: {win}\NOTEPAD.EXE; Components: Core
|
|
|
|
|
Name: {group}\Copying; Filename: {app}\COPYING.txt; IconFileName: {win}\NOTEPAD.EXE; Components: Core
|
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"
|