Skip to content

Commit

Permalink
Fix bugs in setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
salvadorbs committed Jun 16, 2015
1 parent 4d8f584 commit e45936c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions utils/Run-Dependend-rsvars-From-Path.bat
@@ -1,5 +1,5 @@
@echo off
for %%v in (L Latest 5 6 7 8 9 10 11 12 13 14 15) do if /I !%1!==!%%v! goto :bds
for %%v in (L Latest 5 6 7 8 9 10 11 12 13 14 15 16) do if /I !%1!==!%%v! goto :bds
if /I !%1!==!! goto :help
echo Unknown BDS version "%1"
goto :help
Expand Down Expand Up @@ -173,11 +173,16 @@
FOR /F "tokens=2*" %%P IN ('REG QUERY HKEY_CURRENT_USER\Software\Embarcadero\BDS\15.0 /v App 2^>NUL') DO call :do set bdsExe="%%Q"
set bdsProduct=Studio XE7
goto :eof
:16
FOR /F "tokens=2*" %%P IN ('REG QUERY HKEY_CURRENT_USER\Software\Embarcadero\BDS\16.0 /v App 2^>NUL') DO call :do set bdsExe="%%Q"
set bdsProduct=Studio XE7
goto :eof

:L
:latest
:: get %bdsExe% for youngest Delphi version
call :15
call :16
if [%bdsExe%]==[] call :15
if [%bdsExe%]==[] call :14
if [%bdsExe%]==[] call :13
if [%bdsExe%]==[] call :12
Expand Down Expand Up @@ -285,6 +290,7 @@
echo 13 - Appmethod 1.13
echo 14 - Delphi XE6/Appnethod 1.14
echo 15 - Delphi XE7/Appnethod 1.15
echo 16 - Delphi XE8
echo L - Latest/Youngest installed version of the above.
echo.
echo Supported BDS Targets:
Expand Down
6 changes: 3 additions & 3 deletions utils/setup.iss
Expand Up @@ -42,9 +42,9 @@ Source: "..\bin\sqlite3-64.dll"; DestDir: "{app}"; Check: Is64BitInstallMode;
; Place all x86 files here, first one should be marked 'solidbreak'
Source: "..\bin\ASuite.exe"; DestDir: "{app}"; Check: not Is64BitInstallMode; Flags: solidbreak
; Place all common files here, first one should be marked 'solidbreak'
Source: "..\bin\docs\*"; DestDir: "{app}"; Flags: solidbreak recursesubdirs createallsubdirs
Source: "..\bin\locale\*"; DestDir: "{app}"; Flags: recursesubdirs createallsubdirs
Source: "..\bin\themes\*"; DestDir: "{app}"; Flags: recursesubdirs createallsubdirs
Source: "..\bin\docs\*"; DestDir: "{app}\docs"; Flags: solidbreak recursesubdirs createallsubdirs
Source: "..\bin\locale\*"; DestDir: "{app}\locale"; Flags: recursesubdirs createallsubdirs
Source: "..\bin\themes\*"; DestDir: "{app}\themes"; Flags: recursesubdirs createallsubdirs

[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Check: "not IsWin64";
Expand Down

0 comments on commit e45936c

Please sign in to comment.