Add VS runtimes to the Windows installer.
cppcheck requires VS 9 runtimefiles to run. Those runtimes are installed by many programs and it is probable lots of people already have them. But still there are users without those files. And for them it is non-trivial task to get cppcheck to run. So better just include runtimes for everybody.
This commit is contained in:
parent
dae530d8de
commit
1fcc116cb9
|
@ -23,6 +23,11 @@
|
||||||
#define MyAppURL "http://cppcheck.wiki.sourceforge.net/"
|
#define MyAppURL "http://cppcheck.wiki.sourceforge.net/"
|
||||||
#define MyAppExeName "cppcheck.exe"
|
#define MyAppExeName "cppcheck.exe"
|
||||||
|
|
||||||
|
; 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"
|
||||||
|
|
||||||
[Setup]
|
[Setup]
|
||||||
; NOTE: The value of AppId uniquely identifies this application.
|
; NOTE: The value of AppId uniquely identifies this application.
|
||||||
; Do not use the same AppId value in installers for other applications.
|
; Do not use the same AppId value in installers for other applications.
|
||||||
|
@ -64,7 +69,10 @@ Name: modifypath; Description: &Add {#MyAppName} folder to your system path; Fla
|
||||||
Source: ..\Build\Release\cppcheck.exe; DestDir: {app}; Flags: ignoreversion
|
Source: ..\Build\Release\cppcheck.exe; DestDir: {app}; Flags: ignoreversion
|
||||||
Source: ..\COPYING; DestDir: {app}; Flags: ignoreversion
|
Source: ..\COPYING; DestDir: {app}; Flags: ignoreversion
|
||||||
Source: ..\readme.txt; DestDir: {app}; Flags: ignoreversion
|
Source: ..\readme.txt; DestDir: {app}; Flags: ignoreversion
|
||||||
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
; VS runtimes
|
||||||
|
Source: {#RuntimesFolder}\Microsoft.VC90.CRT.manifest; DestDir: {app}
|
||||||
|
Source: {#RuntimesFolder}\msvcp90.dll; DestDir: {app}
|
||||||
|
Source: {#RuntimesFolder}\msvcr90.dll; DestDir: {app}
|
||||||
|
|
||||||
[Icons]
|
[Icons]
|
||||||
; As cppcheck is a program run from command prompt, make icons to open
|
; As cppcheck is a program run from command prompt, make icons to open
|
||||||
|
|
|
@ -17,6 +17,15 @@ Files the installer needs:
|
||||||
/COPYING
|
/COPYING
|
||||||
/readme.txt
|
/readme.txt
|
||||||
|
|
||||||
|
VS Runtime files:
|
||||||
|
Copy following files to same folder:
|
||||||
|
- Microsoft.VC90.CRT.manifest
|
||||||
|
- msvcp90.dll
|
||||||
|
- msvcr90.dll
|
||||||
|
and modify RuntimesFolder -macro in begin of cppcheck.iss to point to the
|
||||||
|
folder where files are. You can find runtime files from VS installation or from
|
||||||
|
net.
|
||||||
|
|
||||||
Creating the installer executable:
|
Creating the installer executable:
|
||||||
#1 Open the ISTool and load cppcheck.iss
|
#1 Open the ISTool and load cppcheck.iss
|
||||||
#2 Update the release version number:
|
#2 Update the release version number:
|
||||||
|
|
Loading…
Reference in New Issue