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 ?>
|
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)'
|
2010-01-17 00:11:49 +01:00
|
|
|
InstallerVersion='300' Languages='1033' Compressed='yes' SummaryCodepage='1252'/>
|
2009-08-09 16:08:01 +02:00
|
|
|
|
|
|
|
<Media Id='1' Cabinet='Cppcheck.cab' EmbedCab='yes' DiskPrompt='CD-ROM 1' />
|
|
|
|
<Property Id='DiskPrompt' Value='Cppcheck installation [1]' />
|
|
|
|
|
|
|
|
<Directory Id='TARGETDIR' Name='SourceDir'>
|
|
|
|
<Directory Id='ProgramFilesFolder' Name='PFiles'>
|
2009-11-21 15:24:21 +01:00
|
|
|
<Directory Id='INSTALLDIR' Name='$(var.ProductNameShort)'>
|
|
|
|
<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-11-21 15:24:21 +01:00
|
|
|
<Environment Id='UpdatePath' Name='PATH' Action='set' System='yes' Part='last' Value='[INSTALLDIR]' />
|
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:04:41 +01:00
|
|
|
<!-- <File Id='mingwm10dll' Name='mingwm10.dll' Source='mingwm10.dll' /> -->
|
2010-09-02 16:44:47 +02:00
|
|
|
<File Id='qtclucene4dll' Name='qtclucene4.dll' Source='$(var.QtDllDir)\qtclucene4.dll' />
|
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-02 16:44:47 +02:00
|
|
|
<File Id='qthelp4dll' Name='qthelp4.dll' Source='$(var.QtDllDir)\qthelp4.dll' />
|
|
|
|
<File Id='qtnetwork4dll' Name='qtnetwork4.dll' Source='$(var.QtDllDir)\qtnetwork4.dll' />
|
|
|
|
<File Id='qtsql4dll' Name='qtsql4.dll' Source='$(var.QtDllDir)\qtsql4.dll' />
|
2010-01-17 00:09:14 +01:00
|
|
|
<File Id='qtxml4dll' Name='qtxml4.dll' Source='$(var.QtDllDir)\qtxml4.dll' />
|
2010-09-05 12:51:39 +02:00
|
|
|
</Component>
|
2010-09-05 13:10:18 +02:00
|
|
|
<Component Id='GuiTranslations' Guid='$(var.guiTranslationsGUID)'>
|
2010-09-05 13:15:24 +02:00
|
|
|
<File Id='cppcheck_de.qm' Name='cppcheck_de.qm' Source='$(var.TranslationsDir)\cppcheck_de.qm' />
|
|
|
|
<File Id='cppcheck_en.qm' Name='cppcheck_en.qm' Source='$(var.TranslationsDir)\cppcheck_en.qm' />
|
2011-04-06 20:34:11 +02:00
|
|
|
<File Id='cppcheck_es.qm' Name='cppcheck_es.qm' Source='$(var.TranslationsDir)\cppcheck_es.qm' />
|
2010-09-05 13:15:24 +02:00
|
|
|
<File Id='cppcheck_fi.qm' Name='cppcheck_fi.qm' Source='$(var.TranslationsDir)\cppcheck_fi.qm' />
|
2011-02-05 22:42:24 +01:00
|
|
|
<File Id='cppcheck_fr.qm' Name='cppcheck_fr.qm' Source='$(var.TranslationsDir)\cppcheck_fr.qm' />
|
2010-12-15 16:51:51 +01:00
|
|
|
<File Id='cppcheck_ja.qm' Name='cppcheck_ja.qm' Source='$(var.TranslationsDir)\cppcheck_ja.qm' />
|
2010-09-05 13:15:24 +02:00
|
|
|
<File Id='cppcheck_nl.qm' Name='cppcheck_nl.qm' Source='$(var.TranslationsDir)\cppcheck_nl.qm' />
|
|
|
|
<File Id='cppcheck_pl.qm' Name='cppcheck_pl.qm' Source='$(var.TranslationsDir)\cppcheck_pl.qm' />
|
|
|
|
<File Id='cppcheck_ru.qm' Name='cppcheck_ru.qm' Source='$(var.TranslationsDir)\cppcheck_ru.qm' />
|
2011-03-20 15:27:21 +01:00
|
|
|
<File Id='cppcheck_sv.qm' Name='cppcheck_sv.qm' Source='$(var.TranslationsDir)\cppcheck_sv.qm' />
|
2010-12-15 16:51:51 +01:00
|
|
|
<File Id='cppcheck_sr.qm' Name='cppcheck_sr.qm' Source='$(var.TranslationsDir)\cppcheck_sr.qm' />
|
2009-08-09 16:08:01 +02:00
|
|
|
</Component>
|
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.
|
|
|
|
Remove locally installed help file that didn't work.
|
|
|
|
-->
|
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" />
|
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" />
|
2011-03-26 15:14:11 +01:00
|
|
|
<RemoveFile Id="onlinehelp.qhc" On="install" Name="onlinehelp.qhc" />
|
2010-06-28 19:47:00 +02:00
|
|
|
</Component>
|
2009-11-21 15:24:21 +01:00
|
|
|
</Directory>
|
2010-01-17 00:04:41 +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>
|
|
|
|
|
2009-09-23 16:24:52 +02:00
|
|
|
<Feature Id='Complete' Title='$(var.ProductName)' Description='The complete package.'
|
|
|
|
Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR' >
|
|
|
|
<Feature Id='MainProgram' Title='Command line interface' Description='Command line tool' Level='1'>
|
2009-11-21 15:24:21 +01:00
|
|
|
<ComponentRef Id='cppcheck.exe' />
|
2010-11-24 19:16:06 +01:00
|
|
|
<ComponentRef Id='RegistryEntries' />
|
2010-09-11 11:34:35 +02:00
|
|
|
<ComponentRef Id='GuiExecutable' />
|
2010-09-05 12:51:39 +02:00
|
|
|
<ComponentRef Id='GuiTranslations' />
|
2010-09-05 12:47:04 +02:00
|
|
|
<ComponentRef Id='BaseDocs' />
|
2009-11-21 15:24:21 +01:00
|
|
|
<ComponentRef Id='ProgramMenuDir' />
|
2010-06-28 19:47:00 +02:00
|
|
|
<ComponentRef Id='InnoSetupCleanup' />
|
2009-09-23 16:24:52 +02:00
|
|
|
</Feature>
|
2010-06-28 22:27:21 +02:00
|
|
|
<Feature Id="CRT" AllowAdvertise="no" Display="hidden" Level="1" Title="Microsoft Visual C++ 2008 Runtime Components ">
|
2010-01-17 00:04:41 +01:00
|
|
|
<MergeRef Id="CRT"/>
|
|
|
|
</Feature>
|
2009-08-09 16:08:01 +02:00
|
|
|
</Feature>
|
|
|
|
|
2009-11-21 15:24:21 +01:00
|
|
|
<Upgrade Id='$(var.ProductUpgradeCode)'>
|
|
|
|
<UpgradeVersion OnlyDetect='no'
|
|
|
|
Property='OLDERVERSIONFOUND'
|
|
|
|
Minimum='0.0.0'
|
|
|
|
IncludeMinimum='yes'
|
|
|
|
Maximum='$(var.ProductVersion)'
|
|
|
|
IncludeMaximum='no' />
|
|
|
|
</Upgrade>
|
|
|
|
|
|
|
|
<InstallExecuteSequence>
|
|
|
|
<RemoveExistingProducts After="InstallFinalize">OLDERVERSIONFOUND</RemoveExistingProducts>
|
|
|
|
</InstallExecuteSequence>
|
|
|
|
|
2009-09-23 16:24:52 +02:00
|
|
|
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
|
|
|
|
<UIRef Id="WixUI_InstallDir"/>
|
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" />
|
2010-03-09 19:25:29 +01:00
|
|
|
<WixVariable Id="WixUIBannerBmp" Value="Bitmaps\banner.bmp" />
|
|
|
|
<WixVariable Id="WixUIDialogBmp" Value="Bitmaps\dialog.bmp" />
|
2009-08-09 16:08:01 +02:00
|
|
|
</Product>
|
|
|
|
</Wix>
|