You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Setup/Conform6.iss
+13-8Lines changed: 13 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -130,16 +130,21 @@ var
130
130
begin
131
131
Result := FALSE; // Assume failure
132
132
PlatformVersionNumber := PlatformVersion(); // Get the installed Platform version as a double
133
-
If (PlatformVersionNumber >= MINIMUM_PLATFORM_VERSION) and (PlatformVersionNumber <= MAXIMUM_PLATFORM_VERSION) then// Check whether we have the minimum required Platform or newer and the maximum or older Platform
133
+
// Check whether we have the minimum required Platform or newer and the maximum or older Platform
134
+
If (PlatformVersionNumber >= MINIMUM_PLATFORM_VERSION) and (PlatformVersionNumber <= MAXIMUM_PLATFORM_VERSION) then// We are on a supported OS
134
135
Result := TRUE
135
-
else
136
-
If PlatformVersionNumber = 0.0then
136
+
else// We are not on a suypported OS
137
+
// Check whether a Platform is installed
138
+
If PlatformVersionNumber = 0.0then// No Platform is installed
137
139
MsgBox('No ASCOM Platform is installed. Please install Platform ' + Format('%3.1f', [MINIMUM_PLATFORM_VERSION]) + ' or later from http://www.ascom-standards.org', mbCriticalError, MB_OK)
138
-
elsebegin
139
-
If PlatformVersionNumber < MINIMUM_PLATFORM_VERSION then
140
-
MsgBox('This version of Conform requires ASCOM Platform ' + Format('%3.1f', [MINIMUM_PLATFORM_VERSION]) + ' or ' + Format('%3.1f', [MAXIMUM_PLATFORM_VERSION]) + ', but Platform '+ Format('%3.1f', [PlatformVersionNumber]) + ' is installed.' #13#13'Please install Platform 6.5 or 6.6 to use this Conform version (Please note that this version will not work on Platform 7).', mbCriticalError, MB_OK)
141
-
else
142
-
MsgBox('This version of Conform only runs on ASCOM Platform ' + Format('%3.1f', [MINIMUM_PLATFORM_VERSION]) + ' and ' + Format('%3.1f', [MAXIMUM_PLATFORM_VERSION]) + ', but Platform '+ Format('%3.1f', [PlatformVersionNumber]) + ' is installed.' #13#13'For Platform 7, please use a later version of Conform or preferably Conform Universal, which has greater functionality.', mbCriticalError, MB_OK);
140
+
elsebegin// An incompatible Platform is installed
141
+
// Check whether an earlier Platform than the minimum is installed
142
+
If PlatformVersionNumber < MINIMUM_PLATFORM_VERSION then// An earlier Platform is installed
143
+
MsgBox('This version of Conform requires ASCOM Platform ' + Format('%3.1f', [MINIMUM_PLATFORM_VERSION]) + ' or later' +
144
+
', but Platform '+ Format('%3.1f', [PlatformVersionNumber]) + ' is installed.' #13#13'Please install Platform 7 to use this Conform version.', mbCriticalError, MB_OK)
145
+
else// A later Platform is installed that is younger than the maximum supported version
146
+
MsgBox('This version of Conform only runs on ASCOM Platforms from ' + Format('%3.1f', [MINIMUM_PLATFORM_VERSION]) + ' to ' + Format('%3.1f', [MAXIMUM_PLATFORM_VERSION]) +
147
+
', but Platform '+ Format('%3.1f', [PlatformVersionNumber]) + ' is installed.' #13#13'For Platform 7, please use a later version of Conform or preferably Conform Universal, which has greater functionality.', mbCriticalError, MB_OK);
0 commit comments