Seite 1 von 1

Screenpresso mit Lizenz installieren - MSI und Copy

Verfasst: 18 Feb 2019, 15:50
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?

Re: Screenpresso mit Lizenz installieren - MSI und Copy

Verfasst: 18 Feb 2019, 16:32
von ThomasT
%programfiles% ist keine Konstante bei opsi:

https://download.uib.de/opsi_stable/doc ... st-system1

Re: Screenpresso mit Lizenz installieren - MSI und Copy

Verfasst: 19 Feb 2019, 07:10
von thomas.besser
Und du solltest eine eigene Files-Sektion einbauen, siehe https://download.uib.de/opsi_stable/doc ... inst-files

Gruß
Thomas

Re: Screenpresso mit Lizenz installieren - MSI und Copy

Verfasst: 19 Feb 2019, 12:21
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

Re: Screenpresso mit Lizenz installieren - MSI und Copy

Verfasst: 19 Feb 2019, 12:27
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.

Re: Screenpresso mit Lizenz installieren - MSI und Copy

Verfasst: 19 Feb 2019, 14:34
von MatthiasEscher1
Perfekt :) Läuft :) Dankeschön :)

Re: Screenpresso mit Lizenz installieren - MSI und Copy

Verfasst: 16 Jul 2019, 11:32
von Ndat
Hey Matthias,

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

VG