Screenpresso mit Lizenz installieren - MSI und Copy

Antworten
MatthiasEscher1
Beiträge: 3
Registriert: 18 Feb 2019, 15:43

Screenpresso mit Lizenz installieren - MSI und Copy

Beitrag von MatthiasEscher1 »

Hallo zusammen,
ich habe eine MSI Datei von dem Screenshot-Programm Screenpresso. Außerdem habe ich eine .lic-Datei, die nach der Installation in das %programfiles% Verzeichnis kopiert werden soll.
Ich hab die MSI mit dem OPSI Setup Detector gescannt und ein Install Pakat erstellt.
Wenn ich nun versuche die Lizenzdatei nach dem Installieren der MSI zu kopieren, bekomme ich einen Fehler.

Hier mein Install-Skript:

Code: Alles auswählen

; ----------------------------------------------------------------
; install section
; ----------------------------------------------------------------

[Winbatch_install_msi]
msiexec /i "%ScriptPath%\ScreenpressoSetup.msi"  /l* "$LogDir$\$ProductId$.install_log.txt" /qb-! ALLUSERS=1 REBOOT=ReallySuppress
copy -s "%ScriptPath%\data\*" "%programfiles%\Learnpulse\Screenpresso"

; ----------------------------------------------------------------

Und hier der Fehler:
(405) [3] [Feb 18 15:38:43:246] [screenpresso] Exception in StartProcess_cp: Failed to execute copy -s "p:\screenpresso\data\*" "%programfiles%\Learnpulse\Screenpresso" : 2
(409) [5] [Feb 18 15:38:43:266] [screenpresso] comment: get the exit code
(414) [5] [Feb 18 15:38:43:267] [screenpresso] comment: check the exit code
(431) [5] [Feb 18 15:38:43:268] [screenpresso] comment: critical Exitcodes
(667) [3] [Feb 18 15:38:43:280] [screenpresso] Error: Unknown Installer Error: Exitcode = -1
(668) [2] [Feb 18 15:38:43:280] [screenpresso] Error level set to fatal
Kann mir jemand sagen, was ich falsch mache?
Benutzeravatar
ThomasT
uib-Team
Beiträge: 529
Registriert: 26 Jun 2013, 12:26

Re: Screenpresso mit Lizenz installieren - MSI und Copy

Beitrag von ThomasT »

%programfiles% ist keine Konstante bei opsi:

https://download.uib.de/opsi_stable/doc ... st-system1
Kein Support per DM!
_________________________
opsi support - https://www.uib.de/
For productive opsi installations we recommend support contracts.
thomas.besser
Beiträge: 455
Registriert: 09 Sep 2009, 09:40

Re: Screenpresso mit Lizenz installieren - MSI und Copy

Beitrag von thomas.besser »

Und du solltest eine eigene Files-Sektion einbauen, siehe https://download.uib.de/opsi_stable/doc ... inst-files

Gruß
Thomas
MatthiasEscher1
Beiträge: 3
Registriert: 18 Feb 2019, 15:43

Re: Screenpresso mit Lizenz installieren - MSI und Copy

Beitrag von MatthiasEscher1 »

Hallo,

ich habe nun noch einmal geschaut und die Konstante herausgenommen und eine eigene Files-Sektion angelegt.

Code: Alles auswählen

; ----------------------------------------------------------------
; install section
; ----------------------------------------------------------------

[Winbatch_install_msi]
msiexec /i "%ScriptPath%\ScreenpressoSetup.msi"  /l* "$LogDir$\$ProductId$.install_log.txt" /qb-! ALLUSERS=1 REBOOT=ReallySuppress
Files_do_some_copying
; ----------------------------------------------------------------
; copy section
; ----------------------------------------------------------------

[Files_do_some_copying]
copy -s "%ScriptPath%\data\*.*" "%Systemdrive%\tmp\Learnpulse\Screenpresso"


; ----------------------------------------------------------------
Leider funktioniert es immer noch nicht...
(115) [5] [Feb 19 11:32:30:423] [screenpresso] comment: Show product picture
(120) [5] [Feb 19 11:32:30:461] [screenpresso] comment: Start uninstall sub section
(130) [5] [Feb 19 11:32:30:519] [screenpresso] message Uninstalling screenpresso ...
(149) [5] [Feb 19 11:32:30:522] [screenpresso] comment: MSI id {656bfaae-cef9-4253-9826-b44e91f21f37} found in registry, starting msiexec to uninstall
(152) [5] [Feb 19 11:32:30:523] [screenpresso] Execution of: Winbatch_uninstall_msi
(153) [5] [Feb 19 11:32:30:523] [screenpresso]
(160) [5] [Feb 19 11:32:41:805] [screenpresso] comment: get the exit code
(165) [5] [Feb 19 11:32:41:805] [screenpresso] comment: check the exit code
(172) [5] [Feb 19 11:32:41:805] [screenpresso] comment: non critical Exitcodes
(177) [5] [Feb 19 11:32:41:806] [screenpresso] comment: ExitCode = 0 Action completed successfully.
(379) [5] [Feb 19 11:32:41:832] [screenpresso] Execution of: Files_uninstall
(380) [5] [Feb 19 11:32:41:832] [screenpresso]
(389) [5] [Feb 19 11:32:41:837] [screenpresso] message Installing screenpresso ...
(394) [5] [Feb 19 11:32:41:846] [screenpresso] comment: Start setup program
(396) [5] [Feb 19 11:32:41:863] [screenpresso] Execution of: Winbatch_install_msi
(397) [5] [Feb 19 11:32:41:863] [screenpresso]
(405) [3] [Feb 19 11:32:49:241] [screenpresso] Exception in StartProcess_cp: Failed to execute Files_do_some_copying : 2
(409) [5] [Feb 19 11:32:49:259] [screenpresso] comment: get the exit code
(414) [5] [Feb 19 11:32:49:260] [screenpresso] comment: check the exit code
(431) [5] [Feb 19 11:32:49:260] [screenpresso] comment: critical Exitcodes
(667) [3] [Feb 19 11:32:49:272] [screenpresso] Error: Unknown Installer Error: Exitcode = -1
(668) [2] [Feb 19 11:32:49:272] [screenpresso] Error level set to fatal
thomas.besser
Beiträge: 455
Registriert: 09 Sep 2009, 09:40

Re: Screenpresso mit Lizenz installieren - MSI und Copy

Beitrag von thomas.besser »

Kein Wunder. Aus einer "winbatch"-Sektion darfst du keine "files"-Sektion aufrufen.

Der Aufruf von "Files_do_some_copying" muss dort stehen, wo der "winbatch"-Aufruf steht.
MatthiasEscher1
Beiträge: 3
Registriert: 18 Feb 2019, 15:43

Re: Screenpresso mit Lizenz installieren - MSI und Copy

Beitrag von MatthiasEscher1 »

Perfekt :) Läuft :) Dankeschön :)
Ndat
Beiträge: 1
Registriert: 15 Jul 2019, 13:30

Re: Screenpresso mit Lizenz installieren - MSI und Copy

Beitrag von Ndat »

Hey Matthias,

ich wollte mal fragen, wie bzw. ob du die Funktion "Automatische Updates" deaktivert hast.

VG
Antworten