Skip to content

Commit 438b07c

Browse files
committed
Fix detection of installation of future and past versions
1 parent e0209e1 commit 438b07c

File tree

3 files changed

+290
-257
lines changed

3 files changed

+290
-257
lines changed

builds/install/arch-specific/win32/FirebirdInstall.iss

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,17 @@
4040
; server. They must be stopped manually.
4141
;
4242
;
43+
; Debugging this script
44+
;
45+
; You need to run BuildExecutableInstall.bat to create the correct environment.
46+
; If you have built firebird from run_all.bat you need to switch to the install
47+
; script directory:
48+
; pushd ..\install\arch-specific\win32
49+
;
50+
; After that you should be able to compile and debug the script from the command
51+
; line thus:
52+
; "%INNO6_SETUP_PATH%"\compil32.exe FirebirdInstall.iss
53+
;
4354
;
4455
#define MyAppPublisher "Firebird Project"
4556
#define MyAppURL "http://www.firebirdsql.org/"
@@ -250,6 +261,7 @@
250261
#define debug_str=""
251262
#endif
252263

264+
#define InstallTimeStamp GetDateTimeString('yyyymmdd-hhnnss','','')
253265

254266
[Setup]
255267
AppName={#MyAppName}
@@ -539,7 +551,7 @@ Source: {#FilesDir}\help\*.*; DestDir: {app}\help; Components: DevAdminComponent
539551
Source: {#FilesDir}\include\*.*; DestDir: {app}\include; Components: DevAdminComponent; Flags: ignoreversion recursesubdirs createallsubdirs;
540552
Source: {#FilesDir}\intl\fbintl.dll; DestDir: {app}\intl; Components: ServerComponent; Flags: sharedfile ignoreversion;
541553
Source: {#FilesDir}\intl\fbintl.conf; DestDir: {app}\intl; Components: ServerComponent; Flags: onlyifdoesntexist
542-
Source: {#FilesDir}\lib\*.*; DestDir: {app}\lib; Components: DevAdminComponent; Flags: ignoreversion;
554+
Source: {#FilesDir}\lib\*.lib; DestDir: {app}\lib; Components: DevAdminComponent; Flags: ignoreversion;
543555
#if PlatformTarget == "x64"
544556
Source: {#WOW64Dir}\lib\*.lib; DestDir: {app}\WOW64\lib; Components: DevAdminComponent; Flags: ignoreversion
545557
#endif
@@ -572,9 +584,13 @@ Source: {#FilesDir}\examples\*.*; DestDir: {app}\examples; Components: DevAdminC
572584
#ifdef ship_pdb
573585
Source: {#FilesDir}\fbclient.pdb; DestDir: {app}; Components: ClientComponent;
574586
Source: {#FilesDir}\firebird.pdb; DestDir: {app}; Components: ServerComponent;
587+
Source: {#FilesDir}\fbtracemgr.pdb; DestDir: {app}; Components: DevAdminComponent;
588+
Source: {#FilesDir}\intl\fbintl.pdb; DestDir: {app}\intl; Components: DevAdminComponent;
575589
Source: {#FilesDir}\gbak.pdb; DestDir: {app}; Components: DevAdminComponent;
576590
Source: {#FilesDir}\gfix.pdb; DestDir: {app}; Components: DevAdminComponent;
591+
Source: {#FilesDir}\ib_util.pdb; DestDir: {app}; Components: ServerComponent;
577592
Source: {#FilesDir}\isql.pdb; DestDir: {app}; Components: ClientComponent;
593+
Source: {#FilesDir}\nbackup.pdb; DestDir: {app}; Components: DevAdminComponent;
578594
Source: {#FilesDir}\plugins\*.pdb; DestDir: {app}\plugins; Components: ServerComponent;
579595
#if PlatformTarget == "x64"
580596
Source: {#WOW64Dir}\fbclient.pdb; DestDir: {app}\WOW64; Components: ClientComponent;
@@ -665,6 +681,7 @@ begin
665681
end;
666682
667683
684+
668685
function InitializeSetup(): Boolean;
669686
var
670687
i: Integer;
@@ -679,8 +696,8 @@ begin
679696
if ((pos('HELP',Uppercase(CommandLine)) > 0) or
680697
(pos('--',Uppercase(CommandLine)) > 0) )
681698
// or
682-
// (pos('/?',Uppercase(CommandLine)) > 0) or // InnoSetup displays its own help if these switches are passed.
683-
// (pos('/H',Uppercase(CommandLine)) > 0) ) // Note also that our help scren only appears after the Choose Language dialogue :-(
699+
// (pos('/?',Uppercase(CommandLine)) > 0) or // InnoSetup displays its own help if these switches are passed.
700+
// (pos('/H',Uppercase(CommandLine)) > 0) ) // Note also that our help screen only appears after the Choose Language dialogue :-(
684701
then begin
685702
ShowHelpDlg;
686703
result := False;
@@ -1231,7 +1248,7 @@ begin
12311248
Result := True;
12321249
case CurPageID of
12331250
AdminUserPage.ID : begin
1234-
{ check user has entered new sysdba password correctly. }
1251+
{ check user has entered new sysdba password correctly. }
12351252
i := CompareStr(AdminUserPage.Values[0],AdminUserPage.Values[1]);
12361253
If not (i = 0) then begin
12371254
Result := False;
@@ -1246,4 +1263,3 @@ end;
12461263
begin
12471264
end.
12481265
1249-
; kate: replace-tabs on; indent-width 2; tab-width 2; replace-tabs-save on; syntax Pascal;

0 commit comments

Comments
 (0)