Skip to content

Commit 86cf3a9

Browse files
committed
misc tidy up
1 parent 0174984 commit 86cf3a9

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

builds/install/arch-specific/win32/BuildExecutableInstall.bat

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ if "%FB2_SNAPSHOT%"=="1" (
163163
)
164164

165165
:: Set up our final destination
166-
set FBBUILD_INSTALL_IMAGES=%FB_ROOT_PATH%\builds\install_images
166+
@set FBBUILD_INSTALL_IMAGES=%FB_ROOT_PATH%\builds\install_images
167167
@if not exist "%FBBUILD_INSTALL_IMAGES%" ( mkdir "%FBBUILD_INSTALL_IMAGES%" )
168168

169169
:: Determine Product Status
@@ -223,6 +223,7 @@ set FBBUILD_INSTALL_IMAGES=%FB_ROOT_PATH%\builds\install_images
223223
@if not exist %FB_OUTPUT_DIR%\system32 (
224224
mkdir %FB_OUTPUT_DIR%\system32
225225
)
226+
226227
:: Note the confusion of RT library numbers here! These notes, as of time of
227228
:: writing 2021-12-21, are accurate for current versions of Visual Studio
228229
:: - 2017, 2019, 2022. Basic MS runtime version is v140. Except that is only
@@ -390,10 +391,12 @@ for %%v in (IPLicense.txt IDPLicense.txt ) do (
390391
if not exist %FB_OUTPUT_DIR%\system32\vccrt%MSVC_RUNTIME_LIBRARY_VERSION%_%FB_TARGET_PLATFORM%.msi (
391392
"%WIX%\bin\candle.exe" -v -sw1091 %FB_ROOT_PATH%\builds\win32\msvc%MSVC_VERSION%\VCCRT_%FB_TARGET_PLATFORM%.wxs -out %FB_GEN_DIR%\vccrt_%FB_TARGET_PLATFORM%.wixobj
392393
if ERRORLEVEL 1 (
393-
( call :ERROR Could not generate wixobj for MSVC Runtime MSI ) & ( goto :EOF )
394+
call :ERROR Could not generate wixobj for MSVC Runtime MSI %MSVC_RUNTIME_LIBRARY_VERSION% & goto :EOF
394395
) else (
395-
"%WIX%\bin\light.exe" -sw1076 %FB_GEN_DIR%\vccrt_%FB_TARGET_PLATFORM%.wixobj -out %FB_OUTPUT_DIR%\system32\vccrt%MSVC_RUNTIME_LIBRARY_VERSION%_%FB_TARGET_PLATFORM%.msi
396-
if ERRORLEVEL 1 ( ( call :ERROR Could not generate MSVCC Runtime MSI %MSVC_RUNTIME_LIBRARY_VERSION% ) & ( goto :EOF ) )
396+
"%WIX%\bin\light.exe" -sw1076 %FB_GEN_DIR%\vccrt_%FB_TARGET_PLATFORM%.wixobj -out %FB_OUTPUT_DIR%\system32\vccrt%MSVC_RUNTIME_LIBRARY_VERSION%_%FB_TARGET_PLATFORM%.msi
397+
if ERRORLEVEL 1 (
398+
call :ERROR Could not generate MSVCC Runtime MSI %MSVC_RUNTIME_LIBRARY_VERSION% & goto :EOF
399+
)
397400
)
398401
) else (
399402
echo Using an existing build of %FB_OUTPUT_DIR%\system32\vccrt%MSVC_RUNTIME_LIBRARY_VERSION%_%FB_TARGET_PLATFORM%.msi

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,7 @@ begin
726726
end;
727727
728728
729+
729730
function InitializeSetup(): Boolean;
730731
var
731732
i: Integer;
@@ -749,9 +750,9 @@ begin
749750
750751
if ((pos('HELP',Uppercase(CommandLine)) > 0) or
751752
(pos('--',Uppercase(CommandLine)) > 0) )
752-
// or
753-
// (pos('/?',Uppercase(CommandLine)) > 0) or // InnoSetup displays its own help if these switches are passed.
754-
// (pos('/H',Uppercase(CommandLine)) > 0) ) // Note also that our help scren only appears after the Choose Language dialogue :-(
753+
// or
754+
// (pos('/?',Uppercase(CommandLine)) > 0) or // InnoSetup displays its own help if these switches are passed.
755+
// (pos('/H',Uppercase(CommandLine)) > 0) ) // Note also that our help screen only appears after the Choose Language dialogue :-(
755756
then begin
756757
ShowHelpDlg;
757758
result := False;
@@ -1157,7 +1158,7 @@ begin
11571158
//Move lang specific readme from doc dir to root of install.
11581159
if NonDefaultLanguage then begin
11591160
ReadMeFileStr := ExpandConstant('{cm:ReadMeFile}');
1160-
if FileCopy(GetAppPath+'\doc\'+ReadMeFileStr, GetAppPath+'\'+ReadMeFileStr, false) then
1161+
if CopyFile(GetAppPath+'\doc\'+ReadMeFileStr, GetAppPath+'\'+ReadMeFileStr, false) then
11611162
DeleteFile(GetAppPath+'\doc\'+ReadMeFileStr);
11621163
end;
11631164
@@ -1306,7 +1307,7 @@ begin
13061307
Result := True;
13071308
case CurPageID of
13081309
AdminUserPage.ID : begin
1309-
{ check user has entered new sysdba password correctly. }
1310+
{ check user has entered new sysdba password correctly. }
13101311
i := CompareStr(AdminUserPage.Values[0],AdminUserPage.Values[1]);
13111312
If not (i = 0) then begin
13121313
Result := False;

0 commit comments

Comments
 (0)