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: