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\
16+ #define GdalLicensePath ExeBinPath + " \..\..\..\..\..\MapWinGIS\git\support\GDAL_SDK\licenses\"
1717
1818#define x64BitVersion true
1919
2929; NOTE: The value of AppId uniquely identifies this application.
3030; Do not use the same AppId value in installers for other applications.
3131; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
32- ;; x86:
33- ;;AppId={{EB12FA54-F2EE-4536-9A3E-3477A6049798}
34- ;; x64:
35- AppId={{AF7BDDC6-2263-47B0-9AA2-DA03CA6E8DC6}
32+ #ifdef x64BitVersion
33+ ;; x64:
34+ AppId = {{AF7BDDC6-2263 -47B0-9AA2-DA03CA6E8DC6}
35+ #else
36+ ;; x86:
37+ AppId = {{EB12FA54-F2EE-4536 -9A3E-3477A6049798}
38+ #endif
3639
3740AppName = {#MyAppName }
3841AppVersion = {#MyAppVersion}
3942AppPublisher = {#MyAppPublisher}
4043AppPublisherURL = {#MyAppURL}
4144AppSupportURL = {#MyAppURL}
4245AppUpdatesURL = {#MyAppURL}
43- DefaultDirName={pf } \MapWindow5
46+ DefaultDirName = {commonpf }\MapWindow5
4447DisableProgramGroupPage = no
4548DefaultGroupName = {#MyAppName }
4649LicenseFile = {#ExeBinPath}\..\..\..\licenses\MapWindow5License.rtf
@@ -75,7 +78,6 @@ AlwaysShowComponentsList=false
7578 ArchitecturesInstallIn64BitMode = x64
7679#endif
7780ChangesAssociations = Yes
78- UsePreviousAppDir=False
7981
8082[Components]
8183Name : " MapWindow" ; Description : " MapWindow5 files" ; Types : full custom compact ; Flags : fixed
@@ -94,7 +96,7 @@ Source: "{#ExeBinPath}\Projections\*"; DestDir: "{app}\Projections"; Flags: igno
9496;; Manuals sub folder
9597Source : " {#ExeBinPath}\Manuals\*" ; DestDir : " {app} \Manuals" ; Flags : ignoreversion recursesubdirs createallsubdirs {#SystemFlag}; Components : MapWindow
9698;; Plugins subfolder
97- Source: " {#ExeBinPath}\Plugins\*" ; DestDir: " {app} \Plugins" ; Flags: ignoreversion recursesubdirs createallsubdirs {#SystemFlag}; Components: MapWindow; Excludes: " Interop.MapWinGIS.dll,MW5.TemplatePlugin.dll,Syncfusion.*"
99+ Source : " {#ExeBinPath}\Plugins\*" ; DestDir : " {app} \Plugins" ; Flags : ignoreversion recursesubdirs createallsubdirs {#SystemFlag}; Components : MapWindow; Excludes: " AxInterop.MapWinGIS.dll, Interop.MapWinGIS.dll,MW5.TemplatePlugin.dll,Syncfusion.*, *.pdb "
98100;; Styles subfolder
99101Source : " {#ExeBinPath}\Styles\*" ; DestDir : " {app} \Styles" ; Flags : ignoreversion recursesubdirs createallsubdirs {#SystemFlag}; Components : MapWindow
100102;; SQLite interop:
@@ -126,9 +128,9 @@ BeveledLabel={#MyAppName}
126128[Run]
127129; Install VC++ 2017 if needed:
128130#ifdef x64BitVersion
129- Filename: " {tmp} \{#vcredist}" ; Parameters: " /quiet" ; Flags: waituntilterminated; Check: VCRedistNeedsInstall_x64()
131+ Filename : " {tmp} \{#vcredist}" ; Parameters : " /quiet" ; Flags : waituntilterminated ; Check : VCRedistNeedsInstall_x64()
130132#else
131- Filename: " {tmp} \{#vcredist}" ; Parameters: " /quiet" ; Flags: waituntilterminated; Check: VCRedistNeedsInstall_x86()
133+ Filename : " {tmp} \{#vcredist}" ; Parameters : " /quiet" ; Flags : waituntilterminated ; Check : VCRedistNeedsInstall_x86()
132134#endif
133135Filename : " {app} \MapWindow.exe" ; Flags : shellexec runasoriginaluser postinstall nowait skipifsilent ; Description : " Start MapWindow5 GIS?"
134136Filename : " {code:GetDataDir}" ; Flags : shellexec runasoriginaluser nowait skipifsilent ; Description : " Open sample data folder" ; Components : USASampleData
@@ -160,6 +162,7 @@ Root: "HKCR"; Subkey: "MW5Project\"; ValueName: "InstallDir"; ValueType: string;
160162[InstallDelete]
161163Type : files ; Name : " {app} \Plugins\MW5.TemplatePlugin.dll" ; Components : MapWindow
162164Type : files ; Name : " {app} \Plugins\Interop.MapWinGIS.dll" ; Components : MapWindow
165+ Type : files ; Name : " {app} \Plugins\AxInterop.MapWinGIS.dll" ; Components : MapWindow
163166;; Old ECW driver, conflicts with new driver:
164167Type : files ; Name : " {app} \MapWinGIS\libecwj2.dll" ; Components : MapWindow
165168
268271
269272// custom wizard page setup, for data dir.
270273procedure InitializeWizard ;
271- var
272- myLocalAppData: String;
273274begin
274275 DataDirPage := CreateInputDirPage(
275276 wpSelectComponents,
@@ -298,7 +299,7 @@ begin
298299 // if the page that is asked to be skipped is your custom page, then...
299300 if PageID = DataDirPage.ID then
300301 // if the component is not selected, skip the page
301- Result := not IsComponentSelected ('USASampleData');
302+ Result := not WizardIsComponentSelected (' USASampleData' );
302303end ;
303304
304305function IsDotNetDetected (version: string; service: cardinal): boolean;
0 commit comments