Delphi Tokyo 10.2的Powershell静默/无人值守安装-用于Win docker容器中的CI

问题描述 投票:1回答:1

我正在尝试创建一个默默地安装Delphi Tokyo 10.2的powershell命令-用作Windows Docker容器中的自动编译器。我找不到任何有关如何使用正确的安装程序命令/开关来实现无人值守/静默安装的最新文档。

我确定东京和Rio的安装程序使用的是Inno Setup-应该使用Inno Setup安装程序commands/switches

从Tokyo安装程序的有关页面:

https://photos.app.goo.gl/88jY7PF2mPAipwEA9

这是我到目前为止所迷惑的命令:

.\radstudio10_2_3_esd__93231.exe /sp- /verysilent /suppressmsgboxes /norestart/ /log="c:\somelocation\install.log"

但是,我无法使安装过程超出首页或EULA复选框。失败的静默安装日志显示:

Log opened. (Time zone: UTC-05:00)
Setup version: Inno Setup version 5.5.6 (u)
Original Setup EXE: C:\somelocation\radstudio10_2_3_esd__93231.exe
Setup command line: /SL5="$18051C,138809719,642048,C:\somelocation\radstudio10_2_3_esd__93231.exe" /sp- /verysilent /suppressmsgboxes /norestart/ /log=c:\somelocation\install.log
Windows version: 10.0.18363  (NT platform: Yes)
64-bit Windows: Yes
Processor architecture: x64
User privileges: Administrative
64-bit install mode: No
Created temporary directory: C:\Users\username\AppData\Local\Temp\is-1QQ8P.tmp
Extracting temporary file: C:\Users\username\AppData\Local\Temp\is-1QQ8P.tmp\innocallback.dll
Extracting temporary file: C:\Users\username\AppData\Local\Temp\is-1QQ8P.tmp\UnlockFirewall.dll
Extracting temporary file: C:\Users\username\AppData\Local\Temp\is-1QQ8P.tmp\mOasisRuntime.dll
Extracting temporary file: C:\Users\username\AppData\Local\Temp\is-1QQ8P.tmp\topbanner96.bmp
Failed to proceed to next wizard page; aborting.
Got EAbort exception.
Deinitializing Setup.
Log closed.

这是来自同一安装程序包的非静默安装的部分日志:

Log opened. (Time zone: UTC-05:00)
Setup version: Inno Setup version 5.5.6 (u)
Original Setup EXE: C:\somelocation\radstudio10_2_3_esd__93231.exe
Setup command line: /SL5="$405F0,138809719,642048,C:\somelocation\radstudio10_2_3_esd__93231.exe" /log=c:\somelocation\install.log /saveinf=c:\somelocation\install.inf
Windows version: 10.0.18363  (NT platform: Yes)
64-bit Windows: Yes
Processor architecture: x64
User privileges: Administrative
264-bit install mode: No
Created temporary directory: C:\Users\username\AppData\Local\Temp\is-K4M7F.tmp
Extracting temporary file: C:\Users\username\AppData\Local\Temp\is-K4M7F.tmp\innocallback.dll
Extracting temporary file: C:\Users\username\AppData\Local\Temp\is-K4M7F.tmp\UnlockFirewall.dll
Extracting temporary file: C:\Users\username\AppData\Local\Temp\is-K4M7F.tmp\mOasisRuntime.dll
Extracting temporary file: C:\Users\username\AppData\Local\Temp\is-K4M7F.tmp\topbanner96.bmp
Message box (OK):
Inno Setup version 5.5.6 (u)
Copyright © 1997-2015 Jordan Russell
Portions Copyright © 2000-2015 Martijn Laan
All rights reserved.

Inno Setup home page:
http://www.innosetup.com/

RemObjects Pascal Script home page:
http://www.remobjects.com/ps
User chose OK.
Extracting temporary file: C:\Users\username\AppData\Local\Temp\is-K4M7F.tmp\ProductCodes.ini
Extracting temporary file: C:\Users\username\AppData\Local\Temp\is-K4M7F.tmp\ProductCodes.ini
Extracting temporary file: C:\Users\username\AppData\Local\Temp\is-K4M7F.tmp\ProductCodes.ini
Extracting temporary file: C:\Users\username\AppData\Local\Temp\is-K4M7F.tmp\ProductCodes.ini
Extracting temporary file: C:\Users\username\AppData\Local\Temp\is-K4M7F.tmp\ProductCodes.ini
Starting the installation process.
Creating directory: C:\Program Files (x86)\Embarcadero
Creating directory: C:\Program Files (x86)\Embarcadero\Studio
Creating directory: C:\Program Files (x86)\Embarcadero\Studio\19.0
Directory for uninstall files: C:\Program Files (x86)\Embarcadero\Studio\19.0\
...
...
...

因此,在以上成功的非静默安装中-请注意日志中的行Message box (OK),这是在我接受EULA之后发生的。因此,目前我不确定如何通过安装程序开关来静默满足EULA页面。

有人成功创建了Delphi Tokyo或Rio的无声/无人值守安装吗?还是找到了帮助他们实现类似目标的文档?

非常感谢您的帮助!

亲切的问候,

powershell delphi continuous-integration silent silent-installer
1个回答
0
投票

对于Delphi 2007Delphi XE2,我们可以使用setup.exe /s进行静默安装,请参阅https://delphisorcery.blogspot.com/2011/07/unattended-delphi-installation-how.html以供参考。

但是,此操作不再适用于Delphi 10.2 Tokyo。因此,我们的IT部门直接称为Embarcadero提供了有关如何进行无声安装的更多信息。但不幸的是,他们告诉我们,安装过程无法无声完成

© www.soinside.com 2019 - 2024. All rights reserved.