2009-08-09 16:08:01 +02:00
<?xml version='1.0' encoding='windows-1252'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
2010-01-16 23:27:03 +01:00
<?include productInfo.wxi ?>
2010-01-17 19:18:52 +01:00
<?include config.wxi ?>
2012-11-03 22:13:01 +01:00
2009-11-21 15:24:21 +01:00
<Product Name='$(var.ProductName)' Id='*' UpgradeCode='$(var.ProductUpgradeCode)'
2010-03-15 19:10:42 +01:00
Language='1033' Codepage='1252' Version='$(var.ProductVersion)' Manufacturer='$(var.ProductManufacturer)'>
2009-08-09 16:08:01 +02:00
2009-09-23 16:24:52 +02:00
<Package Id='*' Keywords='Installer' Description="$(var.ProductName) Setup"
2010-03-15 19:10:42 +01:00
Comments='$(var.ProductDescription)' Manufacturer='$(var.ProductManufacturer)'
2012-11-03 22:13:01 +01:00
InstallerVersion='300' Languages='1033' Compressed='yes' SummaryCodepage='1252' InstallScope='perMachine'/>
2009-08-09 16:08:01 +02:00
2012-09-29 16:18:20 +02:00
<Media Id='1' Cabinet='Cppcheck.cab' EmbedCab='yes' CompressionLevel='high' DiskPrompt='CD-ROM 1' />
2009-08-09 16:08:01 +02:00
<Property Id='DiskPrompt' Value='Cppcheck installation [1]' />
<Directory Id='TARGETDIR' Name='SourceDir'>
2012-11-03 22:13:01 +01:00
<Directory Id='SystemFolder' FileSource='SystemFolder' />
2009-08-09 16:08:01 +02:00
<Directory Id='ProgramFilesFolder' Name='PFiles'>
2009-11-21 15:24:21 +01:00
<Directory Id='INSTALLDIR' Name='$(var.ProductNameShort)'>
2012-11-03 22:13:01 +01:00
<Component Id='cppcheckcore.dll' Guid='$(var.cppcheckcoreGUID)'>
<File Id='cppcheckcore.dll' Name='cppcheck-core.dll' DiskId='1' Source='$(var.CliBuildDir)\cppcheck-core.dll' KeyPath='yes' />
</Component>
2009-11-21 15:24:21 +01:00
<Component Id='cppcheck.exe' Guid='$(var.cppcheckGUID)'>
2010-01-16 23:27:03 +01:00
<File Id='cppcheck.exe' Name='cppcheck.exe' DiskId='1' Source='$(var.CliBuildDir)\cppcheck.exe' KeyPath='yes' />
2009-08-09 16:08:01 +02:00
</Component>
2010-11-24 19:16:06 +01:00
<Component Id='RegistryEntries' Guid='$(var.registrykeysGUID)'>
<RegistryKey Root="HKCU" Key="SOFTWARE\$(var.ProductNameShort)" Action="createAndRemoveOnUninstall">
2010-12-15 17:02:55 +01:00
<RegistryValue Name="InstallationPath" Value="[INSTALLDIR]" Type="string" KeyPath="yes" />
2010-11-24 19:16:06 +01:00
<RegistryValue Name="Version" Value="$(var.ProductVersion)" Type="string" />
</RegistryKey>
</Component>
2010-09-11 11:34:35 +02:00
<Component Id='GuiExecutable' DiskId='1' Guid='$(var.guiGUID)'>
2010-10-04 18:25:09 +02:00
<File Id='cppcheckguiexe' Name='cppcheckgui.exe' Source='$(var.GuiBuildDir)\cppcheck-gui.exe' KeyPath='yes'>
2010-03-15 21:09:14 +01:00
<Shortcut Id='startmenuGui' Directory="ProgramMenuDir" Name='$(var.ProductNameShort)'
2010-10-04 18:25:09 +02:00
WorkingDirectory='INSTALLDIR' Icon="cppcheckgui.exe" IconIndex="0" Advertise="yes" />
2009-11-21 15:24:21 +01:00
</File>
2010-01-17 00:09:14 +01:00
<File Id='qtcore4dll' Name='qtcore4.dll' Source='$(var.QtDllDir)\qtcore4.dll' />
<File Id='qtgui4dll' Name='qtgui4.dll' Source='$(var.QtDllDir)\qtgui4.dll' />
2010-09-05 12:51:39 +02:00
</Component>
2013-08-03 20:10:28 +02:00
<Directory Id='TranslationsFolder' Name='lang'>
<Component Id='GuiTranslations' Guid='$(var.guiTranslationsGUID)'>
<File Id='cppcheck_de.qm' Name='cppcheck_de.qm' Source='$(var.TranslationsDir)\cppcheck_de.qm' />
<File Id='cppcheck_es.qm' Name='cppcheck_es.qm' Source='$(var.TranslationsDir)\cppcheck_es.qm' />
<File Id='cppcheck_fi.qm' Name='cppcheck_fi.qm' Source='$(var.TranslationsDir)\cppcheck_fi.qm' />
<File Id='cppcheck_fr.qm' Name='cppcheck_fr.qm' Source='$(var.TranslationsDir)\cppcheck_fr.qm' />
<File Id='cppcheck_it.qm' Name='cppcheck_it.qm' Source='$(var.TranslationsDir)\cppcheck_it.qm' />
<File Id='cppcheck_ja.qm' Name='cppcheck_ja.qm' Source='$(var.TranslationsDir)\cppcheck_ja.qm' />
<File Id='cppcheck_ko.qm' Name='cppcheck_ko.qm' Source='$(var.TranslationsDir)\cppcheck_ko.qm' />
<File Id='cppcheck_nl.qm' Name='cppcheck_nl.qm' Source='$(var.TranslationsDir)\cppcheck_nl.qm' />
<File Id='cppcheck_ru.qm' Name='cppcheck_ru.qm' Source='$(var.TranslationsDir)\cppcheck_ru.qm' />
<File Id='cppcheck_sv.qm' Name='cppcheck_sv.qm' Source='$(var.TranslationsDir)\cppcheck_sv.qm' />
<File Id='cppcheck_sr.qm' Name='cppcheck_sr.qm' Source='$(var.TranslationsDir)\cppcheck_sr.qm' />
<File Id='cppcheck_zh_CN.qm' Name='cppcheck_zh_CN.qm' Source='$(var.TranslationsDir)\cppcheck_zh_CN.qm' />
</Component>
</Directory>
2013-08-03 19:20:12 +02:00
<Directory Id='CfgsFolder' Name='cfg'>
<Component Id='Cfgs' Guid='$(var.cfgsGUID)'>
<File Id='gtk.cfg' Name='gtk.cfg' Source='$(var.CfgsDir)\gtk.cfg' />
2014-01-04 10:47:26 +01:00
<File Id='posix.cfg' Name='posix.cfg' Source='$(var.CfgsDir)\posix.cfg' />
<File Id='qt.cfg' Name='qt.cfg' Source='$(var.CfgsDir)\qt.cfg' />
2014-03-03 15:03:20 +01:00
<File Id='sdl.cfg' Name='sdl.cfg' Source='$(var.CfgsDir)\sdl.cfg' />
2014-01-04 10:47:26 +01:00
<File Id='std.cfg' Name='std.cfg' Source='$(var.CfgsDir)\std.cfg' />
<File Id='windows.cfg' Name='windows.cfg' Source='$(var.CfgsDir)\windows.cfg' />
2013-08-03 19:20:12 +02:00
</Component>
</Directory>
2010-09-05 13:10:18 +02:00
<Component Id='BaseDocs' Guid='$(var.basedocsGUID)'>
<File Id='authors.txt' Name='authors.txt' DiskId='1' Source='..\authors' />
<File Id='readme.txt' Name='readme.txt' DiskId='1' Source='..\readme.txt' />
2009-11-21 15:24:21 +01:00
</Component>
2011-03-20 15:35:28 +01:00
<!-- Cleanup runtime files installed by previous InnoSetup installer.
Also remove old gui.exe which is now cppcheck-gui.exe.
2011-03-26 15:14:11 +01:00
Remove old Swedish translation file which was renamed.
2012-04-16 18:23:06 +02:00
Remove old English translation that is not needed.
2011-03-26 15:14:11 +01:00
Remove locally installed help file that didn't work.
2011-05-04 20:49:20 +02:00
Remove Qt DLLs not needed anymore
2011-03-26 15:14:11 +01:00
-->
2010-06-28 19:47:00 +02:00
<Component Id='InnoSetupCleanup' Guid='4A3F299D-1EE1-468b-814B-D6577F0698CA'>
<RemoveFile Id="msvcp90.dll" On="install" Name="msvcp90.dll" />
<RemoveFile Id="msvcr90.dll" On="install" Name="msvcr90.dll" />
<RemoveFile Id="Microsoft.VC90.CRT.manifest" On="install" Name="Microsoft.VC90.CRT.manifest" />
2012-11-03 22:13:01 +01:00
<RemoveFile Id='libgcc_s_dw2_1_dll' On='install' Name='libgcc_s_dw2-1.dll' />
<RemoveFile Id='mingwm10dll' On='install' Name='mingwm10.dll' />
<RemoveFile Id='libpcre0dll' On='install' Name='libpcre-0.dll' />
2010-10-13 21:15:18 +02:00
<RemoveFile Id="gui.exe" On="install" Name="gui.exe" />
2011-03-20 15:35:28 +01:00
<RemoveFile Id="cppcheck_se.qm" On="install" Name="cppcheck_se.qm" />
2012-04-16 18:23:06 +02:00
<RemoveFile Id="cppcheck_en.qm" On="install" Name="cppcheck_en.qm" />
2012-11-03 22:13:01 +01:00
<RemoveFile Id="cppcheck_pl.qm" On="install" Name="cppcheck_pl.qm" />
2011-03-26 15:14:11 +01:00
<RemoveFile Id="onlinehelp.qhc" On="install" Name="onlinehelp.qhc" />
2011-05-04 20:49:20 +02:00
<RemoveFile Id="qtclucene4dll" On="install" Name="qtclucene4.dll" />
<RemoveFile Id="qthelp4dll" On="install" Name="qthelp4.dll" />
<RemoveFile Id="qtnetwork4dll" On="install" Name="qtnetwork4.dll" />
<RemoveFile Id="qtsql4dll" On="install" Name="qtsql4.dll" />
2012-11-03 22:13:01 +01:00
<RemoveFile Id='qtxml4dll' On='install' Name='qtxml4.dll' />
2010-06-28 19:47:00 +02:00
</Component>
2009-11-21 15:24:21 +01:00
</Directory>
2012-11-03 22:13:01 +01:00
<Merge Id="CRT" Language="0" SourceFile="$(var.CrtMergeModule)" DiskId="1" />
2009-11-21 15:24:21 +01:00
</Directory>
<Directory Id='ProgramMenuFolder' Name='Programs' >
<Directory Id='ProgramMenuDir' Name='$(var.ProductName)'>
<Component Id='ProgramMenuDir' Guid='*'>
<RemoveFolder Id='ProgramMenuDir' On='uninstall' />
<RegistryValue Root='HKCU' Key='Software\Cppcheck\$(var.ProductName)' Type='string' Value='' KeyPath='yes' />
2009-08-09 16:08:01 +02:00
</Component>
</Directory>
</Directory>
</Directory>
2012-09-22 20:39:25 +02:00
<Feature Id='Complete' Title='$(var.ProductName)' Description='The complete package.'
2012-11-03 22:13:01 +01:00
Display='expand' Level='1' AllowAdvertise='no' ConfigurableDirectory='INSTALLDIR' >
<Feature Id='CppcheckCore' Display='hidden' AllowAdvertise='no' Title='Cppcheck-Core' Description='Cppcheck core components' Level='1'>
<ComponentRef Id='cppcheckcore.dll' />
<ComponentRef Id='RegistryEntries' />
<ComponentRef Id='BaseDocs' />
<ComponentRef Id='InnoSetupCleanup' />
</Feature>
2013-02-16 11:31:16 +01:00
<Feature Id='CLI' Title='Command line interface' AllowAdvertise='no' Description='Cppcheck as a command line tool' Level='1'>
2009-11-21 15:24:21 +01:00
<ComponentRef Id='cppcheck.exe' />
2012-11-03 22:13:01 +01:00
</Feature>
2013-02-16 11:31:16 +01:00
<Feature Id='GUI' Title='Graphical interface' AllowAdvertise='no' Description='Cppcheck with a graphical user interface' Level='1'>
2010-11-24 19:16:06 +01:00
<ComponentRef Id='RegistryEntries' />
2010-09-11 11:34:35 +02:00
<ComponentRef Id='GuiExecutable' />
2013-02-16 11:31:16 +01:00
<Feature Id='Translations' Title='GUI Translations' AllowAdvertise='no' Description='Translations for graphical user interface' Level='1'>
2012-11-03 22:13:01 +01:00
<ComponentRef Id='GuiTranslations' />
</Feature>
2009-11-21 15:24:21 +01:00
<ComponentRef Id='ProgramMenuDir' />
2009-09-23 16:24:52 +02:00
</Feature>
2013-08-03 19:20:12 +02:00
<Feature Id='ConfigFiles' Title='Default configurations' AllowAdvertise='no' Description='Provide default configuration files, for example for standard library or GTK' Level='1'>
<ComponentRef Id='Cfgs' />
</Feature>
2013-02-16 11:31:16 +01:00
<Feature Id="CRT" AllowAdvertise="no" Display="hidden" Level="1" Title="Microsoft Visual C++ 2010 Runtime Components">
2010-01-17 00:04:41 +01:00
<MergeRef Id="CRT"/>
</Feature>
2009-08-09 16:08:01 +02:00
</Feature>
2012-07-01 20:34:27 +02:00
<MajorUpgrade DowngradeErrorMessage='Downgrade is not allowed'/>
2012-11-03 22:13:01 +01:00
<!--Remove pre 1.57 versions which can't be upgraded with MajorUpgrade-->
<InstallExecuteSequence>
<Custom Action='UninstallOld152' After='InstallFinalize'>NOT Installed</Custom>
<Custom Action='UninstallOld153' After='InstallFinalize'>NOT Installed</Custom>
<Custom Action='UninstallOld154' After='InstallFinalize'>NOT Installed</Custom>
<Custom Action='UninstallOld155' After='InstallFinalize'>NOT Installed</Custom>
<Custom Action='UninstallOld156' After='InstallFinalize'>NOT Installed</Custom>
</InstallExecuteSequence>
<CustomAction Id='UninstallOld152' Directory='SystemFolder' ExeCommand="msiexec.exe /X {836AF028-6EE2-457C-B242-19D61701BAA3} /qn" Execute="immediate" Return="asyncNoWait"/>
<CustomAction Id='UninstallOld153' Directory='SystemFolder' ExeCommand="msiexec.exe /X {42850B7E-CD5F-449A-B6DA-C423156D2ACF} /qn" Execute="immediate" Return="asyncNoWait"/>
<CustomAction Id='UninstallOld154' Directory='SystemFolder' ExeCommand="msiexec.exe /X {7722557B-4B10-4E8F-918A-78FBAEFB09B1} /qn" Execute="immediate" Return="asyncNoWait"/>
<CustomAction Id='UninstallOld155' Directory='SystemFolder' ExeCommand="msiexec.exe /X {211B2B89-3FE0-4F49-88CC-27E283BEC010} /qn" Execute="immediate" Return="asyncNoWait"/>
<CustomAction Id='UninstallOld156' Directory='SystemFolder' ExeCommand="msiexec.exe /X {1CC8C271-A877-4DF0-B1DE-C1B7D83521BC} /qn" Execute="immediate" Return="asyncNoWait"/>
2009-11-21 15:24:21 +01:00
2009-09-23 16:24:52 +02:00
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
2012-11-03 22:13:01 +01:00
<UIRef Id="WixUI_FeatureTree"/>
2009-11-21 15:24:21 +01:00
2010-10-04 18:25:09 +02:00
<Icon Id='cppcheckgui.exe' SourceFile='$(var.GuiBuildDir)\cppcheck-gui.exe' />
2010-01-17 00:21:45 +01:00
<WixVariable Id="WixUILicenseRtf" Value="GPLv3.rtf" />
2014-01-04 09:38:36 +01:00
<WixVariable Id="WixUIBannerBmp" Value="images\banner.jpg" />
<WixVariable Id="WixUIDialogBmp" Value="images\dialog.jpg" />
2009-08-09 16:08:01 +02:00
</Product>
</Wix>