2010-01-17 19:37:13 +01:00
|
|
|
The Wix Installer for Windows
|
|
|
|
=============================
|
2009-01-17 12:49:12 +01:00
|
|
|
|
2010-01-17 19:37:13 +01:00
|
|
|
New cppcheck Windows installer is created with WiX:
|
|
|
|
http://wix.sourceforge.net/
|
2009-01-17 12:49:12 +01:00
|
|
|
|
2010-01-17 19:37:13 +01:00
|
|
|
You'll need:
|
|
|
|
- latest Wix (3.0 or later)
|
|
|
|
- MSBuild (coming with Visual Studio, also with VS 2008 express)
|
|
|
|
- VS 2008 CRT merge module
|
|
|
|
|
|
|
|
Configuring
|
|
|
|
-----------
|
2009-01-17 12:49:12 +01:00
|
|
|
|
2010-01-17 19:37:13 +01:00
|
|
|
Installer configuration is done in file config.wxi. Depending how you build
|
|
|
|
cppcheck you may need to alter the paths for binaries.
|
2009-01-18 14:53:48 +01:00
|
|
|
|
2010-01-17 19:37:13 +01:00
|
|
|
Product version and other info
|
|
|
|
------------------------------
|
2009-05-27 18:36:08 +02:00
|
|
|
|
2010-01-17 19:37:13 +01:00
|
|
|
Version number and product name are set in file productInfo.wxi.
|
2009-01-18 14:53:48 +01:00
|
|
|
|
2010-01-17 19:37:13 +01:00
|
|
|
Building installer
|
|
|
|
------------------
|
2009-05-08 21:57:24 +02:00
|
|
|
|
2010-01-17 19:37:13 +01:00
|
|
|
Before building the installer make sure all the components are build:
|
|
|
|
- CLI executable (cppcheck.exe)
|
2010-10-13 21:13:50 +02:00
|
|
|
- GUI executable (cppcheck-gui.exe)
|
2011-05-04 20:51:08 +02:00
|
|
|
- GUI translations (*.qm) - generated by the Qt's lrelease -tool
|
|
|
|
|
2010-01-17 19:37:13 +01:00
|
|
|
And that runtime files are available:
|
2010-10-13 21:13:50 +02:00
|
|
|
- Qt runtimes:
|
2011-05-04 20:51:08 +02:00
|
|
|
QtCore4.dll, QtGui4.dll and QtXml4.dll
|
2010-01-17 19:37:13 +01:00
|
|
|
- MS CRT merge module (Microsoft_VC90_CRT_x86.msm)
|
2009-06-05 09:26:19 +02:00
|
|
|
|
2010-01-17 19:37:13 +01:00
|
|
|
Build installer by giving this command line in VS command prompt (or run
|
|
|
|
vcvars32.bat in DOS prompt first to setup environment):
|
2009-06-05 09:26:19 +02:00
|
|
|
|
2010-01-17 19:37:13 +01:00
|
|
|
> msbuild cppcheck.wixproj /p:Platform=x86,ProductVersion=X.YY
|
2009-01-18 14:53:48 +01:00
|
|
|
|
2010-01-17 19:37:13 +01:00
|
|
|
For example:
|
|
|
|
> msbuild cppcheck.wixproj /p:Platform=x86,ProductVersion=1.40
|
2010-03-08 19:44:34 +01:00
|
|
|
|
|
|
|
Installer is created to Build -folder.
|