DosBatch Installation schlägt Fehl

Starlord
Beiträge: 39
Registriert: 18 Jan 2018, 12:04

Re: Deinstallations Probleme

Beitrag von Starlord »

Das Problem mit dem Admin konnte ich durch den Parameter /RunElevated lösen. Trotzdem danke für die Hilfe. Weiter geht es nun mit der Batch Datei. Nachdem das Script startet bekomme ich diese Rückmeldung im Log und das Script endet, die Datei wurde aber nicht installiert.

Code: Alles auswählen

Execution of: DosBatch_install 
[7] [Jun 19 10:21:35:361] [proalpha-7-1]   Save to file with encoding: system
[7] [Jun 19 10:21:35:367] [proalpha-7-1]   Executing "cmd.exe" /C c:\opsi.org\tmp\_opsiscript_Ih82Es02.cmd
[6] [Jun 19 10:21:35:609] [proalpha-7-1]   ExitCode 1
[7] [Jun 19 10:21:35:612] [proalpha-7-1]   The file: c:\opsi.org\tmp\_opsiscript_Ih82Es02.cmd has been deleted
[6] [Jun 19 10:21:35:612] [proalpha-7-1]     Search "c:\opsi.org\tmp\"
[6] [Jun 19 10:21:35:613] [proalpha-7-1]     Search "c:\opsi.org\tmp\_opsiscript_*"
Dabei ist der eigentliche Befehl ja :

Code: Alles auswählen

[DosBatch_install]
"\\location\of\the\common\batch\installationfile\pa-client.bat" /qn 
Mit %Scriptpath% funktioniert mein Skript nicht da die aurgerufenen Dateien abhängig von anderen Dateien sind.
Benutzeravatar
SisterOfMercy
Beiträge: 1522
Registriert: 22 Jun 2012, 19:18

Re: Deinstallations Probleme

Beitrag von SisterOfMercy »

Starlord hat geschrieben:Mit %Scriptpath% funktioniert mein Skript nicht da die aurgerufenen Dateien abhängig von anderen Dateien sind.
What kind of other files? If it's not to big you can include them in the package.
You could try first copying the file to c:\tmp and running it then. Running something from an UNC path in dosbatch may not work if the UNC option for cmd.exe hasn't been set.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Antworten