From 1fcc116cb92460b26659d2ba85c9a6ed84f92eb3 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Fri, 8 May 2009 22:57:24 +0300 Subject: [PATCH] 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. --- win_installer/cppcheck.iss | 10 +++++++++- win_installer/readme.txt | 9 +++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/win_installer/cppcheck.iss b/win_installer/cppcheck.iss index 610085ad6..13dea819e 100644 --- a/win_installer/cppcheck.iss +++ b/win_installer/cppcheck.iss @@ -23,6 +23,11 @@ #define MyAppURL "http://cppcheck.wiki.sourceforge.net/" #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] ; NOTE: The value of AppId uniquely identifies this application. ; 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: ..\COPYING; 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] ; As cppcheck is a program run from command prompt, make icons to open diff --git a/win_installer/readme.txt b/win_installer/readme.txt index 4c819abbe..a3426d6d7 100644 --- a/win_installer/readme.txt +++ b/win_installer/readme.txt @@ -17,6 +17,15 @@ Files the installer needs: /COPYING /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: #1 Open the ISTool and load cppcheck.iss #2 Update the release version number: