Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Die Delphi-IDE (https://www.delphipraxis.net/62-die-delphi-ide/)
-   -   Delphi Silent Installation / EULA Abfrage umgehen (https://www.delphipraxis.net/211039-delphi-silent-installation-eula-abfrage-umgehen.html)

bernhard_LA 25. Jul 2022 08:12

AW: Delphi Silent Installation / EULA Abfrage umgehen
 
löst Powershell mein Problem , kann ich damit das Y an die Eula abfrage senden ?
Powershell nennt sich auf meinem System pscore6....

Delphi-Quellcode:
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users>

bernhard_LA 25. Jul 2022 08:27

AW: Delphi Silent Installation / EULA Abfrage umgehen
 
wir haben schon sehr viel Aufwand für die Suche nach einer Lösung spendiert,
hat jemand eine bessere Idee ?
Direkt gestartet geht der Ansatz aber nicht im Batch Script mode für Puppet und JENKINS zusammen



Delphi-Quellcode:

@if (@CodeSection == @Batch) @then
 
@echo off
 
rem Use %SendKeys% to send keys to the keyboard buffer
set SendKeys=CScript //nologo //E:JScript "%~F0"
 
start "" /B radstudio_10_4_esd_104203a.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SLIPFILE=concurrent_000000.slip /FEATURES=delphi_windows
 
ping -n 10 -w 1 127.0.0.1 > NUL
%SendKeys% "Y"
 
rem Wait for 10 minutes until installation is done and kill sdksetup.exe in case it appears
rem Feel free to remove these steps in case they are not required or to change the waiting time
ping -n 600 -w 1 127.0.0.1 > NUL
taskkill /f /im sdksetup.exe >nul 2>&1
 
goto :EOF
 
 
@end
 
// JScript section
 
var WshShell = WScript.CreateObject("WScript.Shell");
WshShell.SendKeys(WScript.Arguments(0))

himitsu 25. Jul 2022 08:34

AW: Delphi Silent Installation / EULA Abfrage umgehen
 
Hat der Installer, bzw. dessen Console auch den Fokus, damit die Taste dort landet?

und sicher, dass dein "Script" wirklich richtig ausgeführt wird?

Warum zwei //
und keiner prüft die Rückgabewerte


ping ->
Delphi-Quellcode:
timeout /t 10

TiGü 25. Jul 2022 13:03

AW: Delphi Silent Installation / EULA Abfrage umgehen
 
Zitat:

Zitat von bernhard_LA (Beitrag 1509188)
löst Powershell mein Problem , kann ich damit das Y an die Eula abfrage senden ?
Powershell nennt sich auf meinem System pscore6....

Delphi-Quellcode:
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users>

Steht alles im Beitrag #8 (https://www.delphipraxis.net/1508982-post8.html), aber man muss sich mit PowerShell auch auseinandersetzen.
Jenkins kann auch PowerShell-Skripte ausführen, ggf. braucht man noch das passende Plugin dazu.


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:22 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz