|
2 | 2 | <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'> |
3 | 3 | <?include productInfo.wxi ?> |
4 | 4 | <?include config.wxi ?> |
| 5 | + |
5 | 6 | <Product Name='$(var.ProductName)' Id='*' UpgradeCode='$(var.ProductUpgradeCode)' |
6 | 7 | Language='1033' Codepage='1252' Version='$(var.ProductVersion)' Manufacturer='$(var.ProductManufacturer)'> |
7 | 8 |
|
8 | 9 | <Package Id='*' Keywords='Installer' Description="$(var.ProductName) Setup" |
9 | 10 | Comments='$(var.ProductDescription)' Manufacturer='$(var.ProductManufacturer)' |
10 | | - InstallerVersion='300' Languages='1033' Compressed='yes' SummaryCodepage='1252'/> |
| 11 | + InstallerVersion='300' Languages='1033' Compressed='yes' SummaryCodepage='1252' InstallScope='perMachine'/> |
11 | 12 |
|
12 | 13 | <Media Id='1' Cabinet='Cppcheck.cab' EmbedCab='yes' CompressionLevel='high' DiskPrompt='CD-ROM 1' /> |
13 | 14 | <Property Id='DiskPrompt' Value='Cppcheck installation [1]' /> |
14 | 15 |
|
15 | 16 | <Directory Id='TARGETDIR' Name='SourceDir'> |
| 17 | + <Directory Id='SystemFolder' FileSource='SystemFolder' /> |
16 | 18 | <Directory Id='ProgramFilesFolder' Name='PFiles'> |
17 | 19 | <Directory Id='INSTALLDIR' Name='$(var.ProductNameShort)'> |
| 20 | + <Component Id='cppcheckcore.dll' Guid='$(var.cppcheckcoreGUID)'> |
| 21 | + <File Id='cppcheckcore.dll' Name='cppcheck-core.dll' DiskId='1' Source='$(var.CliBuildDir)\cppcheck-core.dll' KeyPath='yes' /> |
| 22 | + </Component> |
18 | 23 | <Component Id='cppcheck.exe' Guid='$(var.cppcheckGUID)'> |
19 | 24 | <File Id='cppcheck.exe' Name='cppcheck.exe' DiskId='1' Source='$(var.CliBuildDir)\cppcheck.exe' KeyPath='yes' /> |
20 | 25 | </Component> |
|
29 | 34 | <Shortcut Id='startmenuGui' Directory="ProgramMenuDir" Name='$(var.ProductNameShort)' |
30 | 35 | WorkingDirectory='INSTALLDIR' Icon="cppcheckgui.exe" IconIndex="0" Advertise="yes" /> |
31 | 36 | </File> |
32 | | - <File Id='libgcc_s_dw2_1_dll' Name='libgcc_s_dw2-1.dll' Source='libgcc_s_dw2-1.dll' /> |
33 | | - <File Id='mingwm10dll' Name='mingwm10.dll' Source='mingwm10.dll' /> |
34 | | - <File Id='libpcre0dll' Name='libpcre-0.dll' Source='libpcre-0.dll' /> |
35 | 37 | <File Id='qtcore4dll' Name='qtcore4.dll' Source='$(var.QtDllDir)\qtcore4.dll' /> |
36 | 38 | <File Id='qtgui4dll' Name='qtgui4.dll' Source='$(var.QtDllDir)\qtgui4.dll' /> |
37 | | - <File Id='qtxml4dll' Name='qtxml4.dll' Source='$(var.QtDllDir)\qtxml4.dll' /> |
38 | 39 | </Component> |
39 | 40 | <Component Id='GuiTranslations' Guid='$(var.guiTranslationsGUID)'> |
40 | 41 | <File Id='cppcheck_de.qm' Name='cppcheck_de.qm' Source='$(var.TranslationsDir)\cppcheck_de.qm' /> |
41 | 42 | <File Id='cppcheck_es.qm' Name='cppcheck_es.qm' Source='$(var.TranslationsDir)\cppcheck_es.qm' /> |
42 | 43 | <File Id='cppcheck_fi.qm' Name='cppcheck_fi.qm' Source='$(var.TranslationsDir)\cppcheck_fi.qm' /> |
43 | 44 | <File Id='cppcheck_fr.qm' Name='cppcheck_fr.qm' Source='$(var.TranslationsDir)\cppcheck_fr.qm' /> |
| 45 | + <File Id='cppcheck_it.qm' Name='cppcheck_it.qm' Source='$(var.TranslationsDir)\cppcheck_it.qm' /> |
44 | 46 | <File Id='cppcheck_ja.qm' Name='cppcheck_ja.qm' Source='$(var.TranslationsDir)\cppcheck_ja.qm' /> |
45 | 47 | <File Id='cppcheck_ko.qm' Name='cppcheck_ko.qm' Source='$(var.TranslationsDir)\cppcheck_ko.qm' /> |
46 | 48 | <File Id='cppcheck_nl.qm' Name='cppcheck_nl.qm' Source='$(var.TranslationsDir)\cppcheck_nl.qm' /> |
|
64 | 66 | <RemoveFile Id="msvcp90.dll" On="install" Name="msvcp90.dll" /> |
65 | 67 | <RemoveFile Id="msvcr90.dll" On="install" Name="msvcr90.dll" /> |
66 | 68 | <RemoveFile Id="Microsoft.VC90.CRT.manifest" On="install" Name="Microsoft.VC90.CRT.manifest" /> |
| 69 | + <RemoveFile Id='libgcc_s_dw2_1_dll' On='install' Name='libgcc_s_dw2-1.dll' /> |
| 70 | + <RemoveFile Id='mingwm10dll' On='install' Name='mingwm10.dll' /> |
| 71 | + <RemoveFile Id='libpcre0dll' On='install' Name='libpcre-0.dll' /> |
67 | 72 | <RemoveFile Id="gui.exe" On="install" Name="gui.exe" /> |
68 | 73 | <RemoveFile Id="cppcheck_se.qm" On="install" Name="cppcheck_se.qm" /> |
69 | 74 | <RemoveFile Id="cppcheck_en.qm" On="install" Name="cppcheck_en.qm" /> |
| 75 | + <RemoveFile Id="cppcheck_pl.qm" On="install" Name="cppcheck_pl.qm" /> |
70 | 76 | <RemoveFile Id="onlinehelp.qhc" On="install" Name="onlinehelp.qhc" /> |
71 | 77 | <RemoveFile Id="qtclucene4dll" On="install" Name="qtclucene4.dll" /> |
72 | 78 | <RemoveFile Id="qthelp4dll" On="install" Name="qthelp4.dll" /> |
73 | 79 | <RemoveFile Id="qtnetwork4dll" On="install" Name="qtnetwork4.dll" /> |
74 | 80 | <RemoveFile Id="qtsql4dll" On="install" Name="qtsql4.dll" /> |
| 81 | + <RemoveFile Id='qtxml4dll' On='install' Name='qtxml4.dll' /> |
75 | 82 | </Component> |
76 | 83 | </Directory> |
77 | | - <!-- <Merge Id="CRT" Language="0" SourceFile="$(var.CrtMergeModule)" DiskId="1" /> --> |
| 84 | + <Merge Id="CRT" Language="0" SourceFile="$(var.CrtMergeModule)" DiskId="1" /> |
78 | 85 | </Directory> |
79 | 86 |
|
80 | 87 | <Directory Id='ProgramMenuFolder' Name='Programs' > |
|
88 | 95 | </Directory> |
89 | 96 |
|
90 | 97 | <Feature Id='Complete' Title='$(var.ProductName)' Description='The complete package.' |
91 | | - Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR' > |
92 | | - <Feature Id='MainProgram' Title='Command line interface' Description='Command line tool' Level='1'> |
| 98 | + Display='expand' Level='1' AllowAdvertise='no' ConfigurableDirectory='INSTALLDIR' > |
| 99 | + <Feature Id='CppcheckCore' Display='hidden' AllowAdvertise='no' Title='Cppcheck-Core' Description='Cppcheck core components' Level='1'> |
| 100 | + <ComponentRef Id='cppcheckcore.dll' /> |
| 101 | + <ComponentRef Id='RegistryEntries' /> |
| 102 | + <ComponentRef Id='BaseDocs' /> |
| 103 | + <ComponentRef Id='InnoSetupCleanup' /> |
| 104 | + </Feature> |
| 105 | + <Feature Id='CLI' Title='Command line interface' AllowAdvertise='no' Description='Command line tool' Level='1'> |
93 | 106 | <ComponentRef Id='cppcheck.exe' /> |
| 107 | + </Feature> |
| 108 | + <Feature Id='GUI' Title='Graphical interface' AllowAdvertise='no' Description='GUI for cppcheck' Level='1'> |
94 | 109 | <ComponentRef Id='RegistryEntries' /> |
95 | 110 | <ComponentRef Id='GuiExecutable' /> |
96 | | - <ComponentRef Id='GuiTranslations' /> |
| 111 | + <Feature Id='Translations' Title='GUI Translations' AllowAdvertise='no' Description='Translations for cppcheck GUI' Level='1'> |
| 112 | + <ComponentRef Id='GuiTranslations' /> |
| 113 | + </Feature> |
97 | 114 | <ComponentRef Id='BaseDocs' /> |
98 | 115 | <ComponentRef Id='ProgramMenuDir' /> |
99 | | - <ComponentRef Id='InnoSetupCleanup' /> |
100 | 116 | </Feature> |
101 | | - <!-- |
102 | | - <Feature Id="CRT" AllowAdvertise="no" Display="hidden" Level="1" Title="Microsoft Visual C++ 2008 Runtime Components "> |
| 117 | + <Feature Id="CRT" AllowAdvertise="no" Display="hidden" Level="1" Title="Microsoft Visual C++ 2010 Runtime Components "> |
103 | 118 | <MergeRef Id="CRT"/> |
104 | 119 | </Feature> |
105 | | - --> |
106 | 120 | </Feature> |
107 | 121 |
|
108 | 122 | <MajorUpgrade DowngradeErrorMessage='Downgrade is not allowed'/> |
| 123 | + <!--Remove pre 1.57 versions which can't be upgraded with MajorUpgrade--> |
| 124 | + <InstallExecuteSequence> |
| 125 | + <Custom Action='UninstallOld152' After='InstallFinalize'>NOT Installed</Custom> |
| 126 | + <Custom Action='UninstallOld153' After='InstallFinalize'>NOT Installed</Custom> |
| 127 | + <Custom Action='UninstallOld154' After='InstallFinalize'>NOT Installed</Custom> |
| 128 | + <Custom Action='UninstallOld155' After='InstallFinalize'>NOT Installed</Custom> |
| 129 | + <Custom Action='UninstallOld156' After='InstallFinalize'>NOT Installed</Custom> |
| 130 | + </InstallExecuteSequence> |
| 131 | + <CustomAction Id='UninstallOld152' Directory='SystemFolder' ExeCommand="msiexec.exe /X {836AF028-6EE2-457C-B242-19D61701BAA3} /qn" Execute="immediate" Return="asyncNoWait"/> |
| 132 | + <CustomAction Id='UninstallOld153' Directory='SystemFolder' ExeCommand="msiexec.exe /X {42850B7E-CD5F-449A-B6DA-C423156D2ACF} /qn" Execute="immediate" Return="asyncNoWait"/> |
| 133 | + <CustomAction Id='UninstallOld154' Directory='SystemFolder' ExeCommand="msiexec.exe /X {7722557B-4B10-4E8F-918A-78FBAEFB09B1} /qn" Execute="immediate" Return="asyncNoWait"/> |
| 134 | + <CustomAction Id='UninstallOld155' Directory='SystemFolder' ExeCommand="msiexec.exe /X {211B2B89-3FE0-4F49-88CC-27E283BEC010} /qn" Execute="immediate" Return="asyncNoWait"/> |
| 135 | + <CustomAction Id='UninstallOld156' Directory='SystemFolder' ExeCommand="msiexec.exe /X {1CC8C271-A877-4DF0-B1DE-C1B7D83521BC} /qn" Execute="immediate" Return="asyncNoWait"/> |
109 | 136 |
|
110 | 137 | <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" /> |
111 | | - <UIRef Id="WixUI_InstallDir"/> |
| 138 | + <UIRef Id="WixUI_FeatureTree"/> |
112 | 139 |
|
113 | 140 | <Icon Id='cppcheckgui.exe' SourceFile='$(var.GuiBuildDir)\cppcheck-gui.exe' /> |
114 | 141 |
|
|
0 commit comments