Skip to content

Commit 10d76dc

Browse files
committed
Making v5.5
1 parent 2ee59d8 commit 10d76dc

File tree

5 files changed

+658
-141
lines changed

5 files changed

+658
-141
lines changed

install/MapWindow5.iss

Lines changed: 42 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,19 @@
77
#define ExeBinPath "..\bin\x86\Release"
88
#define SamplePath "testdata"
99
#define CPU "Win32"
10-
#define vcredist "vcredist_x86-2015.exe"
10+
#define vcredist "vcredist_x86-2017.exe"
1111
#define SystemFlag "32bit"
1212
#define MyAppName "MapWindow5"
1313
#define MyAppPublisher "MapWindow Open Source GIS Community"
1414
#define MyAppURL "https://www.mapwindow.org/documentation/mapwindow5/"
1515
#define ReleaseNotes ExeBinPath + "\..\..\..\src\SolutionItems\ReleaseNotes.rtf"
16+
#define GdalLicensePath ExeBinPath + "\..\..\..\..\..\MapWinGIS\git\support\GDAL_SDK\licenses\
1617
1718
#define x64BitVersion true
1819
1920
#ifdef x64BitVersion
2021
#define CPU "x64"
21-
#define vcredist "vcredist_x64-2015.exe"
22+
#define vcredist "vcredist_x64-2017.exe"
2223
#define ExeBinPath "..\bin\x64\Release"
2324
#define SystemFlag "64bit"
2425
#endif
@@ -105,7 +106,7 @@ Source: "{#ExeBinPath}\x86\*"; DestDir: "{app}\x86"; Flags: ignoreversion {#Syst
105106
;; Config files:
106107
Source: "{#ExeBinPath}\MapWindow.exe.config"; DestDir: "{app}"; Flags: ignoreversion {#SystemFlag}; Components: MapWindow; Permissions: users-modify
107108
;; Licenses
108-
Source: "{#ExeBinPath}\..\..\..\..\MapWinGIS\support\GDAL_SDK\licenses\*.rtf"; DestDir: "{app}\Licenses"; Flags: ignoreversion; Components: MapWindow
109+
Source: "{#GdalLicensePath}\*.rtf"; DestDir: "{app}\Licenses"; Flags: ignoreversion; Components: MapWindow
109110
Source: "{#ExeBinPath}\..\..\..\licenses\*"; DestDir: "{app}\Licenses"; Flags: ignoreversion {#SystemFlag}; Components: MapWindow
110111
111112
;; Sample data
@@ -123,7 +124,7 @@ Source: "{#ReleaseNotes}"; DestDir: "{app}"; Flags: ignoreversion; Components: M
123124
BeveledLabel={#MyAppName}
124125
125126
[Run]
126-
; Install VC++ 2015 if needed:
127+
; Install VC++ 2017 if needed:
127128
#ifdef x64BitVersion
128129
Filename: "{tmp}\{#vcredist}"; Parameters: "/quiet"; Flags: waituntilterminated; Check: VCRedistNeedsInstall_x64()
129130
#else
@@ -204,6 +205,12 @@ const
204205
VC_2015_REDIST_X86 = '{8F271F6C-6E7B-3D0A-951B-6E7B694D78BD}'; //Microsoft.VS.VC_RuntimeMinimumVSU_x86,v14
205206
VC_2015_REDIST_X64 = '{221D6DB4-46E2-333C-B09B-5F49351D0980}'; //Microsoft.VS.VC_RuntimeMinimumVSU_amd64,v14
206207
208+
209+
// https://bell0bytes.eu/inno-setup-vc/
210+
// { Visual C++ 2017 Redistributable 14.16.27024 }
211+
VC_2017_REDIST_X86 = '{5EEFCEFB-E5F7-4C82-99A5-813F04AA4FBD}';
212+
VC_2017_REDIST_X64 = '{F1B0FB3A-E0EA-47A6-9383-3650655403B0}';
213+
207214
function MsiQueryProductState(szProduct: string): INSTALLSTATE;
208215
external 'MsiQueryProductState{#AW}@msi.dll stdcall';
209216
@@ -219,7 +226,7 @@ begin
219226
// this statement, the following won't install your VC redist only when
220227
// the Visual C++ 2008 Redist (x86) and Visual C++ 2008 SP1 Redist(x86)
221228
// are installed for the current user
222-
Result := not (VCVersionInstalled(VC_2015_REDIST_X86));
229+
Result := not (VCVersionInstalled(VC_2017_REDIST_X86));
223230
end;
224231
225232
function VCRedistNeedsInstall_x64(): Boolean;
@@ -229,7 +236,7 @@ begin
229236
// this statement, the following won't install your VC redist only when
230237
// the Visual C++ 2008 Redist (x86) and Visual C++ 2008 SP1 Redist(x86)
231238
// are installed for the current user
232-
Result := not (VCVersionInstalled(VC_2015_REDIST_X64));
239+
Result := not (VCVersionInstalled(VC_2017_REDIST_X64));
233240
end;
234241
235242
function NeedsAddPath(Param: string): boolean;
@@ -369,8 +376,8 @@ end;
369376
370377
function InitializeSetup(): Boolean;
371378
begin
372-
if not IsDotNetDetected('v4.5', 0) then begin
373-
MsgBox('MapWindow5 requires Microsoft .NET Framework 4.5.'#13#13
379+
if not IsDotNetDetected('v4.6', 0) then begin
380+
MsgBox('MapWindow5 requires Microsoft .NET Framework 4.6.'#13#13
374381
'Please use Windows Update to install this version,'#13
375382
'and then re-run this setup program.', mbInformation, MB_OK);
376383
result := false;
@@ -380,51 +387,50 @@ end;
380387
381388
[Languages]
382389
Name: "english"; MessagesFile: "compiler:Default.isl"
383-
;Name: "afrikaans"; MessagesFile: "compiler:Languages\Afrikaans.isl"
384-
;Name: "albanian"; MessagesFile: "compiler:Languages\Albanian.isl"
385-
;Name: "arabic"; MessagesFile: "compiler:Languages\Arabic.isl"
386-
;Name: "basque"; MessagesFile: "compiler:Languages\Basque.isl"
387-
;Name: "belarusian"; MessagesFile: "compiler:Languages\Belarusian.isl"
388-
;Name: "bosnian"; MessagesFile: "compiler:Languages\Bosnian.isl"
390+
;;Name: "afrikaans"; MessagesFile: "compiler:Languages\Afrikaans.isl"
391+
;;Name: "albanian"; MessagesFile: "compiler:Languages\Albanian.isl"
392+
;;Name: "arabic"; MessagesFile: "compiler:Languages\Arabic.isl"
393+
;;Name: "basque"; MessagesFile: "compiler:Languages\Basque.isl"
394+
;;Name: "belarusian"; MessagesFile: "compiler:Languages\Belarusian.isl"
395+
;;Name: "bosnian"; MessagesFile: "compiler:Languages\Bosnian.isl"
389396
Name: "brazilianportuguese"; MessagesFile: "compiler:Languages\BrazilianPortuguese.isl"
390-
;Name: "bulgarian"; MessagesFile: "compiler:Languages\Bulgarian.isl"
397+
;;Name: "bulgarian"; MessagesFile: "compiler:Languages\Bulgarian.isl"
391398
Name: "catalan"; MessagesFile: "compiler:Languages\Catalan.isl"
392-
;Name: "chinesesimp"; MessagesFile: "compiler:Languages\ChineseSimplified.isl"
393-
;Name: "chinesetrad"; MessagesFile: "compiler:Languages\ChineseTraditional.isl"
399+
;;Name: "chinesesimp"; MessagesFile: "compiler:Languages\ChineseSimplified.isl"
400+
;;Name: "chinesetrad"; MessagesFile: "compiler:Languages\ChineseTraditional.isl"
394401
Name: "corsican"; MessagesFile: "compiler:Languages\Corsican.isl"
395402
Name: "czech"; MessagesFile: "compiler:Languages\Czech.isl"
396403
Name: "danish"; MessagesFile: "compiler:Languages\Danish.isl"
397404
Name: "dutch"; MessagesFile: "compiler:Languages\Dutch.isl"
398-
;Name: "estonian"; MessagesFile: "compiler:Languages\Estonian.isl"
405+
;;Name: "estonian"; MessagesFile: "compiler:Languages\Estonian.isl"
399406
Name: "finnish"; MessagesFile: "compiler:Languages\Finnish.isl"
400407
Name: "french"; MessagesFile: "compiler:Languages\French.isl"
401-
;Name: "galician"; MessagesFile: "compiler:Languages\Galician.isl"
408+
;;Name: "galician"; MessagesFile: "compiler:Languages\Galician.isl"
402409
Name: "german"; MessagesFile: "compiler:Languages\German.isl"
403-
Name: "greek"; MessagesFile: "compiler:Languages\Greek.isl"
410+
;;Name: "greek"; MessagesFile: "compiler:Languages\Greek.isl"
404411
Name: "hebrew"; MessagesFile: "compiler:Languages\Hebrew.isl"
405-
Name: "hungarian"; MessagesFile: "compiler:Languages\Hungarian.isl"
406-
;Name: "icelandic"; MessagesFile: "compiler:Languages\Icelandic.isl"
407-
;Name: "indonesian"; MessagesFile: "compiler:Languages\Indonesian.isl"
412+
;;Name: "hungarian"; MessagesFile: "compiler:Languages\Hungarian.isl"
413+
Name: "icelandic"; MessagesFile: "compiler:Languages\Icelandic.isl"
414+
;;Name: "indonesian"; MessagesFile: "compiler:Languages\Indonesian.isl"
408415
Name: "italian"; MessagesFile: "compiler:Languages\Italian.isl"
409416
Name: "japanese"; MessagesFile: "compiler:Languages\Japanese.isl"
410-
;Name: "korean"; MessagesFile: "compiler:Languages\Korean.isl"
411-
;Name: "lithuanian"; MessagesFile: "compiler:Languages\Lithuanian.isl"
412-
;Name: "luxemburgish"; MessagesFile: "compiler:Languages\Luxemburgish.isl"
413-
;Name: "macedonian"; MessagesFile: "compiler:Languages\Macedonian.isl"
414-
;Name: "malaysian"; MessagesFile: "compiler:Languages\Malaysian.isl"
415-
;Name: "nepali"; MessagesFile: "compiler:Languages\Nepali.islu"
417+
;;Name: "korean"; MessagesFile: "compiler:Languages\Korean.isl"
418+
;;Name: "lithuanian"; MessagesFile: "compiler:Languages\Lithuanian.isl"
419+
;;Name: "luxemburgish"; MessagesFile: "compiler:Languages\Luxemburgish.isl"
420+
;;Name: "macedonian"; MessagesFile: "compiler:Languages\Macedonian.isl"
421+
;;Name: "malaysian"; MessagesFile: "compiler:Languages\Malaysian.isl"
422+
;;Name: "nepali"; MessagesFile: "compiler:Languages\Nepali.islu"
416423
Name: "norwegian"; MessagesFile: "compiler:Languages\Norwegian.isl"
417424
Name: "polish"; MessagesFile: "compiler:Languages\Polish.isl"
418425
Name: "portuguese"; MessagesFile: "compiler:Languages\Portuguese.isl"
419-
;Name: "romanian"; MessagesFile: "compiler:Languages\Romanian.isl"
426+
;;Name: "romanian"; MessagesFile: "compiler:Languages\Romanian.isl"
420427
Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"
421-
Name: "serbiancyrillic"; MessagesFile: "compiler:Languages\SerbianCyrillic.isl"
422-
Name: "serbianlatin"; MessagesFile: "compiler:Languages\SerbianLatin.isl"
423-
;Name: "slovak"; MessagesFile: "compiler:Languages\Slovak.isl"
428+
;;Name: "serbiancyrillic"; MessagesFile: "compiler:Languages\SerbianCyrillic.isl"
429+
;;Name: "serbianlatin"; MessagesFile: "compiler:Languages\SerbianLatin.isl"
430+
;;Name: "slovak"; MessagesFile: "compiler:Languages\Slovak.isl"
424431
Name: "slovenian"; MessagesFile: "compiler:Languages\Slovenian.isl"
425432
Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"
426-
;Name: "swedish"; MessagesFile: "compiler:Languages\Swedish.isl"
427-
;Name: "tatarish"; MessagesFile: "compiler:Languages\Tatar.isl"
433+
;;Name: "swedish"; MessagesFile: "compiler:Languages\Swedish.isl"
434+
;;Name: "tatarish"; MessagesFile: "compiler:Languages\Tatar.isl"
428435
Name: "turkish"; MessagesFile: "compiler:Languages\Turkish.isl"
429436
Name: "ukrainian"; MessagesFile: "compiler:Languages\Ukrainian.isl"
430-

src/MW5.Api/MW5.Api.csproj

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,9 @@
5757
</PropertyGroup>
5858
<ItemGroup>
5959
<Reference Include="AxInterop.MapWinGIS">
60-
<HintPath>..\..\..\..\MapWinGIS\git\src\bin\Win32\16.0\AxInterop.MapWinGIS.dll</HintPath>
60+
<HintPath>..\..\..\..\MapWinGIS\git\src\bin\Win32\15.0\AxInterop.MapWinGIS.dll</HintPath>
61+
<Private>True</Private>
6162
</Reference>
62-
<Reference Include="Interop.MapWinGIS">
63-
<HintPath>..\..\..\..\MapWinGIS\git\src\bin\Win32\16.0\Interop.MapWinGIS.dll</HintPath>
64-
<EmbedInteropTypes>False</EmbedInteropTypes>
65-
</Reference>
66-
<Reference Include="Microsoft.Build.Utilities.v4.0" />
6763
<Reference Include="Microsoft.CSharp" />
6864
<Reference Include="System" />
6965
<Reference Include="System.Core" />
@@ -316,6 +312,15 @@
316312
<Compile Include="Static\GdalUtils.cs" />
317313
</ItemGroup>
318314
<ItemGroup>
315+
<COMReference Include="MapWinGIS">
316+
<Guid>{C368D713-CC5F-40ED-9F53-F84FE197B96A}</Guid>
317+
<VersionMajor>5</VersionMajor>
318+
<VersionMinor>1</VersionMinor>
319+
<Lcid>0</Lcid>
320+
<WrapperTool>tlbimp</WrapperTool>
321+
<Isolated>True</Isolated>
322+
<EmbedInteropTypes>False</EmbedInteropTypes>
323+
</COMReference>
319324
<COMReference Include="stdole">
320325
<Guid>{00020430-0000-0000-C000-000000000046}</Guid>
321326
<VersionMajor>2</VersionMajor>
18.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)