- windows installer - check for free disk space, better downloading error dialog, build_release_windows.bat - add -web flavour
This commit is contained in:
parent
f05a164538
commit
30718abd99
@ -17,6 +17,9 @@ ExtractingDownloadContentTitle=Extracting downloaded content
|
|||||||
ExtractingDownloadContentMessage=This step will perform extraction of the downloaded content
|
ExtractingDownloadContentMessage=This step will perform extraction of the downloaded content
|
||||||
ExtractingDownloadedFile=Extracting file
|
ExtractingDownloadedFile=Extracting file
|
||||||
UntarringDownloadedFile=Untarring file
|
UntarringDownloadedFile=Untarring file
|
||||||
|
ErrorDownloadingFile=Error downloading file from the web repository. Error details: %s
|
||||||
|
NotEnoughSpaceOnInstallationDisk=Not enough space on the destination disk. At least 6GB is needed.
|
||||||
|
NotEnoughSpaceOnTemporaryDisk=Not enough space on the temporary folder disk. At least 6GB is needed.
|
||||||
|
|
||||||
pl.CreateDesktopIcon=Utwórz ikony na pulpicie
|
pl.CreateDesktopIcon=Utwórz ikony na pulpicie
|
||||||
pl.CreateDesktopIconGroup=Dodatkowe ikony:
|
pl.CreateDesktopIconGroup=Dodatkowe ikony:
|
||||||
@ -28,6 +31,7 @@ pl.ExtractingDownloadContentTitle=Rozpakowywanie pobranej dodatkowej treści
|
|||||||
pl.ExtractingDownloadContentMessage=Ten krok rozpakuje pobraną dodatkową treść
|
pl.ExtractingDownloadContentMessage=Ten krok rozpakuje pobraną dodatkową treść
|
||||||
pl.ExtractingDownloadedFile=Rozpakowywanie pliku
|
pl.ExtractingDownloadedFile=Rozpakowywanie pliku
|
||||||
pl.UntarringDownloadedFile=Roztarowanie pliku
|
pl.UntarringDownloadedFile=Roztarowanie pliku
|
||||||
|
pl.ErrorDownloadingFile=Błąd pobierania pliku z repozytorium web. Szczegóły błędu: %s
|
||||||
|
|
||||||
es.CreateDesktopIcon=Crear icono en el escritorio
|
es.CreateDesktopIcon=Crear icono en el escritorio
|
||||||
es.RemoveAllSettings=Borrar todos los ajustes, escenarios y aviones descargados
|
es.RemoveAllSettings=Borrar todos los ajustes, escenarios y aviones descargados
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
; #define OTSoNumber "3"
|
; #define OTSoNumber "3"
|
||||||
; #define FGDetails "-nightly"
|
; #define FGDetails "-nightly"
|
||||||
; #define IncludeData "FALSE"
|
; #define IncludeData "FALSE"
|
||||||
|
; #define IncludeWeb "FALSE"
|
||||||
;
|
;
|
||||||
; Uninstall procedure with --uninstall flag:
|
; Uninstall procedure with --uninstall flag:
|
||||||
; executed by fgfs.exe (fg_init.cxx):
|
; executed by fgfs.exe (fg_init.cxx):
|
||||||
@ -150,6 +151,7 @@ var
|
|||||||
DoCleanCheckbox : TNewCheckBox;
|
DoCleanCheckbox : TNewCheckBox;
|
||||||
CleanHelp : TNewStaticText;
|
CleanHelp : TNewStaticText;
|
||||||
DownloadPage: TDownloadWizardPage;
|
DownloadPage: TDownloadWizardPage;
|
||||||
|
DownloadPageId: Integer;
|
||||||
ExtractDownload: TOutputProgressWizardPage;
|
ExtractDownload: TOutputProgressWizardPage;
|
||||||
|
|
||||||
ResultCode: Integer;
|
ResultCode: Integer;
|
||||||
@ -164,6 +166,7 @@ end;
|
|||||||
procedure InitializeWizard;
|
procedure InitializeWizard;
|
||||||
begin
|
begin
|
||||||
DownloadPage := CreateDownloadPage(SetupMessage(msgWizardPreparing), SetupMessage(msgPreparingDesc), @OnDownloadProgress);
|
DownloadPage := CreateDownloadPage(SetupMessage(msgWizardPreparing), SetupMessage(msgPreparingDesc), @OnDownloadProgress);
|
||||||
|
DownloadPageId := DownloadPage.ID;
|
||||||
ExtractDownload := CreateOutputProgressPage(ExpandConstant('{cm:ExtractingDownloadContentTitle}'), ExpandConstant('{cm:ExtractingDownloadContentMessage}'));
|
ExtractDownload := CreateOutputProgressPage(ExpandConstant('{cm:ExtractingDownloadContentTitle}'), ExpandConstant('{cm:ExtractingDownloadContentMessage}'));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -270,11 +273,58 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function ShouldSkipPage(PageID: Integer): Boolean;
|
||||||
|
begin;
|
||||||
|
if (PageID = DownloadPageId) then
|
||||||
|
begin
|
||||||
|
if (ExpandConstant('{#IncludeWeb}') = 'FALSE') then begin
|
||||||
|
Result := True;
|
||||||
|
end else begin
|
||||||
|
Result := False;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
Result := False;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
function NextButtonClick(CurPageID: Integer): Boolean;
|
function NextButtonClick(CurPageID: Integer): Boolean;
|
||||||
var
|
var
|
||||||
fgDataInstalled: Cardinal;
|
fgDataInstalled: Cardinal;
|
||||||
|
diskFreeMB, diskTotalMB: Cardinal;
|
||||||
begin
|
begin
|
||||||
if CurPageID = wpReady then begin
|
if CurPageID = wpSelectDir then begin
|
||||||
|
// check disk free space - installationFolder
|
||||||
|
if GetSpaceOnDisk(ExpandConstant('{app}'), True, diskFreeMB, diskTotalMB) then
|
||||||
|
begin
|
||||||
|
if diskFreeMB < 6000 then begin
|
||||||
|
MsgBox(ExpandConstant('{cm:NotEnoughSpaceOnInstallationDisk}'), mbError, MB_OK);
|
||||||
|
Result := False;
|
||||||
|
end
|
||||||
|
else begin
|
||||||
|
Result := True;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
// check disk free space - tempFolder
|
||||||
|
if GetSpaceOnDisk(ExpandConstant('{tmp}'), True, diskFreeMB, diskTotalMB) then
|
||||||
|
begin
|
||||||
|
if diskFreeMB < 6000 then begin
|
||||||
|
MsgBox(ExpandConstant('{cm:NotEnoughSpaceOnTemporaryDisk}'), mbError, MB_OK);
|
||||||
|
Result := False;
|
||||||
|
end
|
||||||
|
else begin
|
||||||
|
Result := True;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
// if cannot determine disk size, defaults to move on
|
||||||
|
if diskFreeMB = 0 then begin
|
||||||
|
Result := True;
|
||||||
|
end;
|
||||||
|
end
|
||||||
|
else if CurPageID = wpReady then begin
|
||||||
DownloadPage.Clear;
|
DownloadPage.Clear;
|
||||||
|
|
||||||
fgDataInstalled := 0;
|
fgDataInstalled := 0;
|
||||||
@ -336,7 +386,7 @@ begin
|
|||||||
//if DownloadPage.AbortedByUser then
|
//if DownloadPage.AbortedByUser then
|
||||||
// Log('Aborted by user.')
|
// Log('Aborted by user.')
|
||||||
//else
|
//else
|
||||||
SuppressibleMsgBox(AddPeriod(GetExceptionMessage), mbCriticalError, MB_OK, IDOK);
|
SuppressibleMsgBox(Format(ExpandConstant('{cm:ErrorDownloadingFile}'), [AddPeriod(GetExceptionMessage)]), mbCriticalError, MB_OK, IDOK);
|
||||||
Result := False;
|
Result := False;
|
||||||
end;
|
end;
|
||||||
finally
|
finally
|
||||||
|
@ -155,6 +155,11 @@ IF %IS_NIGHTLY_BUILD% EQU 1 (
|
|||||||
CALL :writeBaseConfig
|
CALL :writeBaseConfig
|
||||||
CALL :writeReleaseConfig
|
CALL :writeReleaseConfig
|
||||||
iscc /Q FlightGear.iss
|
iscc /Q FlightGear.iss
|
||||||
|
|
||||||
|
REM FlightGear release: with fgdata web installer, output filename would be "FlightGear-x.x.x-web.exe"
|
||||||
|
CALL :writeBaseConfig
|
||||||
|
CALL :writeReleaseWebConfig
|
||||||
|
iscc /Q FlightGear.iss
|
||||||
)
|
)
|
||||||
GOTO End
|
GOTO End
|
||||||
|
|
||||||
@ -173,6 +178,13 @@ ECHO #define FGDetails "" >> InstallConfig.iss
|
|||||||
ECHO #define IncludeData "TRUE" >> InstallConfig.iss
|
ECHO #define IncludeData "TRUE" >> InstallConfig.iss
|
||||||
GOTO End
|
GOTO End
|
||||||
|
|
||||||
|
:writeReleaseWebConfig
|
||||||
|
CALL :writeBaseConfig
|
||||||
|
ECHO #define FGDetails "-web" >> InstallConfig.iss
|
||||||
|
ECHO #define IncludeData "FALSE" >> InstallConfig.iss
|
||||||
|
ECHO #define IncludeWeb "TRUE" >> InstallConfig.iss
|
||||||
|
GOTO End
|
||||||
|
|
||||||
:writeNightlyFullConfig
|
:writeNightlyFullConfig
|
||||||
CALL :writeBaseConfig
|
CALL :writeBaseConfig
|
||||||
ECHO #define FGDetails "-nightly-full" >> InstallConfig.iss
|
ECHO #define FGDetails "-nightly-full" >> InstallConfig.iss
|
||||||
|
Loading…
Reference in New Issue
Block a user