Skip to content

Commit 2ba3e6d

Browse files
committed
Updated windows intaller:
- Use VS2015 merge modules - Added addons as optional feature - Added gnu.cfg
1 parent 5428813 commit 2ba3e6d

3 files changed

Lines changed: 21 additions & 6 deletions

File tree

‎win_installer/config.wxi‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
<?define GuiBuildDir = "..\bin" ?>
55
<?define TranslationsDir = "..\gui" ?>
66
<?define CfgsDir = "..\cfg" ?>
7+
<?define AddonsDir = "..\addons" ?>
78
<?define HelpDir = "..\gui\help" ?>
89
<?define QtDllDir = "..\bin" ?>
910

1011
<?if $(var.Platform) = x64 ?>
11-
<?define CrtMergeModule = "$(env.CommonProgramFiles)\Merge Modules\Microsoft_VC120_CRT_x64.msm" ?>
12+
<?define CrtMergeModule = "$(env.CommonProgramFiles)\Merge Modules\Microsoft_VC140_CRT_x64.msm" ?>
1213
<?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
1314
<?else?>
14-
<?define CrtMergeModule = "$(env.CommonProgramFiles)\Merge Modules\Microsoft_VC120_CRT_x86.msm" ?>
15+
<?define CrtMergeModule = "$(env.CommonProgramFiles)\Merge Modules\Microsoft_VC140_CRT_x86.msm" ?>
1516
<?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
1617
<?endif?>
1718
</Include>

‎win_installer/cppcheck.wxs‎

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,22 @@
6565
<File Id='std.cfg' Name='std.cfg' Source='$(var.CfgsDir)\std.cfg' />
6666
</Component>
6767
<Component Id='OptionalCfgs' Guid='$(var.optionalCfgsGUID)'>
68+
<File Id='avr.cfg' Name='avr.cfg' Source='$(var.CfgsDir)\avr.cfg' />
69+
<File Id='gnu.cfg' Name='gnu.cfg' Source='$(var.CfgsDir)\gnu.cfg' />
6870
<File Id='gtk.cfg' Name='gtk.cfg' Source='$(var.CfgsDir)\gtk.cfg' />
71+
<File Id='microsoft_sal.cfg' Name='microsoft_sal.cfg' Source='$(var.CfgsDir)\microsoft_sal.cfg' />
6972
<File Id='posix.cfg' Name='posix.cfg' Source='$(var.CfgsDir)\posix.cfg' />
7073
<File Id='qt.cfg' Name='qt.cfg' Source='$(var.CfgsDir)\qt.cfg' />
7174
<File Id='sdl.cfg' Name='sdl.cfg' Source='$(var.CfgsDir)\sdl.cfg' />
7275
<File Id='windows.cfg' Name='windows.cfg' Source='$(var.CfgsDir)\windows.cfg' />
73-
<File Id='microsoft_sal.cfg' Name='microsoft_sal.cfg' Source='$(var.CfgsDir)\microsoft_sal.cfg' />
74-
<File Id='avr.cfg' Name='avr.cfg' Source='$(var.CfgsDir)\avr.cfg' />
76+
</Component>
77+
</Directory>
78+
<Directory Id='AddonsFolder' Name='addons'>
79+
<Component Id='Addons' Guid='$(var.addonsGUID)'>
80+
<File Id='cppcheckdata.py' Name='cppcheckdata.py' Source='$(var.AddonsDir)\cppcheckdata.py' />
81+
<File Id='cert.py' Name='cert.py' Source='$(var.AddonsDir)\cert.py' />
82+
<File Id='naming.py' Name='naming.py' Source='$(var.AddonsDir)\naming.py' />
83+
<File Id='threadsafety.py' Name='threadsafety.py' Source='$(var.AddonsDir)\threadsafety.py' />
7584
</Component>
7685
</Directory>
7786
<Component Id='BaseDocs' Guid='$(var.basedocsGUID)'>
@@ -107,8 +116,8 @@
107116
<RemoveFile Id='qtgui4dll' On='install' Name='qtgui4.dll' />
108117
</Component>
109118
</Directory>
110-
<Merge Id="CRT" Language="0" SourceFile="$(var.CrtMergeModule)" DiskId="1" />
111119
</Directory>
120+
<Merge Id="CRT" Language="0" SourceFile="$(var.CrtMergeModule)" DiskId="1" />
112121

113122
<Directory Id='ProgramMenuFolder' Name='Programs' >
114123
<Directory Id='ProgramMenuDir' Name='$(var.ProductName)'>
@@ -120,6 +129,7 @@
120129
</Directory>
121130
</Directory>
122131

132+
<Property Id="INSTALLLEVEL" Value="1" />
123133
<Feature Id='Complete' Title='$(var.ProductName)' Description='The complete package.'
124134
Display='expand' Level='1' AllowAdvertise='no' ConfigurableDirectory='INSTALLDIR' >
125135
<Feature Id='CppcheckCore' Display='hidden' AllowAdvertise='no' Title='Cppcheck-Core' Description='Cppcheck core components' Level='1'>
@@ -144,7 +154,10 @@
144154
<Feature Id='ConfigFiles' Title='Additional configurations' AllowAdvertise='no' Description='Provide additional configuration files, for example for WinAPI, GTK and SDL' Level='1'>
145155
<ComponentRef Id='OptionalCfgs' />
146156
</Feature>
147-
<Feature Id="CRT" AllowAdvertise="no" Display="hidden" Level="1" Title="Microsoft Visual C++ 2010 Runtime Components">
157+
<Feature Id='PythonAddons' Title='Python addons' AllowAdvertise='no' Description='Contains several addons requiring python' Level='2'>
158+
<ComponentRef Id='Addons' />
159+
</Feature>
160+
<Feature Id="CRT" AllowAdvertise="no" Display="hidden" Level="1" Title="Microsoft Visual C++ 2015 Runtime Components">
148161
<MergeRef Id="CRT"/>
149162
</Feature>
150163
</Feature>

‎win_installer/productInfo.wxi‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<?define ProductUpgradeCode = "7E94124C-1CD1-433F-9423-4614E52300DD" ?>
1111
<?define cppcheckGUID = "1c31dd76-07fa-4420-b9b5-5463742d6a48" ?>
1212
<?define cppcheckcoreGUID = "1c31dd76-07fa-4420-b9b5-5463742d6a49" ?>
13+
<?define addonsGUID = "25DACF7E-4D29-890D-433F-6922A391C312" ?>
1314
<?define guiGUID = "D7D3FF8E-1D82-4215-B59B-4715A748C540" ?>
1415
<?define qtplatformsGUID = "E2C326DF-11F1-4C05-A955-2E2D2A3B0515" ?>
1516
<?define guiTranslationsGUID = "24738151-890D-4fcc-824C-DA7FF63E0D7F" ?>

0 commit comments

Comments
 (0)