Die Suche ergab 39 Treffer

von fredfanatics
29 Jan 2019, 10:50
Forum: Freier Support
Thema: [gelöst, nicht schön, aber gelöst] ExecWith Powershell ExitCode immer 1 statt CustomValue
Antworten: 15
Zugriffe: 7006

Re: ExecWith Powershell ExitCode immer 1 statt CustomValue

Ich weiß, dass ich /64bit probiert hatte, es hat aber am Ergebnis nichts geändert, ggf. teste ich auch nochmal mit sysnative...
von fredfanatics
29 Jan 2019, 09:20
Forum: Freier Support
Thema: [gelöst, nicht schön, aber gelöst] ExecWith Powershell ExitCode immer 1 statt CustomValue
Antworten: 15
Zugriffe: 7006

Re: ExecWith Powershell ExitCode immer 1 statt CustomValue

Ich hab das jetzt "von hinten durch dir Brust ins Auge" gelöst, indem ich das Powershell-Script als ps1-Datei ausgelagert habe und per DosInsAnIcon aufrufe. Jedenfalls ist seltsam, dass das Script bei "ExecWith" die Fehlercodes nicht durchreicht. Ich notiere mir das mal für den n...
von fredfanatics
28 Jan 2019, 19:19
Forum: Freier Support
Thema: [gelöst, nicht schön, aber gelöst] ExecWith Powershell ExitCode immer 1 statt CustomValue
Antworten: 15
Zugriffe: 7006

Re: ExecWith Powershell ExitCode immer 1 statt CustomValue

Wird anderweitig gesetzt, die Policy spielt auch gerade keine Rolle...
von fredfanatics
28 Jan 2019, 18:55
Forum: Freier Support
Thema: [gelöst, nicht schön, aber gelöst] ExecWith Powershell ExitCode immer 1 statt CustomValue
Antworten: 15
Zugriffe: 7006

Re: ExecWith Powershell ExitCode immer 1 statt CustomValue

Hi, vielen Dank für die Antwort, aber ich denke, ich habe das Handbuch schon verstanden.
Ich brauche nicht 0 oder 1, das Script soll auch keinen Fehler werfen (eine nicht unterstützte Plattform liefert 0)
Ich brauche die angegebenen Werte und erwarte, dass die Exitcodes durchgereicht werden.
von fredfanatics
24 Jan 2019, 16:33
Forum: Freier Support
Thema: [gelöst, nicht schön, aber gelöst] ExecWith Powershell ExitCode immer 1 statt CustomValue
Antworten: 15
Zugriffe: 7006

[gelöst, nicht schön, aber gelöst] ExecWith Powershell ExitCode immer 1 statt CustomValue

Hallo Forum, Ich habe folgendes Script: [Actions] DefVar $exitcode$ ExecWith_getTargetSystem "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" Set $exitcode$ = getlastexitcode LogError $exitcode$ if ($exitcode$ = "540") sub "%SCRIPTPATH%\t540.opsiscript" endif...
von fredfanatics
08 Sep 2017, 12:19
Forum: Freier Support
Thema: installations-sources weg
Antworten: 4
Zugriffe: 3121

Re: installations-sources weg

Ist wieder online
von fredfanatics
03 Aug 2017, 15:16
Forum: Bugs
Thema: opsi-setup-detector: setup.opsiscript NSIS InstallBatch-String Zeile 92
Antworten: 2
Zugriffe: 2691

opsi-setup-detector: setup.opsiscript NSIS InstallBatch-String Zeile 92

Alle Versuche, meine NSIS-paketierten Programme in ein bestimmtes Verzeichnis zu installieren schlugen fehl, bis ich in der Doku von NSIS /D sets the default installation directory ($INSTDIR), overriding InstallDir and InstallDirRegKey. It must be the last parameter used in the command line and must...
von fredfanatics
03 Aug 2017, 15:12
Forum: OPSI PackageBuilder
Thema: NSIS InstallBatch-String Zeile 92
Antworten: 3
Zugriffe: 3611

Re: NSIS InstallBatch-String Zeile 92

Verflixt! Ich bitte um Entschuldigung. Ich poste das im Bug Forum.
von fredfanatics
03 Aug 2017, 09:16
Forum: OPSI PackageBuilder
Thema: NSIS InstallBatch-String Zeile 92
Antworten: 3
Zugriffe: 3611

NSIS InstallBatch-String Zeile 92

Alle Versuche, meine NSIS-paketierten Programme in ein bestimmtes Verzeichnis zu installieren schlugen fehl, bis ich in der Doku von NSIS /D sets the default installation directory ($INSTDIR), overriding InstallDir and InstallDirRegKey. It must be the last parameter used in the command line and must...