mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
Merge pull request #1637 from Wengier/master
Fully automatic building script & tools for the Windows installer
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
0.83.3
|
||||
- Rewrote the Windows installer for DOSBox-X. (Wengier)
|
||||
- Rewrote the Windows installer for DOSBox-X, as well as
|
||||
the building script for the installer. All required
|
||||
build tools including the Inno Setup Compiler are now
|
||||
provided in the repository and will be automatically
|
||||
called by the building script. (Wengier)
|
||||
- Added config option "mapperfile_sdl2" for SDL2 builds.
|
||||
SDL1 and SDL2 builds of DOSBox-X can not use the same
|
||||
mapper file, or they will likely malfunction. Adding
|
||||
|
139
build_windows_installer.bat
Normal file
139
build_windows_installer.bat
Normal file
@@ -0,0 +1,139 @@
|
||||
rem This script will build Inno-Setup based Windows installer for DOSBox-X (Wengier).
|
||||
rem All Visual Studio and MinGW builds will be extracted from the Windows ZIP packages
|
||||
rem located in %%vsbinpath%% and %%mgbinpath%% directories (built with other scripts).
|
||||
rem One of them will be selected by user as the default Windows version to be executed.
|
||||
|
||||
@echo off
|
||||
|
||||
rem %rootdir% is the root directory of the respository. "." assumes the current directory.
|
||||
rem Make sure to surround the directory in quotes (") in case it includes spaces.
|
||||
set rootdir=.
|
||||
|
||||
set isspath=%rootdir%\windows-installer
|
||||
set vsbinpath=%rootdir%\release\windows
|
||||
set mgbinpath=%rootdir%\..
|
||||
|
||||
cls
|
||||
|
||||
if not exist %isspath%\date.exe (
|
||||
echo Couldn't find %isspath%\date.exe
|
||||
goto error
|
||||
)
|
||||
|
||||
if not exist %isspath%\7za.exe (
|
||||
echo Couldn't find %isspath%\7za.exe
|
||||
goto error
|
||||
)
|
||||
|
||||
if not exist %isspath%\ISCC.exe (
|
||||
echo Couldn't find Inno Setup Compiler at %isspath%\ISCC.exe
|
||||
goto error
|
||||
)
|
||||
|
||||
set datestr=
|
||||
for /f %%i in ('%isspath%\date.exe +%%Y%%m%%d') do set datestr=%%i
|
||||
|
||||
if "%datestr%"=="" (
|
||||
echo Couldn't set date
|
||||
goto error
|
||||
)
|
||||
|
||||
set winzip=
|
||||
set m32zip=
|
||||
set m64zip=
|
||||
|
||||
for %%i in (%vsbinpath%\dosbox-x-windows-%datestr%-*-windows.zip) do set winzip=%%i
|
||||
for %%i in (%mgbinpath%\dosbox-x-mingw-win32-%datestr%*.zip) do set m32zip=%%i
|
||||
for %%i in (%mgbinpath%\dosbox-x-mingw-win64-%datestr%*.zip) do set m64zip=%%i
|
||||
|
||||
if not exist "%winzip%" (
|
||||
echo Couldn't find dosbox-x-windows-%datestr%-*-windows.zip at %vsbinpath%
|
||||
goto error
|
||||
)
|
||||
|
||||
if not exist "%m32zip%" (
|
||||
echo Couldn't find dosbox-x-mingw-win32-%datestr%*.zip at %mgbinpath%
|
||||
goto error
|
||||
)
|
||||
|
||||
if not exist "%m64zip%" (
|
||||
echo Couldn't find dosbox-x-mingw-win64-%datestr%*.zip at %mgbinpath%
|
||||
goto error
|
||||
)
|
||||
|
||||
echo.
|
||||
echo ***************************************
|
||||
echo * Extract DOSBox-X executables ... *
|
||||
echo ***************************************
|
||||
if exist %isspath%\Win32_builds\nul rd %isspath%\Win32_builds /s /q
|
||||
if exist %isspath%\Win64_builds\nul rd %isspath%\Win64_builds /s /q
|
||||
%isspath%\7za.exe e -y -o%isspath%\Win32_builds\x86_Release %winzip% "bin\Win32\Release\dosbox-x.exe"
|
||||
%isspath%\7za.exe e -y -o%isspath%\Win32_builds\x86_Release_SDL2 %winzip% "bin\Win32\Release SDL2\dosbox-x.exe"
|
||||
%isspath%\7za.exe e -y -o%isspath%\Win32_builds\ARM_Release %winzip% "bin\ARM\Release\dosbox-x.exe"
|
||||
%isspath%\7za.exe e -y -o%isspath%\Win32_builds\ARM_Release_SDL2 %winzip% "bin\ARM\Release SDL2\dosbox-x.exe"
|
||||
%isspath%\7za.exe e -y -o%isspath%\Win64_builds\x64_Release %winzip% "bin\x64\Release\dosbox-x.exe"
|
||||
%isspath%\7za.exe e -y -o%isspath%\Win64_builds\x64_Release_SDL2 %winzip% "bin\x64\Release SDL2\dosbox-x.exe"
|
||||
%isspath%\7za.exe e -y -o%isspath%\Win64_builds\ARM64_Release %winzip% "bin\ARM64\Release\dosbox-x.exe"
|
||||
%isspath%\7za.exe e -y -o%isspath%\Win64_builds\ARM64_Release_SDL2 %winzip% "bin\ARM64\Release SDL2\dosbox-x.exe"
|
||||
%isspath%\7za.exe e -y -o%isspath%\Win32_builds\mingw %m32zip% "mingw-build\mingw\dosbox-x.exe"
|
||||
%isspath%\7za.exe e -y -o%isspath%\Win32_builds\mingw-lowend %m32zip% "mingw-build\mingw-lowend\dosbox-x.exe"
|
||||
%isspath%\7za.exe e -y -o%isspath%\Win32_builds\mingw-sdl2 %m32zip% "mingw-build\mingw-sdl2\dosbox-x.exe"
|
||||
%isspath%\7za.exe e -y -o%isspath%\Win32_builds\mingw-sdldraw %m32zip% "mingw-build\mingw-sdldraw\dosbox-x.exe"
|
||||
%isspath%\7za.exe e -y -o%isspath%\Win64_builds\mingw %m64zip% "mingw-build\mingw\dosbox-x.exe"
|
||||
%isspath%\7za.exe e -y -o%isspath%\Win64_builds\mingw-lowend %m64zip% "mingw-build\mingw-lowend\dosbox-x.exe"
|
||||
%isspath%\7za.exe e -y -o%isspath%\Win64_builds\mingw-sdl2 %m64zip% "mingw-build\mingw-sdl2\dosbox-x.exe"
|
||||
%isspath%\7za.exe e -y -o%isspath%\Win64_builds\mingw-sdldraw %m64zip% "mingw-build\mingw-sdldraw\dosbox-x.exe"
|
||||
if exist %rootdir%\dosbox-x.reference.conf (
|
||||
copy /y %rootdir%\dosbox-x.reference.conf %isspath%\Win32_builds\x86_Release
|
||||
copy /y %rootdir%\dosbox-x.reference.conf %isspath%\Win32_builds\x86_Release_SDL2
|
||||
copy /y %rootdir%\dosbox-x.reference.conf %isspath%\Win32_builds\ARM_Release
|
||||
copy /y %rootdir%\dosbox-x.reference.conf %isspath%\Win32_builds\ARM_Release_SDL2
|
||||
copy /y %rootdir%\dosbox-x.reference.conf %isspath%\Win64_builds\x64_Release
|
||||
copy /y %rootdir%\dosbox-x.reference.conf %isspath%\Win64_builds\x64_Release_SDL2
|
||||
copy /y %rootdir%\dosbox-x.reference.conf %isspath%\Win64_builds\ARM64_Release
|
||||
copy /y %rootdir%\dosbox-x.reference.conf %isspath%\Win64_builds\ARM64_Release_SDL2
|
||||
copy /y %rootdir%\dosbox-x.reference.conf %isspath%\Win32_builds\mingw
|
||||
copy /y %rootdir%\dosbox-x.reference.conf %isspath%\Win32_builds\mingw-lowend
|
||||
copy /y %rootdir%\dosbox-x.reference.conf %isspath%\Win32_builds\mingw-sdl2
|
||||
copy /y %rootdir%\dosbox-x.reference.conf %isspath%\Win32_builds\mingw-sdldraw
|
||||
copy /y %rootdir%\dosbox-x.reference.conf %isspath%\Win64_builds\mingw
|
||||
copy /y %rootdir%\dosbox-x.reference.conf %isspath%\Win64_builds\mingw-lowend
|
||||
copy /y %rootdir%\dosbox-x.reference.conf %isspath%\Win64_builds\mingw-sdl2
|
||||
copy /y %rootdir%\dosbox-x.reference.conf %isspath%\Win64_builds\mingw-sdldraw
|
||||
)
|
||||
|
||||
echo.
|
||||
echo ***************************************
|
||||
echo * Building DOSBox-X installers ... *
|
||||
echo ***************************************
|
||||
del %isspath%\DOSBox-X-setup*.exe
|
||||
%isspath%\ISCC.exe %isspath%\DOSBox-X-setup.iss
|
||||
if exist %isspath%\DOSBox-X-setup.exe (
|
||||
echo Copying to %vsbinpath%\DOSBox-X-setup-%datestr%.exe ..
|
||||
copy /y %isspath%\DOSBox-X-setup.exe %vsbinpath%\DOSBox-X-setup-%datestr%-windows.exe
|
||||
goto success
|
||||
)
|
||||
|
||||
:error
|
||||
echo.
|
||||
echo ***************************************
|
||||
echo * An error has occurred, aborting ... *
|
||||
echo ***************************************
|
||||
goto end
|
||||
|
||||
:success
|
||||
echo.
|
||||
echo ***************************************
|
||||
echo * Success ! *
|
||||
echo ***************************************
|
||||
goto end
|
||||
|
||||
:end
|
||||
set datestr=
|
||||
set rootdir=
|
||||
set isspath=
|
||||
set vsbinpath=
|
||||
set mgbinpath=
|
||||
set winzip=
|
||||
set m32zip=
|
||||
set m64zip=
|
Binary file not shown.
@@ -40,7 +40,7 @@ UninstallDisplayIcon={app}\{#MyAppExeName}
|
||||
WizardSmallImageFile=.\dosbox-x.bmp
|
||||
|
||||
[Messages]
|
||||
InfoBeforeLabel=Please read the brief information about DOSBox-X below.
|
||||
InfoBeforeLabel=Please read the general information about DOSBox-X below.
|
||||
InfoAfterClickLabel=You have now installed DOSBox-X. Please note that you can customize DOSBox-X settings in dosbox-x.conf. Also, when in the DOSBox-X command line, you can type HELP for DOSBox-X help, or EXIT to close the DOSBox-X window.
|
||||
|
||||
[Languages]
|
||||
@@ -60,30 +60,30 @@ Name: "compact"; Description: "Install default build"; Types: full compact
|
||||
Name: "full"; Description: "Copy all builds to subdirectories"; Types: full
|
||||
|
||||
[Files]
|
||||
Source: "./readme.txt"; DestDir: "{app}"; DestName: "README.txt"; Flags: ignoreversion; Components: full compact
|
||||
Source: "../CHANGELOG"; DestDir: "{app}"; DestName: "changelog.txt"; Flags: ignoreversion; Components: full compact
|
||||
Source: "../COPYING"; DestDir: "{app}"; DestName: "COPYING.txt"; Flags: ignoreversion; Components: full compact
|
||||
Source: "../dosbox-x.reference.conf"; DestDir: "{app}"; Flags: ignoreversion; Components: full compact
|
||||
Source: "../font/FREECG98.BMP"; DestDir: "{app}"; Flags: ignoreversion; Components: full compact
|
||||
Source: "../shaders/*"; DestDir: "{app}\shaders"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: full compact
|
||||
Source: "Win32_builds/win32/Release/dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win32_builds\win32\Release'); Components: full compact
|
||||
Source: "Win32_builds/win32/Release SDL2/dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win32_builds\win32\Release SDL2'); Components: full compact
|
||||
Source: "Win32_builds/ARM/Release/dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win32_builds\ARM\Release'); Components: full compact
|
||||
Source: "Win32_builds/ARM/Release SDL2/dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win32_builds\ARM\Release SDL2'); Components: full compact
|
||||
Source: "Win32_builds/mingw/dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win32_builds\mingw'); Components: full compact
|
||||
Source: "Win32_builds/mingw-lowend/dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win32_builds\mingw-lowend'); Components: full compact
|
||||
Source: "Win32_builds/mingw-sdl2/dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win32_builds\mingw-sdl2'); Components: full compact
|
||||
Source: "Win32_builds/mingw-sdldraw/dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win32_builds\mingw-sdldraw'); Components: full compact
|
||||
Source: "Win64_builds/x64/Release/dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win64_builds\x64\Release'); Components: full compact
|
||||
Source: "Win64_builds/x64/Release SDL2/dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win64_builds\x64\Release SDL2'); Components: full compact
|
||||
Source: "Win64_builds/ARM64/Release/dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win64_builds\ARM64\Release'); Components: full compact
|
||||
Source: "Win64_builds/ARM64/Release SDL2/dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win64_builds\ARM64\Release SDL2'); Components: full compact
|
||||
Source: "Win64_builds/mingw/dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win64_builds\mingw'); Components: full compact
|
||||
Source: "Win64_builds/mingw-lowend/dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win64_builds\mingw-lowend'); Components: full compact
|
||||
Source: "Win64_builds/mingw-sdl2/dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win64_builds\mingw-sdl2'); Components: full compact
|
||||
Source: "Win64_builds/mingw-sdldraw/dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win64_builds\mingw-sdldraw'); Components: full compact
|
||||
Source: "Win32_Builds/*"; DestDir: "{app}\Win32_Builds"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: full
|
||||
Source: "Win64_Builds/*"; DestDir: "{app}\Win64_Builds"; Flags: ignoreversion recursesubdirs createallsubdirs; Check: IsWin64; Components: full
|
||||
Source: ".\readme.txt"; DestDir: "{app}"; DestName: "README.txt"; Flags: ignoreversion; Components: full compact
|
||||
Source: "..\CHANGELOG"; DestDir: "{app}"; DestName: "changelog.txt"; Flags: ignoreversion; Components: full compact
|
||||
Source: "..\COPYING"; DestDir: "{app}"; DestName: "COPYING.txt"; Flags: ignoreversion; Components: full compact
|
||||
Source: "..\dosbox-x.reference.conf"; DestDir: "{app}"; Flags: ignoreversion; Components: full compact
|
||||
Source: "..\font\FREECG98.BMP"; DestDir: "{app}"; Flags: ignoreversion; Components: full compact
|
||||
Source: "..\shaders\*"; DestDir: "{app}\shaders"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: full compact
|
||||
Source: "Win32_builds\x86_Release\dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win32_builds\x86_Release'); Components: full compact
|
||||
Source: "Win32_builds\x86_Release_SDL2\dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win32_builds\x86_Release SDL2'); Components: full compact
|
||||
Source: "Win32_builds\ARM_Release\dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win32_builds\ARM_Release'); Components: full compact
|
||||
Source: "Win32_builds\ARM_Release_SDL2\dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win32_builds\ARM_Release_SDL2'); Components: full compact
|
||||
Source: "Win32_builds\mingw\dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win32_builds\mingw'); Components: full compact
|
||||
Source: "Win32_builds\mingw-lowend\dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win32_builds\mingw-lowend'); Components: full compact
|
||||
Source: "Win32_builds\mingw-sdl2\dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win32_builds\mingw-sdl2'); Components: full compact
|
||||
Source: "Win32_builds\mingw-sdldraw\dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win32_builds\mingw-sdldraw'); Components: full compact
|
||||
Source: "Win64_builds\x64_Release\dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win64_builds\x64_Release'); Components: full compact
|
||||
Source: "Win64_builds\x64_Release_SDL2\dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win64_builds\x64_Release_SDL2'); Components: full compact
|
||||
Source: "Win64_builds\ARM64_Release\dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win64_builds\ARM64_Release'); Components: full compact
|
||||
Source: "Win64_builds\ARM64_Release_SDL2\dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win64_builds\ARM64_Release_SDL2'); Components: full compact
|
||||
Source: "Win64_builds\mingw\dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win64_builds\mingw'); Components: full compact
|
||||
Source: "Win64_builds\mingw-lowend\dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win64_builds\mingw-lowend'); Components: full compact
|
||||
Source: "Win64_builds\mingw-sdl2\dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win64_builds\mingw-sdl2'); Components: full compact
|
||||
Source: "Win64_builds\mingw-sdldraw\dosbox-x.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: CheckDirName('Win64_builds\mingw-sdldraw'); Components: full compact
|
||||
Source: "Win32_builds\*"; DestDir: "{app}\Win32_builds"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: full
|
||||
Source: "Win64_builds\*"; DestDir: "{app}\Win64_builds"; Flags: ignoreversion recursesubdirs createallsubdirs; Check: IsWin64; Components: full
|
||||
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
||||
|
||||
[Icons]
|
||||
@@ -103,30 +103,28 @@ Type: files; Name: "{app}\stderr.txt"
|
||||
[Code]
|
||||
var
|
||||
msg: string;
|
||||
build64, defaultbuild: Boolean;
|
||||
build64: Boolean;
|
||||
Page: TInputOptionWizardPage;
|
||||
procedure InitializeWizard();
|
||||
begin
|
||||
msg:='The selected build will be the default build when you run DOSBox-X from the Windows Start Menu or the desktop. ';
|
||||
Page:=CreateInputOptionPage(wpSelectDir, 'Default DOSBox-X build', 'Select the default DOSBox-X build', msg, True, False);
|
||||
Page:=CreateInputOptionPage(wpSelectDir, 'Default DOSBox-X build', 'Select the default DOSBox-X build to run', msg, True, False);
|
||||
Page.Add('Windows Release SDL1');
|
||||
Page.Add('Windows Release SDL2');
|
||||
Page.Add('Windows ARM SDL1 (ARM platform only)');
|
||||
Page.Add('Windows ARM SDL2 (ARM platform only)');
|
||||
Page.Add('MinGW build');
|
||||
Page.Add('MinGW lowend');
|
||||
Page.Add('MinGW SDL2');
|
||||
Page.Add('MinGW SDLDraw');
|
||||
Page.Add('MinGW build SDL1');
|
||||
Page.Add('MinGW build for lowend systems');
|
||||
Page.Add('MinGW build SDL2');
|
||||
Page.Add('MinGW build with custom drawn menu');
|
||||
Page.Values[0] := True;
|
||||
if (ProcessorArchitecture = paX86) or (ProcessorArchitecture = paX64) then
|
||||
if IsX86 or IsX64 then
|
||||
begin
|
||||
Page.CheckListBox.ItemEnabled[2] := False;
|
||||
Page.CheckListBox.ItemEnabled[3] := False;
|
||||
end
|
||||
end;
|
||||
function NextButtonClick(CurPageID: Integer): Boolean;
|
||||
var
|
||||
Index: Integer;
|
||||
begin
|
||||
Result := True;
|
||||
if (CurPageID=wpSelectDir) then
|
||||
@@ -174,13 +172,13 @@ begin
|
||||
if (Page.Values[3]) then
|
||||
msg:=msg+'Windows ARM SDL2';
|
||||
if (Page.Values[4]) then
|
||||
msg:=msg+'MinGW build';
|
||||
msg:=msg+'MinGW build SDL1';
|
||||
if (Page.Values[5]) then
|
||||
msg:=msg+'MinGW lowend';
|
||||
msg:=msg+'MinGW for lowend systems';
|
||||
if (Page.Values[6]) then
|
||||
msg:=msg+'MinGW SDL2';
|
||||
msg:=msg+'MinGW build SDL2';
|
||||
if (Page.Values[7]) then
|
||||
msg:=msg+'MinGW SDLDraw';
|
||||
msg:=msg+'MinGW build with custom drawn menu';
|
||||
Wizardform.ReadyMemo.Lines.Add(' '+msg);
|
||||
end;
|
||||
end;
|
||||
@@ -221,25 +219,25 @@ begin
|
||||
begin
|
||||
dir:='Win64_builds\';
|
||||
if (Page.Values[0]) then
|
||||
dir:=dir+'x64\Release';
|
||||
dir:=dir+'x64_Release';
|
||||
if (Page.Values[1]) then
|
||||
dir:=dir+'x64\Release SDL2';
|
||||
dir:=dir+'x64_Release_SDL2';
|
||||
if (Page.Values[2]) then
|
||||
dir:=dir+'ARM64\Release';
|
||||
if (Page.Values[3]) then
|
||||
dir:=dir+'ARM64\Release SDL2';
|
||||
dir:=dir+'ARM64\Release_SDL2';
|
||||
end
|
||||
else
|
||||
begin
|
||||
dir:='Win32_builds\';
|
||||
if (Page.Values[0]) then
|
||||
dir:=dir+'win32\Release';
|
||||
dir:=dir+'x86_Release';
|
||||
if (Page.Values[1]) then
|
||||
dir:=dir+'win32\Release SDL2';
|
||||
dir:=dir+'x86_Release_SDL2';
|
||||
if (Page.Values[2]) then
|
||||
dir:=dir+'ARM\Release';
|
||||
dir:=dir+'ARM_Release';
|
||||
if (Page.Values[3]) then
|
||||
dir:=dir+'ARM\Release SDL2';
|
||||
dir:=dir+'ARM_Release_SDL2';
|
||||
end
|
||||
if (Page.Values[4]) then
|
||||
dir:=dir+'mingw';
|
||||
|
336
windows-installer/Default.isl
Normal file
336
windows-installer/Default.isl
Normal file
@@ -0,0 +1,336 @@
|
||||
; *** Inno Setup version 5.5.3+ English messages ***
|
||||
;
|
||||
; To download user-contributed translations of this file, go to:
|
||||
; http://www.jrsoftware.org/files/istrans/
|
||||
;
|
||||
; Note: When translating this text, do not add periods (.) to the end of
|
||||
; messages that didn't have them already, because on those messages Inno
|
||||
; Setup adds the periods automatically (appending a period would result in
|
||||
; two periods being displayed).
|
||||
|
||||
[LangOptions]
|
||||
; The following three entries are very important. Be sure to read and
|
||||
; understand the '[LangOptions] section' topic in the help file.
|
||||
LanguageName=English
|
||||
LanguageID=$0409
|
||||
LanguageCodePage=0
|
||||
; If the language you are translating to requires special font faces or
|
||||
; sizes, uncomment any of the following entries and change them accordingly.
|
||||
;DialogFontName=
|
||||
;DialogFontSize=8
|
||||
;WelcomeFontName=Verdana
|
||||
;WelcomeFontSize=12
|
||||
;TitleFontName=Arial
|
||||
;TitleFontSize=29
|
||||
;CopyrightFontName=Arial
|
||||
;CopyrightFontSize=8
|
||||
|
||||
[Messages]
|
||||
|
||||
; *** Application titles
|
||||
SetupAppTitle=Setup
|
||||
SetupWindowTitle=Setup - %1
|
||||
UninstallAppTitle=Uninstall
|
||||
UninstallAppFullTitle=%1 Uninstall
|
||||
|
||||
; *** Misc. common
|
||||
InformationTitle=Information
|
||||
ConfirmTitle=Confirm
|
||||
ErrorTitle=Error
|
||||
|
||||
; *** SetupLdr messages
|
||||
SetupLdrStartupMessage=This will install %1. Do you wish to continue?
|
||||
LdrCannotCreateTemp=Unable to create a temporary file. Setup aborted
|
||||
LdrCannotExecTemp=Unable to execute file in the temporary directory. Setup aborted
|
||||
|
||||
; *** Startup error messages
|
||||
LastErrorMessage=%1.%n%nError %2: %3
|
||||
SetupFileMissing=The file %1 is missing from the installation directory. Please correct the problem or obtain a new copy of the program.
|
||||
SetupFileCorrupt=The setup files are corrupted. Please obtain a new copy of the program.
|
||||
SetupFileCorruptOrWrongVer=The setup files are corrupted, or are incompatible with this version of Setup. Please correct the problem or obtain a new copy of the program.
|
||||
InvalidParameter=An invalid parameter was passed on the command line:%n%n%1
|
||||
SetupAlreadyRunning=Setup is already running.
|
||||
WindowsVersionNotSupported=This program does not support the version of Windows your computer is running.
|
||||
WindowsServicePackRequired=This program requires %1 Service Pack %2 or later.
|
||||
NotOnThisPlatform=This program will not run on %1.
|
||||
OnlyOnThisPlatform=This program must be run on %1.
|
||||
OnlyOnTheseArchitectures=This program can only be installed on versions of Windows designed for the following processor architectures:%n%n%1
|
||||
MissingWOW64APIs=The version of Windows you are running does not include functionality required by Setup to perform a 64-bit installation. To correct this problem, please install Service Pack %1.
|
||||
WinVersionTooLowError=This program requires %1 version %2 or later.
|
||||
WinVersionTooHighError=This program cannot be installed on %1 version %2 or later.
|
||||
AdminPrivilegesRequired=You must be logged in as an administrator when installing this program.
|
||||
PowerUserPrivilegesRequired=You must be logged in as an administrator or as a member of the Power Users group when installing this program.
|
||||
SetupAppRunningError=Setup has detected that %1 is currently running.%n%nPlease close all instances of it now, then click OK to continue, or Cancel to exit.
|
||||
UninstallAppRunningError=Uninstall has detected that %1 is currently running.%n%nPlease close all instances of it now, then click OK to continue, or Cancel to exit.
|
||||
|
||||
; *** Misc. errors
|
||||
ErrorCreatingDir=Setup was unable to create the directory "%1"
|
||||
ErrorTooManyFilesInDir=Unable to create a file in the directory "%1" because it contains too many files
|
||||
|
||||
; *** Setup common messages
|
||||
ExitSetupTitle=Exit Setup
|
||||
ExitSetupMessage=Setup is not complete. If you exit now, the program will not be installed.%n%nYou may run Setup again at another time to complete the installation.%n%nExit Setup?
|
||||
AboutSetupMenuItem=&About Setup...
|
||||
AboutSetupTitle=About Setup
|
||||
AboutSetupMessage=%1 version %2%n%3%n%n%1 home page:%n%4
|
||||
AboutSetupNote=
|
||||
TranslatorNote=
|
||||
|
||||
; *** Buttons
|
||||
ButtonBack=< &Back
|
||||
ButtonNext=&Next >
|
||||
ButtonInstall=&Install
|
||||
ButtonOK=OK
|
||||
ButtonCancel=Cancel
|
||||
ButtonYes=&Yes
|
||||
ButtonYesToAll=Yes to &All
|
||||
ButtonNo=&No
|
||||
ButtonNoToAll=N&o to All
|
||||
ButtonFinish=&Finish
|
||||
ButtonBrowse=&Browse...
|
||||
ButtonWizardBrowse=B&rowse...
|
||||
ButtonNewFolder=&Make New Folder
|
||||
|
||||
; *** "Select Language" dialog messages
|
||||
SelectLanguageTitle=Select Setup Language
|
||||
SelectLanguageLabel=Select the language to use during the installation:
|
||||
|
||||
; *** Common wizard text
|
||||
ClickNext=Click Next to continue, or Cancel to exit Setup.
|
||||
BeveledLabel=
|
||||
BrowseDialogTitle=Browse For Folder
|
||||
BrowseDialogLabel=Select a folder in the list below, then click OK.
|
||||
NewFolderName=New Folder
|
||||
|
||||
; *** "Welcome" wizard page
|
||||
WelcomeLabel1=Welcome to the [name] Setup Wizard
|
||||
WelcomeLabel2=This will install [name/ver] on your computer.%n%nIt is recommended that you close all other applications before continuing.
|
||||
|
||||
; *** "Password" wizard page
|
||||
WizardPassword=Password
|
||||
PasswordLabel1=This installation is password protected.
|
||||
PasswordLabel3=Please provide the password, then click Next to continue. Passwords are case-sensitive.
|
||||
PasswordEditLabel=&Password:
|
||||
IncorrectPassword=The password you entered is not correct. Please try again.
|
||||
|
||||
; *** "License Agreement" wizard page
|
||||
WizardLicense=License Agreement
|
||||
LicenseLabel=Please read the following important information before continuing.
|
||||
LicenseLabel3=Please read the following License Agreement. You must accept the terms of this agreement before continuing with the installation.
|
||||
LicenseAccepted=I &accept the agreement
|
||||
LicenseNotAccepted=I &do not accept the agreement
|
||||
|
||||
; *** "Information" wizard pages
|
||||
WizardInfoBefore=Information
|
||||
InfoBeforeLabel=Please read the following important information before continuing.
|
||||
InfoBeforeClickLabel=When you are ready to continue with Setup, click Next.
|
||||
WizardInfoAfter=Information
|
||||
InfoAfterLabel=Please read the following important information before continuing.
|
||||
InfoAfterClickLabel=When you are ready to continue with Setup, click Next.
|
||||
|
||||
; *** "User Information" wizard page
|
||||
WizardUserInfo=User Information
|
||||
UserInfoDesc=Please enter your information.
|
||||
UserInfoName=&User Name:
|
||||
UserInfoOrg=&Organization:
|
||||
UserInfoSerial=&Serial Number:
|
||||
UserInfoNameRequired=You must enter a name.
|
||||
|
||||
; *** "Select Destination Location" wizard page
|
||||
WizardSelectDir=Select Destination Location
|
||||
SelectDirDesc=Where should [name] be installed?
|
||||
SelectDirLabel3=Setup will install [name] into the following folder.
|
||||
SelectDirBrowseLabel=To continue, click Next. If you would like to select a different folder, click Browse.
|
||||
DiskSpaceMBLabel=At least [mb] MB of free disk space is required.
|
||||
CannotInstallToNetworkDrive=Setup cannot install to a network drive.
|
||||
CannotInstallToUNCPath=Setup cannot install to a UNC path.
|
||||
InvalidPath=You must enter a full path with drive letter; for example:%n%nC:\APP%n%nor a UNC path in the form:%n%n\\server\share
|
||||
InvalidDrive=The drive or UNC share you selected does not exist or is not accessible. Please select another.
|
||||
DiskSpaceWarningTitle=Not Enough Disk Space
|
||||
DiskSpaceWarning=Setup requires at least %1 KB of free space to install, but the selected drive only has %2 KB available.%n%nDo you want to continue anyway?
|
||||
DirNameTooLong=The folder name or path is too long.
|
||||
InvalidDirName=The folder name is not valid.
|
||||
BadDirName32=Folder names cannot include any of the following characters:%n%n%1
|
||||
DirExistsTitle=Folder Exists
|
||||
DirExists=The folder:%n%n%1%n%nalready exists. Would you like to install to that folder anyway?
|
||||
DirDoesntExistTitle=Folder Does Not Exist
|
||||
DirDoesntExist=The folder:%n%n%1%n%ndoes not exist. Would you like the folder to be created?
|
||||
|
||||
; *** "Select Components" wizard page
|
||||
WizardSelectComponents=Select Components
|
||||
SelectComponentsDesc=Which components should be installed?
|
||||
SelectComponentsLabel2=Select the components you want to install; clear the components you do not want to install. Click Next when you are ready to continue.
|
||||
FullInstallation=Full installation
|
||||
; if possible don't translate 'Compact' as 'Minimal' (I mean 'Minimal' in your language)
|
||||
CompactInstallation=Compact installation
|
||||
CustomInstallation=Custom installation
|
||||
NoUninstallWarningTitle=Components Exist
|
||||
NoUninstallWarning=Setup has detected that the following components are already installed on your computer:%n%n%1%n%nDeselecting these components will not uninstall them.%n%nWould you like to continue anyway?
|
||||
ComponentSize1=%1 KB
|
||||
ComponentSize2=%1 MB
|
||||
ComponentsDiskSpaceMBLabel=Current selection requires at least [mb] MB of disk space.
|
||||
|
||||
; *** "Select Additional Tasks" wizard page
|
||||
WizardSelectTasks=Select Additional Tasks
|
||||
SelectTasksDesc=Which additional tasks should be performed?
|
||||
SelectTasksLabel2=Select the additional tasks you would like Setup to perform while installing [name], then click Next.
|
||||
|
||||
; *** "Select Start Menu Folder" wizard page
|
||||
WizardSelectProgramGroup=Select Start Menu Folder
|
||||
SelectStartMenuFolderDesc=Where should Setup place the program's shortcuts?
|
||||
SelectStartMenuFolderLabel3=Setup will create the program's shortcuts in the following Start Menu folder.
|
||||
SelectStartMenuFolderBrowseLabel=To continue, click Next. If you would like to select a different folder, click Browse.
|
||||
MustEnterGroupName=You must enter a folder name.
|
||||
GroupNameTooLong=The folder name or path is too long.
|
||||
InvalidGroupName=The folder name is not valid.
|
||||
BadGroupName=The folder name cannot include any of the following characters:%n%n%1
|
||||
NoProgramGroupCheck2=&Don't create a Start Menu folder
|
||||
|
||||
; *** "Ready to Install" wizard page
|
||||
WizardReady=Ready to Install
|
||||
ReadyLabel1=Setup is now ready to begin installing [name] on your computer.
|
||||
ReadyLabel2a=Click Install to continue with the installation, or click Back if you want to review or change any settings.
|
||||
ReadyLabel2b=Click Install to continue with the installation.
|
||||
ReadyMemoUserInfo=User information:
|
||||
ReadyMemoDir=Destination location:
|
||||
ReadyMemoType=Setup type:
|
||||
ReadyMemoComponents=Selected components:
|
||||
ReadyMemoGroup=Start Menu folder:
|
||||
ReadyMemoTasks=Additional tasks:
|
||||
|
||||
; *** "Preparing to Install" wizard page
|
||||
WizardPreparing=Preparing to Install
|
||||
PreparingDesc=Setup is preparing to install [name] on your computer.
|
||||
PreviousInstallNotCompleted=The installation/removal of a previous program was not completed. You will need to restart your computer to complete that installation.%n%nAfter restarting your computer, run Setup again to complete the installation of [name].
|
||||
CannotContinue=Setup cannot continue. Please click Cancel to exit.
|
||||
ApplicationsFound=The following applications are using files that need to be updated by Setup. It is recommended that you allow Setup to automatically close these applications.
|
||||
ApplicationsFound2=The following applications are using files that need to be updated by Setup. It is recommended that you allow Setup to automatically close these applications. After the installation has completed, Setup will attempt to restart the applications.
|
||||
CloseApplications=&Automatically close the applications
|
||||
DontCloseApplications=&Do not close the applications
|
||||
ErrorCloseApplications=Setup was unable to automatically close all applications. It is recommended that you close all applications using files that need to be updated by Setup before continuing.
|
||||
|
||||
; *** "Installing" wizard page
|
||||
WizardInstalling=Installing
|
||||
InstallingLabel=Please wait while Setup installs [name] on your computer.
|
||||
|
||||
; *** "Setup Completed" wizard page
|
||||
FinishedHeadingLabel=Completing the [name] Setup Wizard
|
||||
FinishedLabelNoIcons=Setup has finished installing [name] on your computer.
|
||||
FinishedLabel=Setup has finished installing [name] on your computer. The application may be launched by selecting the installed shortcuts.
|
||||
ClickFinish=Click Finish to exit Setup.
|
||||
FinishedRestartLabel=To complete the installation of [name], Setup must restart your computer. Would you like to restart now?
|
||||
FinishedRestartMessage=To complete the installation of [name], Setup must restart your computer.%n%nWould you like to restart now?
|
||||
ShowReadmeCheck=Yes, I would like to view the README file
|
||||
YesRadio=&Yes, restart the computer now
|
||||
NoRadio=&No, I will restart the computer later
|
||||
; used for example as 'Run MyProg.exe'
|
||||
RunEntryExec=Run %1
|
||||
; used for example as 'View Readme.txt'
|
||||
RunEntryShellExec=View %1
|
||||
|
||||
; *** "Setup Needs the Next Disk" stuff
|
||||
ChangeDiskTitle=Setup Needs the Next Disk
|
||||
SelectDiskLabel2=Please insert Disk %1 and click OK.%n%nIf the files on this disk can be found in a folder other than the one displayed below, enter the correct path or click Browse.
|
||||
PathLabel=&Path:
|
||||
FileNotInDir2=The file "%1" could not be located in "%2". Please insert the correct disk or select another folder.
|
||||
SelectDirectoryLabel=Please specify the location of the next disk.
|
||||
|
||||
; *** Installation phase messages
|
||||
SetupAborted=Setup was not completed.%n%nPlease correct the problem and run Setup again.
|
||||
EntryAbortRetryIgnore=Click Retry to try again, Ignore to proceed anyway, or Abort to cancel installation.
|
||||
|
||||
; *** Installation status messages
|
||||
StatusClosingApplications=Closing applications...
|
||||
StatusCreateDirs=Creating directories...
|
||||
StatusExtractFiles=Extracting files...
|
||||
StatusCreateIcons=Creating shortcuts...
|
||||
StatusCreateIniEntries=Creating INI entries...
|
||||
StatusCreateRegistryEntries=Creating registry entries...
|
||||
StatusRegisterFiles=Registering files...
|
||||
StatusSavingUninstall=Saving uninstall information...
|
||||
StatusRunProgram=Finishing installation...
|
||||
StatusRestartingApplications=Restarting applications...
|
||||
StatusRollback=Rolling back changes...
|
||||
|
||||
; *** Misc. errors
|
||||
ErrorInternal2=Internal error: %1
|
||||
ErrorFunctionFailedNoCode=%1 failed
|
||||
ErrorFunctionFailed=%1 failed; code %2
|
||||
ErrorFunctionFailedWithMessage=%1 failed; code %2.%n%3
|
||||
ErrorExecutingProgram=Unable to execute file:%n%1
|
||||
|
||||
; *** Registry errors
|
||||
ErrorRegOpenKey=Error opening registry key:%n%1\%2
|
||||
ErrorRegCreateKey=Error creating registry key:%n%1\%2
|
||||
ErrorRegWriteKey=Error writing to registry key:%n%1\%2
|
||||
|
||||
; *** INI errors
|
||||
ErrorIniEntry=Error creating INI entry in file "%1".
|
||||
|
||||
; *** File copying errors
|
||||
FileAbortRetryIgnore=Click Retry to try again, Ignore to skip this file (not recommended), or Abort to cancel installation.
|
||||
FileAbortRetryIgnore2=Click Retry to try again, Ignore to proceed anyway (not recommended), or Abort to cancel installation.
|
||||
SourceIsCorrupted=The source file is corrupted
|
||||
SourceDoesntExist=The source file "%1" does not exist
|
||||
ExistingFileReadOnly=The existing file is marked as read-only.%n%nClick Retry to remove the read-only attribute and try again, Ignore to skip this file, or Abort to cancel installation.
|
||||
ErrorReadingExistingDest=An error occurred while trying to read the existing file:
|
||||
FileExists=The file already exists.%n%nWould you like Setup to overwrite it?
|
||||
ExistingFileNewer=The existing file is newer than the one Setup is trying to install. It is recommended that you keep the existing file.%n%nDo you want to keep the existing file?
|
||||
ErrorChangingAttr=An error occurred while trying to change the attributes of the existing file:
|
||||
ErrorCreatingTemp=An error occurred while trying to create a file in the destination directory:
|
||||
ErrorReadingSource=An error occurred while trying to read the source file:
|
||||
ErrorCopying=An error occurred while trying to copy a file:
|
||||
ErrorReplacingExistingFile=An error occurred while trying to replace the existing file:
|
||||
ErrorRestartReplace=RestartReplace failed:
|
||||
ErrorRenamingTemp=An error occurred while trying to rename a file in the destination directory:
|
||||
ErrorRegisterServer=Unable to register the DLL/OCX: %1
|
||||
ErrorRegSvr32Failed=RegSvr32 failed with exit code %1
|
||||
ErrorRegisterTypeLib=Unable to register the type library: %1
|
||||
|
||||
; *** Post-installation errors
|
||||
ErrorOpeningReadme=An error occurred while trying to open the README file.
|
||||
ErrorRestartingComputer=Setup was unable to restart the computer. Please do this manually.
|
||||
|
||||
; *** Uninstaller messages
|
||||
UninstallNotFound=File "%1" does not exist. Cannot uninstall.
|
||||
UninstallOpenError=File "%1" could not be opened. Cannot uninstall
|
||||
UninstallUnsupportedVer=The uninstall log file "%1" is in a format not recognized by this version of the uninstaller. Cannot uninstall
|
||||
UninstallUnknownEntry=An unknown entry (%1) was encountered in the uninstall log
|
||||
ConfirmUninstall=Are you sure you want to completely remove %1 and all of its components?
|
||||
UninstallOnlyOnWin64=This installation can only be uninstalled on 64-bit Windows.
|
||||
OnlyAdminCanUninstall=This installation can only be uninstalled by a user with administrative privileges.
|
||||
UninstallStatusLabel=Please wait while %1 is removed from your computer.
|
||||
UninstalledAll=%1 was successfully removed from your computer.
|
||||
UninstalledMost=%1 uninstall complete.%n%nSome elements could not be removed. These can be removed manually.
|
||||
UninstalledAndNeedsRestart=To complete the uninstallation of %1, your computer must be restarted.%n%nWould you like to restart now?
|
||||
UninstallDataCorrupted="%1" file is corrupted. Cannot uninstall
|
||||
|
||||
; *** Uninstallation phase messages
|
||||
ConfirmDeleteSharedFileTitle=Remove Shared File?
|
||||
ConfirmDeleteSharedFile2=The system indicates that the following shared file is no longer in use by any programs. Would you like for Uninstall to remove this shared file?%n%nIf any programs are still using this file and it is removed, those programs may not function properly. If you are unsure, choose No. Leaving the file on your system will not cause any harm.
|
||||
SharedFileNameLabel=File name:
|
||||
SharedFileLocationLabel=Location:
|
||||
WizardUninstalling=Uninstall Status
|
||||
StatusUninstalling=Uninstalling %1...
|
||||
|
||||
; *** Shutdown block reasons
|
||||
ShutdownBlockReasonInstallingApp=Installing %1.
|
||||
ShutdownBlockReasonUninstallingApp=Uninstalling %1.
|
||||
|
||||
; The custom messages below aren't used by Setup itself, but if you make
|
||||
; use of them in your scripts, you'll want to translate them.
|
||||
|
||||
[CustomMessages]
|
||||
|
||||
NameAndVersion=%1 version %2
|
||||
AdditionalIcons=Additional shortcuts:
|
||||
CreateDesktopIcon=Create a &desktop shortcut
|
||||
CreateQuickLaunchIcon=Create a &Quick Launch shortcut
|
||||
ProgramOnTheWeb=%1 on the Web
|
||||
UninstallProgram=Uninstall %1
|
||||
LaunchProgram=Launch %1
|
||||
AssocFileExtension=&Associate %1 with the %2 file extension
|
||||
AssocingFileExtension=Associating %1 with the %2 file extension...
|
||||
AutoStartProgramGroupDescription=Startup:
|
||||
AutoStartProgram=Automatically start %1
|
||||
AddonHostProgramNotFound=%1 could not be located in the folder you selected.%n%nDo you want to continue anyway?
|
BIN
windows-installer/ISCC.exe
Normal file
BIN
windows-installer/ISCC.exe
Normal file
Binary file not shown.
BIN
windows-installer/ISCmplr.dll
Normal file
BIN
windows-installer/ISCmplr.dll
Normal file
Binary file not shown.
BIN
windows-installer/ISPP.dll
Normal file
BIN
windows-installer/ISPP.dll
Normal file
Binary file not shown.
366
windows-installer/ISPPBuiltins.iss
Normal file
366
windows-installer/ISPPBuiltins.iss
Normal file
@@ -0,0 +1,366 @@
|
||||
; BEGIN ISPPBUILTINS.ISS
|
||||
//
|
||||
// Inno Setup Preprocessor 5
|
||||
//
|
||||
// Copyright (C) 2001-2004 Alex Yackimoff. All Rights Reserved.
|
||||
// Portions by Martijn Laan.
|
||||
// http://ispp.sourceforge.net
|
||||
//
|
||||
// Inno Setup (C) 1997-2009 Jordan Russell. All Rights Reserved.
|
||||
// Portions by Martijn Laan.
|
||||
//
|
||||
// $Id: ISPPBuiltins.iss,v 1.3 2010/12/29 15:20:26 mlaan Exp $
|
||||
//
|
||||
#if defined(ISPP_INVOKED) && !defined(_BUILTINS_ISS_)
|
||||
//
|
||||
#if PREPROCVER < 0x01000000
|
||||
# error Inno Setup Preprocessor version is outdated
|
||||
#endif
|
||||
//
|
||||
#define _BUILTINS_ISS_
|
||||
//
|
||||
// ===========================================================================
|
||||
//
|
||||
// Default states for options.
|
||||
//
|
||||
//#pragma parseroption -b+ ; short circuit boolean evaluation: on
|
||||
//#pragma parseroption -m- ; short circuit multiplication evaluation (0 * A will not eval A): off
|
||||
//#pragma parseroption -p+ ; string literals without escape sequences: on
|
||||
//#pragma parseroption -u- ; allow undeclared identifiers: off
|
||||
//#pragma option -c+ ; pass script to the compiler: on
|
||||
//#pragma option -e- ; emit empty lines to translation: off
|
||||
//#pragma option -v- ; verbose mode: off
|
||||
//
|
||||
// ---------------------------------------------------------------------------
|
||||
//
|
||||
// Verbose levels:
|
||||
// 0 - #include and #file acknowledgements
|
||||
// 1 - information about any temp files created by #file
|
||||
// 2 - #insert and #append acknowledgements
|
||||
// 3 - reserved
|
||||
// 4 - #dim, #define and #undef acknowledgements
|
||||
// 5 - reserved
|
||||
// 6 - conditional inclusion acknowledgements
|
||||
// 7 - reserved
|
||||
// 8 - show strings emitted with #emit directive
|
||||
// 9 - macro and functions successfull call acknowledgements
|
||||
//10 - Local macro array allocation acknowledgements
|
||||
//
|
||||
//#pragma verboselevel 0
|
||||
//
|
||||
#ifndef __POPT_P__
|
||||
# define private CStrings
|
||||
# pragma parseroption -p+
|
||||
#endif
|
||||
//
|
||||
#pragma spansymbol "\"
|
||||
//
|
||||
#define True 1
|
||||
#define False 0
|
||||
#define Yes True
|
||||
#define No False
|
||||
//
|
||||
#define MaxInt 0x7FFFFFFFL
|
||||
#define MinInt 0x80000000L
|
||||
//
|
||||
#define NULL
|
||||
#define void
|
||||
//
|
||||
// TypeOf constants
|
||||
//
|
||||
#define TYPE_ERROR 0
|
||||
#define TYPE_NULL 1
|
||||
#define TYPE_INTEGER 2
|
||||
#define TYPE_STRING 3
|
||||
#define TYPE_MACRO 4
|
||||
#define TYPE_FUNC 5
|
||||
#define TYPE_ARRAY 6
|
||||
//
|
||||
// Helper macro to find out the type of an array element or expression. TypeOf
|
||||
// standard function only allows identifier as its parameter. Use this macro
|
||||
// to convert an expression to identifier.
|
||||
//
|
||||
#define TypeOf2(any Expr) TypeOf(Expr)
|
||||
//
|
||||
// ReadReg constants
|
||||
//
|
||||
#define HKEY_CLASSES_ROOT 0x80000000UL
|
||||
#define HKEY_CURRENT_USER 0x80000001UL
|
||||
#define HKEY_LOCAL_MACHINE 0x80000002UL
|
||||
#define HKEY_USERS 0x80000003UL
|
||||
#define HKEY_CURRENT_CONFIG 0x80000005UL
|
||||
#define HKEY_CLASSES_ROOT_64 0x82000000UL
|
||||
#define HKEY_CURRENT_USER_64 0x82000001UL
|
||||
#define HKEY_LOCAL_MACHINE_64 0x82000002UL
|
||||
#define HKEY_USERS_64 0x82000003UL
|
||||
#define HKEY_CURRENT_CONFIG_64 0x82000005UL
|
||||
//
|
||||
#define HKCR HKEY_CLASSES_ROOT
|
||||
#define HKCU HKEY_CURRENT_USER
|
||||
#define HKLM HKEY_LOCAL_MACHINE
|
||||
#define HKU HKEY_USERS
|
||||
#define HKCC HKEY_CURRENT_CONFIG
|
||||
#define HKCR64 HKEY_CLASSES_ROOT_64
|
||||
#define HKCU64 HKEY_CURRENT_USER_64
|
||||
#define HKLM64 HKEY_LOCAL_MACHINE_64
|
||||
#define HKU64 HKEY_USERS_64
|
||||
#define HKCC64 HKEY_CURRENT_CONFIG_64
|
||||
//
|
||||
// Exec constants
|
||||
//
|
||||
#define SW_HIDE 0
|
||||
#define SW_SHOWNORMAL 1
|
||||
#define SW_NORMAL 1
|
||||
#define SW_SHOWMINIMIZED 2
|
||||
#define SW_SHOWMAXIMIZED 3
|
||||
#define SW_MAXIMIZE 3
|
||||
#define SW_SHOWNOACTIVATE 4
|
||||
#define SW_SHOW 5
|
||||
#define SW_MINIMIZE 6
|
||||
#define SW_SHOWMINNOACTIVE 7
|
||||
#define SW_SHOWNA 8
|
||||
#define SW_RESTORE 9
|
||||
#define SW_SHOWDEFAULT 10
|
||||
#define SW_MAX 10
|
||||
//
|
||||
// Find constants
|
||||
//
|
||||
#define FIND_MATCH 0x00
|
||||
#define FIND_BEGINS 0x01
|
||||
#define FIND_ENDS 0x02
|
||||
#define FIND_CONTAINS 0x03
|
||||
#define FIND_CASESENSITIVE 0x04
|
||||
#define FIND_SENSITIVE FIND_CASESENSITIVE
|
||||
#define FIND_AND 0x00
|
||||
#define FIND_OR 0x08
|
||||
#define FIND_NOT 0x10
|
||||
#define FIND_TRIM 0x20
|
||||
//
|
||||
// FindFirst constants
|
||||
//
|
||||
#define faReadOnly 0x00000001
|
||||
#define faHidden 0x00000002
|
||||
#define faSysFile 0x00000004
|
||||
#define faVolumeID 0x00000008
|
||||
#define faDirectory 0x00000010
|
||||
#define faArchive 0x00000020
|
||||
#define faSymLink 0x00000040
|
||||
#define faAnyFile 0x0000003F
|
||||
//
|
||||
// GetStringFileInfo standard names
|
||||
//
|
||||
#define COMPANY_NAME "CompanyName"
|
||||
#define FILE_DESCRIPTION "FileDescription"
|
||||
#define FILE_VERSION "FileVersion"
|
||||
#define INTERNAL_NAME "InternalName"
|
||||
#define LEGAL_COPYRIGHT "LegalCopyright"
|
||||
#define ORIGINAL_FILENAME "OriginalFilename"
|
||||
#define PRODUCT_NAME "ProductName"
|
||||
#define PRODUCT_VERSION "ProductVersion"
|
||||
//
|
||||
// GetStringFileInfo helpers
|
||||
//
|
||||
#define GetFileCompany(str FileName) GetStringFileInfo(FileName, COMPANY_NAME)
|
||||
#define GetFileCopyright(str FileName) GetStringFileInfo(FileName, LEGAL_COPYRIGHT)
|
||||
#define GetFileDescription(str FileName) GetStringFileInfo(FileName, FILE_DESCRIPTION)
|
||||
#define GetFileProductVersion(str FileName) GetStringFileInfo(FileName, PRODUCT_VERSION)
|
||||
#define GetFileVersionString(str FileName) GetStringFileInfo(FileName, FILE_VERSION)
|
||||
//
|
||||
// ParseVersion
|
||||
//
|
||||
// Macro internally calls GetFileVersion function and parses string returned
|
||||
// by that function (in form "0.0.0.0"). All four version elements are stored
|
||||
// in by-reference parameters Major, Minor, Rev, and Build. Macro returns
|
||||
// string returned by GetFileVersion.
|
||||
//
|
||||
#define DeleteToFirstPeriod(str *S) \
|
||||
Local[1] = Copy(S, 1, (Local[0] = Pos(".", S)) - 1), \
|
||||
S = Copy(S, Local[0] + 1), \
|
||||
Local[1]
|
||||
//
|
||||
#define ParseVersion(str FileName, *Major, *Minor, *Rev, *Build) \
|
||||
Local[1] = Local[0] = GetFileVersion(FileName), \
|
||||
Local[1] == "" ? "" : ( \
|
||||
Major = Int(DeleteToFirstPeriod(Local[1])), \
|
||||
Minor = Int(DeleteToFirstPeriod(Local[1])), \
|
||||
Rev = Int(DeleteToFirstPeriod(Local[1])), \
|
||||
Build = Int(Local[1]), \
|
||||
Local[0])
|
||||
//
|
||||
// EncodeVer
|
||||
//
|
||||
// Encodes given four version elements to a 32 bit integer number (8 bits for
|
||||
// each element, i.e. elements must be within 0...255 range).
|
||||
//
|
||||
#define EncodeVer(int Major, int Minor, int Revision = 0, int Build = -1) \
|
||||
Major << 24 | (Minor & 0xFF) << 16 | (Revision & 0xFF) << 8 | (Build >= 0 ? Build & 0xFF : 0)
|
||||
//
|
||||
// DecodeVer
|
||||
//
|
||||
// Decodes given 32 bit integer encoded version to its string representation,
|
||||
// Digits parameter indicates how many elements to show (if the fourth element
|
||||
// is 0, it won't be shown anyway).
|
||||
//
|
||||
#define DecodeVer(int Ver, int Digits = 3) \
|
||||
Str(Ver >> 0x18 & 0xFF) + (Digits > 1 ? "." : "") + \
|
||||
(Digits > 1 ? \
|
||||
Str(Ver >> 0x10 & 0xFF) + (Digits > 2 ? "." : "") : "") + \
|
||||
(Digits > 2 ? \
|
||||
Str(Ver >> 0x08 & 0xFF) + (Digits > 3 && (Local = Ver & 0xFF) ? "." : "") : "") + \
|
||||
(Digits > 3 && Local ? \
|
||||
Str(Ver & 0xFF) : "")
|
||||
//
|
||||
// FindSection
|
||||
//
|
||||
// Returns index of the line following the header of the section. This macro
|
||||
// is intended to be used with #insert directive.
|
||||
//
|
||||
#define FindSection(str Section = "Files") \
|
||||
Find(0, "[" + Section + "]", FIND_MATCH | FIND_TRIM) + 1
|
||||
//
|
||||
// FindSectionEnd
|
||||
//
|
||||
// Returns index of the line following last entry of the section. This macro
|
||||
// is intended to be used with #insert directive.
|
||||
//
|
||||
#if VER >= 0x03000000
|
||||
# define FindNextSection(int Line) \
|
||||
Find(Line, "[", FIND_BEGINS | FIND_TRIM, "]", FIND_ENDS | FIND_AND)
|
||||
# define FindSectionEnd(str Section = "Files") \
|
||||
FindNextSection(FindSection(Section))
|
||||
#else
|
||||
# define FindSectionEnd(str Section = "Files") \
|
||||
FindSection(Section) + EntryCount(Section)
|
||||
#endif
|
||||
//
|
||||
// FindCode
|
||||
//
|
||||
// Returns index of the line (of translation) following either [Code] section
|
||||
// header, or "program" keyword, if any.
|
||||
//
|
||||
#define FindCode() \
|
||||
Local[1] = FindSection("Code"), \
|
||||
Local[0] = Find(Local[1] - 1, "program", FIND_BEGINS, ";", FIND_ENDS | FIND_AND), \
|
||||
(Local[0] < 0 ? Local[1] : Local[0] + 1)
|
||||
//
|
||||
// ExtractFilePath
|
||||
//
|
||||
// Returns directory portion of the given filename without backslash (unless
|
||||
// it is a root directory). If PathName doesn't contain directory portion,
|
||||
// the result is an empty string.
|
||||
//
|
||||
#define ExtractFilePath(str PathName) \
|
||||
(Local[0] = \
|
||||
!(Local[1] = RPos("\", PathName)) ? \
|
||||
"" : \
|
||||
Copy(PathName, 1, Local[1] - 1)), \
|
||||
Local[0] + \
|
||||
((Local[2] = Len(Local[0])) == 2 && Copy(Local[0], Local[2]) == ":" ? \
|
||||
"\" : \
|
||||
"")
|
||||
#define ExtractFileDir(str PathName) \
|
||||
RemoveBackslash(ExtractFilePath(PathName))
|
||||
|
||||
#define ExtractFileExt(str PathName) \
|
||||
Local[0] = RPos(".", PathName), \
|
||||
Copy(PathName, Local[0] + 1)
|
||||
//
|
||||
// ExtractFileName
|
||||
//
|
||||
// Returns name portion of the given filename. If PathName ends with
|
||||
// a backslash, the result is an empty string.
|
||||
//
|
||||
#define ExtractFileName(str PathName) \
|
||||
!(Local[0] = RPos("\", PathName)) ? \
|
||||
PathName : \
|
||||
Copy(PathName, Local[0] + 1)
|
||||
//
|
||||
// ChangeFileExt
|
||||
//
|
||||
// Changes extension in FileName with NewExt. NewExt must not contain
|
||||
// period.
|
||||
//
|
||||
#define ChangeFileExt(str FileName, str NewExt) \
|
||||
!(Local[0] = RPos(".", FileName)) ? \
|
||||
FileName + "." + NewExt : \
|
||||
Copy(FileName, 1, Local[0]) + NewExt
|
||||
//
|
||||
// RemoveFileExt
|
||||
//
|
||||
// Removes extension in FileName.
|
||||
//
|
||||
#define RemoveFileExt(str FileName) \
|
||||
!(Local[0] = RPos(".", FileName)) ? \
|
||||
FileName : \
|
||||
Copy(FileName, 1, Local[0] - 1)
|
||||
//
|
||||
// AddBackslash
|
||||
//
|
||||
// Adds a backslash to the string, if it's not already there.
|
||||
//
|
||||
#define AddBackslash(str S) \
|
||||
Copy(S, Len(S)) == "\" ? S : S + "\"
|
||||
//
|
||||
// RemoveBackslash
|
||||
//
|
||||
// Removes trailing backslash from the string unless the string points to
|
||||
// a root directory.
|
||||
//
|
||||
#define RemoveBackslash(str S) \
|
||||
Local[0] = Len(S), \
|
||||
Local[0] > 0 ? \
|
||||
Copy(S, Local[0]) == "\" ? \
|
||||
(Local[0] == 3 && Copy(S, 2, 1) == ":" ? \
|
||||
S : \
|
||||
Copy(S, 1, Local[0] - 1)) : \
|
||||
S : \
|
||||
""
|
||||
//
|
||||
// Delete
|
||||
//
|
||||
// Deletes specified number of characters beginning with Index from S. S is
|
||||
// passed by reference (therefore is modified). Acts like Delete function in
|
||||
// Delphi (from System unit).
|
||||
//
|
||||
#define Delete(str *S, int Index, int Count = MaxInt) \
|
||||
S = Copy(S, 1, Index - 1) + Copy(S, Index + Count)
|
||||
//
|
||||
// Insert
|
||||
//
|
||||
// Inserts specified Substr at Index'th character into S. S is passed by
|
||||
// reference (therefore is modified).
|
||||
//
|
||||
#define Insert(str *S, int Index, str Substr) \
|
||||
Index > Len(S) + 1 ? \
|
||||
S : \
|
||||
S = Copy(S, 1, Index - 1) + SubStr + Copy(S, Index)
|
||||
//
|
||||
// YesNo, IsDirSet
|
||||
//
|
||||
// Returns nonzero value if given string is "yes", "true" or "1". Intended to
|
||||
// be used with SetupSetting function. This macro replaces YesNo function
|
||||
// available in previous releases.
|
||||
//
|
||||
#define YesNo(str S) \
|
||||
(S = LowerCase(S)) == "yes" || S == "true" || S == "1"
|
||||
//
|
||||
#define IsDirSet(str SetupDirective) \
|
||||
YesNo(SetupSetting(SetupDirective))
|
||||
//
|
||||
//
|
||||
#define Power(int X, int P = 2) \
|
||||
!P ? 1 : X * Power(X, P - 1)
|
||||
//
|
||||
#define Min(int A, int B, int C = MaxInt) \
|
||||
A < B ? A < C ? Int(A) : Int(C) : Int(B)
|
||||
//
|
||||
#define Max(int A, int B, int C = MinInt) \
|
||||
A > B ? A > C ? Int(A) : Int(C) : Int(B)
|
||||
//
|
||||
|
||||
#ifdef CStrings
|
||||
# pragma parseroption -p-
|
||||
#endif
|
||||
#endif
|
||||
; END ISPPBUILTINS.ISS
|
||||
|
BIN
windows-installer/Setup.e32
Normal file
BIN
windows-installer/Setup.e32
Normal file
Binary file not shown.
BIN
windows-installer/SetupLdr.e32
Normal file
BIN
windows-installer/SetupLdr.e32
Normal file
Binary file not shown.
BIN
windows-installer/WizModernImage.bmp
Normal file
BIN
windows-installer/WizModernImage.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
@@ -1,64 +0,0 @@
|
||||
@echo off
|
||||
|
||||
cls
|
||||
|
||||
for /f "tokens=2 delims==" %%I in ('wmic os get localdatetime /format:list') do set DOSBOXDATE=%%I
|
||||
set DOSBOXDATE=%DOSBOXDATE:~0,8%-%DOSBOXDATE:~8,6%
|
||||
set DOSBOX32="..\bin\Win32\Release\dosbox-x.exe"
|
||||
set DOSBOX64="..\bin\x64\Release\dosbox-x.exe"
|
||||
set ISCC="C:\Program Files (x86)\Inno Setup 5\ISCC.exe"
|
||||
|
||||
if not exist %DOSBOX32% (
|
||||
echo Couldn't find 32-bit DOSBox-X at %DOSBOX32%
|
||||
goto error
|
||||
)
|
||||
|
||||
if not exist %DOSBOX64% (
|
||||
echo Couldn't find 64-bit DOSBox-X at %DOSBOX64%
|
||||
goto error
|
||||
)
|
||||
|
||||
echo ***************************************
|
||||
echo * Building DOSBox-X standalone ... *
|
||||
echo ***************************************
|
||||
del dosbox-x-standalone-win*.zip
|
||||
7za a dosbox-x-standalone-win32-%DOSBOXDATE%.zip %DOSBOX32%
|
||||
7za a dosbox-x-standalone-win64-%DOSBOXDATE%.zip %DOSBOX64%
|
||||
|
||||
echo.
|
||||
|
||||
echo ***************************************
|
||||
echo * Building DOSBox-X installers ... *
|
||||
echo ***************************************
|
||||
del dosbox-x-setup-win*.zip
|
||||
if not exist %ISCC% (
|
||||
echo Inno Setup 5 not found at %ISCC%, skipping ...
|
||||
goto success
|
||||
)
|
||||
%ISCC% DOSBox-X-setup.iss
|
||||
ren DOSBox-X-setup.exe DOSBox-X-setup-%DOSBOXDATE%.exe
|
||||
7za a dosbox-x-setup-%DOSBOXDATE%.zip DOSBox-X-setup-%DOSBOXDATE%.exe
|
||||
DOSBOXDATE%.exe
|
||||
del dosbox-x-setup-*.exe
|
||||
|
||||
goto success
|
||||
|
||||
:error
|
||||
echo.
|
||||
echo ***************************************
|
||||
echo * An error has occurred, aborting ... *
|
||||
echo ***************************************
|
||||
goto end
|
||||
|
||||
:success
|
||||
echo.
|
||||
echo ***************************************
|
||||
echo * Success ! *
|
||||
echo ***************************************
|
||||
goto end
|
||||
|
||||
:end
|
||||
set DOSBOXDATE=
|
||||
set DOSBOX32=
|
||||
set DOSBOX64=
|
||||
set ISCC=
|
BIN
windows-installer/date.exe
Normal file
BIN
windows-installer/date.exe
Normal file
Binary file not shown.
Binary file not shown.
BIN
windows-installer/islzma.dll
Normal file
BIN
windows-installer/islzma.dll
Normal file
Binary file not shown.
@@ -5,10 +5,10 @@ Welcome to DOSBox-X, a cross-platform DOS emulator based on the DOSBox project.
|
||||
|
||||
Like DOSBox, it emulates a PC necessary for running many MS-DOS games and applications that simply cannot be run on modern PCs and operating systems. However, while the main focus of DOSBox is for running DOS games, DOSBox-X goes much further than this. Started as a fork of the DOSBox project, it retains compatibility with the wide base of DOS games and DOS gaming DOSBox was designed for. But it is also a platform for running DOS applications, including emulating the environments to run Windows 3.x, 9x and ME and software written for those versions of Windows.
|
||||
|
||||
As a general-purpose DOS emulator, DOSBox-X has many useful and unique features that do not exist in other emulators like DOSBox, such as GUI menu and configuration tool, the ability to save and load state, support for more DOS commands and utilities, better compatibility with DOS applications, as well as Windows clipboard and long filename support for a tighter Windows integration. With DOSBox-X you can run most DOS applications and games reliably in a DOS virtual machine. For more information about DOSBox-X, please read the online user guide in the DOSBox-X Wiki.
|
||||
As a general-purpose DOS emulator, DOSBox-X has many useful and unique features that do not exist in other emulators like DOSBox, such as GUI menu and configuration tool, the ability to save and load state, support for more DOS commands and utilities, better compatibility with DOS applications, as well as Windows clipboard and long filename support for a tighter Windows integration. With DOSBox-X you can run most DOS applications and games reliably in a DOS virtual machine. When in the DOSBox-X command-line, you can type HELP for DOSBox-X command help. You can also open the file dosbox-x.conf for various optional settings in DOSBox-X.
|
||||
|
||||
The DOSBox-X website is located at the following URL. Please visit the website to get the latest information and updates:
|
||||
http://dosbox-x.com/
|
||||
For more information about DOSBox-X, including usage tips and common ways to configure DOSBox-X, please read the online user guide in the DOSBox-X Wiki:
|
||||
https://github.com/joncampbell123/dosbox-x/wiki
|
||||
|
||||
The issue tracker and source code for DOSBox-X are available from the DOSBox-X GitHub site. Please feel free to report issues or request new features in DOSBox-X:
|
||||
https://github.com/joncampbell123/dosbox-x/issues
|
||||
https://github.com/joncampbell123/dosbox-x/issues
|
@@ -1,3 +1,5 @@
|
||||
For the latest information about DOSBox-X, please visit the online user guide in the DOSBox-X Wiki: https://github.com/joncampbell123/dosbox-x/wiki
|
||||
|
||||
For the latest official releases of DOSBox-X, please check the DOSBox-X Releases page which is available from: https://github.com/joncampbell123/dosbox-x/releases
|
||||
|
||||
You can also visit the DOSBox-X issue tracker if you have any issues or want to request new features in DOSBox-X: https://github.com/joncampbell123/dosbox-x/issues
|
||||
|
@@ -4,10 +4,10 @@ Like DOSBox, it emulates a PC necessary for running many MS-DOS games and applic
|
||||
|
||||
As a general-purpose DOS emulator, DOSBox-X has many useful and unique features that do not exist in other emulators like DOSBox, such as GUI menu and configuration tool, the ability to save and load state, support for more DOS commands and utilities, better compatibility with DOS applications, as well as Windows clipboard and long filename support for a tighter Windows integration. With DOSBox-X you can run most DOS applications and games reliably in a DOS virtual machine. Please read the README.TXT file in the installation directory for more information, or see dosbox-x.conf for more details about optional settings in DOSBox-X.
|
||||
|
||||
The DOSBox-X website is located at the following URL. Please visit the home page to get the latest information and updates:
|
||||
The DOSBox-X website is located at the following URL. Please visit the website to get the latest information and updates:
|
||||
http://dosbox-x.com/
|
||||
|
||||
The issue tracker and source code for DOSBox-X are available from the DOSBox-X GitHub site. Please feel free to report issues or request new features in DOSBox-X:
|
||||
https://github.com/joncampbell123/dosbox-x/issues
|
||||
|
||||
Note: Due to the way of how Windows works, access to the "Program Files" folder requires administrative permissions. Unless you have specific reasons, we recommend that you install DOSBox-X in a different folder that does not require administrative permissions.
|
||||
Note: Due to the way of how Windows works, access to the "Program Files" folder requires administrative permissions. Unless you have specific reasons, we recommend that you install DOSBox-X in a different folder that does not require administrative permissions.
|
Reference in New Issue
Block a user