From fbb63dfcb49fc0166d3fec14bcbea37b4e1356ba Mon Sep 17 00:00:00 2001 From: PKEuS Date: Sat, 3 Nov 2012 22:13:01 +0100 Subject: [PATCH] Updated WiX installer: - Use FeatureTree GUI - users can select which parts should be installed. - Configured for MSVC10 builds - Use WiX 3.6 --- win_installer/config.wxi | 8 ++--- win_installer/cppcheck.wixproj | 37 ++++++++++++--------- win_installer/cppcheck.wxs | 59 +++++++++++++++++++++++++--------- win_installer/productInfo.wxi | 4 +-- win_installer/readme.txt | 9 +++--- 5 files changed, 76 insertions(+), 41 deletions(-) diff --git a/win_installer/config.wxi b/win_installer/config.wxi index c3f1934f5..3d7e76151 100644 --- a/win_installer/config.wxi +++ b/win_installer/config.wxi @@ -4,10 +4,10 @@ - - + + - - + + diff --git a/win_installer/cppcheck.wixproj b/win_installer/cppcheck.wixproj index aec5fe3ab..2aed43cfb 100644 --- a/win_installer/cppcheck.wixproj +++ b/win_installer/cppcheck.wixproj @@ -1,33 +1,40 @@ - + + false - - $(PROGRAMFILES)\Windows Installer XML v3.5\bin\ + $(PROGRAMFILES)\WiX Toolset v3.6\bin\ $(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets Release x86 - cppcheck-$(ProductVersion)-$(Platform)-Setup - ..\Build\ - ..\BuildTmp\Wix\$(Platform)\ + cppcheck-$(ProductVersion)-$(Platform)-Setup + Build\ + BuildTmp\Wix\$(Platform)\ package + + {3b772885-4980-4a76-8407-4dabf8f7757c} - - + + C:\Programme\WiX Toolset v3.6\bin\WixUIExtension.dll + WixUIExtension + + - - - - - + + + + + + + - + - + diff --git a/win_installer/cppcheck.wxs b/win_installer/cppcheck.wxs index d1b798256..86540a0e2 100644 --- a/win_installer/cppcheck.wxs +++ b/win_installer/cppcheck.wxs @@ -2,19 +2,24 @@ + + InstallerVersion='300' Languages='1033' Compressed='yes' SummaryCodepage='1252' InstallScope='perMachine'/> + + + + @@ -29,18 +34,15 @@ - - - - + @@ -64,17 +66,22 @@ + + + + + - + @@ -88,27 +95,47 @@ - - + Display='expand' Level='1' AllowAdvertise='no' ConfigurableDirectory='INSTALLDIR' > + + - - - - + + + NOT Installed + NOT Installed + NOT Installed + NOT Installed + NOT Installed + + + + + + - + diff --git a/win_installer/productInfo.wxi b/win_installer/productInfo.wxi index 765459d07..09279e6c1 100644 --- a/win_installer/productInfo.wxi +++ b/win_installer/productInfo.wxi @@ -2,14 +2,14 @@ - + - + diff --git a/win_installer/readme.txt b/win_installer/readme.txt index 87f689fa8..a8e044817 100644 --- a/win_installer/readme.txt +++ b/win_installer/readme.txt @@ -6,8 +6,8 @@ http://wix.sourceforge.net/ You'll need: - latest Wix (3.6) - - MSBuild (coming with Visual Studio, also with VS 2008 express) - - VS 2008 CRT merge module + - MSBuild (coming with Visual Studio (also with Express edition)) + - VS 2010 CRT merge module Configuring ----------- @@ -24,14 +24,15 @@ Building installer ------------------ Before building the installer make sure all the components are build: + - LIB dynamic link library (cppcheck-core.dll) - CLI executable (cppcheck.exe) - GUI executable (cppcheck-gui.exe) - GUI translations (*.qm) - generated by the Qt's lrelease -tool And that runtime files are available: - Qt runtimes: - QtCore4.dll, QtGui4.dll and QtXml4.dll - - MS CRT merge module (Microsoft_VC90_CRT_x86.msm) + QtCore4.dll and QtGui4.dll + - MS CRT merge module (Microsoft_VC100_CRT_x86.msm) Build installer by giving this command line in VS command prompt (or run vcvars32.bat in DOS prompt first to setup environment):