Problem: Failed to execute
-
- Beiträge: 20
- Registriert: 25 Jul 2014, 15:01
Problem: Failed to execute
Hallo Forum,
ich beschäftige mich seit gut einer Woche mit OPSI, davor habe ich viel mit WPKG deployed. Ich habe das Handbuch, den Guide gelesen und das Tutorial auf Youtube gesehen. Soweit läuft der Server und die Clients ganz gut, zumindest mit vorgefertigten Skripten.
Problem: Jetzt soll mal was eigenes gebaut werden und da scheitert es merkwürdiger weise am einfachsten skript.
================================================================
[5] [Jul 25 14:59:11:109] --
[5] [Jul 25 14:59:11:110] --
[1] [Jul 25 14:59:11:111] opsi-winst 4.11.3.11 started at 25.07.2014 14:58:45
[1] [Jul 25 14:59:11:144]
[1] [Jul 25 14:59:11:145] ============ Version 4.11.3.11 WIN32 script "X:\test\CLIENT_DATA\setup.ins"
[1] [Jul 25 14:59:11:146] start: 2014-07-25 14:59:11
[1] [Jul 25 14:59:11:147] on client named "XXXXXXXX"
[1] [Jul 25 14:59:11:148] loggedin user "XXXXXX"
[1] [Jul 25 14:59:11:150] winst running as "XXXXXXX"
[1] [Jul 25 14:59:11:151] winst running with admin privileges
[1] [Jul 25 14:59:11:152] winst running in standard script mode
[1] [Jul 25 14:59:11:154] executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"
[1] [Jul 25 14:59:11:156] system infos:
[1] [Jul 25 14:59:11:159] XXXXXXXXXXX - PC hardware address
[1] [Jul 25 14:59:11:161] XXXXXXXXX@XXXXXXX.de - IP name
[1] [Jul 25 14:59:11:162] XXXXXXXXXXX - IP address
[1] [Jul 25 14:59:11:164] DEU - System default locale
[1] [Jul 25 14:59:11:166] MS Windowds 6.1 64 Bit
[1] [Jul 25 14:59:11:168]
[6] [Jul 25 14:59:11:170] Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion] opened
[6] [Jul 25 14:59:11:172] Key closed
[6] [Jul 25 14:59:11:240] opsi-winst has version 4.11.3.11, required is : >= 4.10.8.6
[5] [Jul 25 14:59:11:243]
[5] [Jul 25 14:59:11:244] Set $LogDir$ = "C:\tmp"
[6] [Jul 25 14:59:11:246] The value of the variable "$LogDir$" is now: "C:\tmp"
[5] [Jul 25 14:59:11:247]
[5] [Jul 25 14:59:11:248] Set $ProductId$ = "test"
[6] [Jul 25 14:59:11:250] The value of the variable "$ProductId$" is now: "test"
[5] [Jul 25 14:59:11:252]
[5] [Jul 25 14:59:11:253] Set $MinimumSpace$ = "25 MB"
[6] [Jul 25 14:59:11:255] The value of the variable "$MinimumSpace$" is now: "25 MB"
[5] [Jul 25 14:59:11:257]
[5] [Jul 25 14:59:11:258] Set $InstallDir$ = "C:\Program Files (x86)\TEST123"
[6] [Jul 25 14:59:11:260] The value of the variable "$InstallDir$" is now: "C:\Program Files (x86)\TEST123"
[5] [Jul 25 14:59:11:261]
[5] [Jul 25 14:59:11:262] Set $LicenseRequired$ = "false"
[6] [Jul 25 14:59:11:264] The value of the variable "$LicenseRequired$" is now: "false"
[5] [Jul 25 14:59:11:265]
[5] [Jul 25 14:59:11:267] Set $LicensePool$ = "p_" + $ProductId$
[6] [Jul 25 14:59:11:268] The value of the variable "$LicensePool$" is now: "p_test"
[5] [Jul 25 14:59:11:270]
[5] [Jul 25 14:59:11:271] Set $Inst_Prg64$ = "Silverlight_x64.exe"
[6] [Jul 25 14:59:11:277] The value of the variable "$Inst_Prg64$" is now: "Silverlight_x64.exe"
[5] [Jul 25 14:59:11:279]
[5] [Jul 25 14:59:11:281] If
[6] [Jul 25 14:59:11:283] Free on Disk C:: 425.402.089.472 bytes This is more than the required amount of 25.000.000 bytes
[5] [Jul 25 14:59:11:284] HasMinimumSpace ("C:", $MinimumSpace$) <<< result true
[5] [Jul 25 14:59:11:286] not(HasMinimumSpace ("C:", $MinimumSpace$)) <<< result false
[5] [Jul 25 14:59:11:287] Then
[5] [Jul 25 14:59:11:290]
[5] [Jul 25 14:59:11:291] Else
[5] [Jul 25 14:59:11:293] comment: Show product picture
[5] [Jul 25 14:59:11:296]
[5] [Jul 25 14:59:11:297] If
[6] [Jul 25 14:59:11:299] Starting query if file exist ...
[5] [Jul 25 14:59:11:303] FileExists("X:\test\CLIENT_DATA\delsub.ins") <<< result true
[5] [Jul 25 14:59:11:305] Then
[5] [Jul 25 14:59:11:307] comment: Start uninstall sub section
[6] [Jul 25 14:59:11:322]
[6] [Jul 25 14:59:11:323] ~~~~~~~ Start Sub ~~~~~~~ Sub "X:\test\CLIENT_DATA\delsub.ins"
[5] [Jul 25 14:59:11:327]
[5] [Jul 25 14:59:11:328] Set $MsiId$ = '{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}'
[6] [Jul 25 14:59:11:330] The value of the variable "$MsiId$" is now: "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}"
[5] [Jul 25 14:59:11:332]
[5] [Jul 25 14:59:11:333] Set $UninstallProgram$ = $InstallDir$ + "\uninstall.exe"
[6] [Jul 25 14:59:11:335] The value of the variable "$UninstallProgram$" is now: "C:\Program Files (x86)\TEST123\uninstall.exe"
[5] [Jul 25 14:59:11:336] message Uninstalling test ...
[5] [Jul 25 14:59:11:338]
[5] [Jul 25 14:59:11:339] If
[6] [Jul 25 14:59:11:341] Starting query if file exist ...
[5] [Jul 25 14:59:11:343] "C:\Program Files (x86)\TEST123\uninstall.exe": File Error 3 (Das System kann den angegebenen Pfad nicht finden.<)
[5] [Jul 25 14:59:11:344] FileExists($UninstallProgram$) <<< result false
[5] [Jul 25 14:59:11:345] Then
[5] [Jul 25 14:59:11:347] EndIf
[6] [Jul 25 14:59:11:348] Section ending since next line is starting with "["
[6] [Jul 25 14:59:11:350]
[6] [Jul 25 14:59:11:351] ~~~~~~~ End Sub ~~~~~~~ Sub "X:\test\CLIENT_DATA\delsub.ins"
[6] [Jul 25 14:59:11:352]
[5] [Jul 25 14:59:11:354] EndIf
[5] [Jul 25 14:59:11:358] message Installing test ...
[5] [Jul 25 14:59:11:362] comment: Start setup program
[5] [Jul 25 14:59:11:363]
[5] [Jul 25 14:59:11:365] Execution of Winbatch_install
[6] [Jul 25 14:59:11:376] Call ""X:\test\CLIENT_DATA\Silverlight_x64.exe" /S"
[6] [Jul 25 14:59:11:377] Waiting until the called process is finished
[6] [Jul 25 14:59:11:379] Start process as invoker: fewers
[3] [Jul 25 14:59:11:710] Exception in StartProcess_cp: Failed to execute "X:\test\CLIENT_DATA\Silverlight_x64.exe" /S : 5
[6] [Jul 25 14:59:11:712]
[6] [Jul 25 14:59:11:714]
[6] [Jul 25 14:59:11:715] ~~~~~~~ Start Sub ~~~~~~~ Sub_check_exitcode
[5] [Jul 25 14:59:11:717] comment: Test for installation success via exit code
[5] [Jul 25 14:59:11:719]
[5] [Jul 25 14:59:11:720] Set $ExitCode$ = getLastExitCode
[6] [Jul 25 14:59:11:722] The value of the variable "$ExitCode$" is now: "-1"
[5] [Jul 25 14:59:11:723]
[5] [Jul 25 14:59:11:725] If
[5] [Jul 25 14:59:11:726] $ExitCode$ = "0" <<< result false
[5] [Jul 25 14:59:11:727] ($ExitCode$ = "0") <<< result false
[5] [Jul 25 14:59:11:729] Then
[5] [Jul 25 14:59:11:730]
[5] [Jul 25 14:59:11:732] Else
[5] [Jul 25 14:59:11:733] comment: Setup program gives a exitcode unequal zero: -1
[5] [Jul 25 14:59:11:734]
[5] [Jul 25 14:59:11:736] If
[5] [Jul 25 14:59:11:737] $ExitCode$ = "1605" <<< result false
[5] [Jul 25 14:59:11:739] ($ExitCode$ = "1605") <<< result false
[5] [Jul 25 14:59:11:740] Then
[5] [Jul 25 14:59:11:742]
[5] [Jul 25 14:59:11:743] Else
[5] [Jul 25 14:59:11:744]
[5] [Jul 25 14:59:11:746] If
[5] [Jul 25 14:59:11:747] $ExitCode$ = "1641" <<< result false
[5] [Jul 25 14:59:11:749] ($ExitCode$ = "1641") <<< result false
[5] [Jul 25 14:59:11:750] Then
[5] [Jul 25 14:59:11:751]
[5] [Jul 25 14:59:11:753] Else
[5] [Jul 25 14:59:11:754]
[5] [Jul 25 14:59:11:756] If
[5] [Jul 25 14:59:11:757] $ExitCode$ = "3010" <<< result false
[5] [Jul 25 14:59:11:758] ($ExitCode$ = "3010") <<< result false
[5] [Jul 25 14:59:11:760] Then
[5] [Jul 25 14:59:11:761]
[5] [Jul 25 14:59:11:762] Else
[3] [Jul 25 14:59:11:764] Error: Fatal: Setup program gives an unknown exitcode unequal zero: -1
[5] [Jul 25 14:59:11:765] Error level set to fatal
[5] [Jul 25 14:59:11:767] Process aborted
[6] [Jul 25 14:59:11:768]
[6] [Jul 25 14:59:11:770] ~~~~~~~ End Sub ~~~~~~~ Sub_check_exitcode
[6] [Jul 25 14:59:11:771]
[5] [Jul 25 14:59:11:772] Process aborted
[1] [Jul 25 14:59:11:777] ___________________
[1] [Jul 25 14:59:11:778] script finished
[1] [Jul 25 14:59:11:780] 2 errors
[1] [Jul 25 14:59:11:781] 0 warnings
[1] [Jul 25 14:59:11:782]
[1] [Jul 25 14:59:11:784]
[6] [Jul 25 14:59:11:785] Delete "c:\opsi.org\tmp\_winstbat_*"
[6] [Jul 25 14:59:11:786] Search "c:\opsi.org\tmp\"
=======================================================================================
Die uninstall.ins und die delsub.ins laufen sauber durch, "nur" die setup.ins macht Zicken. Keine Ahnung was mit der .exe sein soll ?! Ich glaube ich sehe den Wald vor lauter Bäumen nicht mehr xD
Vielleicht hat ja jemand den zündenden Gedanken,
Danke und beste Grüße,
Florian
ich beschäftige mich seit gut einer Woche mit OPSI, davor habe ich viel mit WPKG deployed. Ich habe das Handbuch, den Guide gelesen und das Tutorial auf Youtube gesehen. Soweit läuft der Server und die Clients ganz gut, zumindest mit vorgefertigten Skripten.
Problem: Jetzt soll mal was eigenes gebaut werden und da scheitert es merkwürdiger weise am einfachsten skript.
================================================================
[5] [Jul 25 14:59:11:109] --
[5] [Jul 25 14:59:11:110] --
[1] [Jul 25 14:59:11:111] opsi-winst 4.11.3.11 started at 25.07.2014 14:58:45
[1] [Jul 25 14:59:11:144]
[1] [Jul 25 14:59:11:145] ============ Version 4.11.3.11 WIN32 script "X:\test\CLIENT_DATA\setup.ins"
[1] [Jul 25 14:59:11:146] start: 2014-07-25 14:59:11
[1] [Jul 25 14:59:11:147] on client named "XXXXXXXX"
[1] [Jul 25 14:59:11:148] loggedin user "XXXXXX"
[1] [Jul 25 14:59:11:150] winst running as "XXXXXXX"
[1] [Jul 25 14:59:11:151] winst running with admin privileges
[1] [Jul 25 14:59:11:152] winst running in standard script mode
[1] [Jul 25 14:59:11:154] executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"
[1] [Jul 25 14:59:11:156] system infos:
[1] [Jul 25 14:59:11:159] XXXXXXXXXXX - PC hardware address
[1] [Jul 25 14:59:11:161] XXXXXXXXX@XXXXXXX.de - IP name
[1] [Jul 25 14:59:11:162] XXXXXXXXXXX - IP address
[1] [Jul 25 14:59:11:164] DEU - System default locale
[1] [Jul 25 14:59:11:166] MS Windowds 6.1 64 Bit
[1] [Jul 25 14:59:11:168]
[6] [Jul 25 14:59:11:170] Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion] opened
[6] [Jul 25 14:59:11:172] Key closed
[6] [Jul 25 14:59:11:240] opsi-winst has version 4.11.3.11, required is : >= 4.10.8.6
[5] [Jul 25 14:59:11:243]
[5] [Jul 25 14:59:11:244] Set $LogDir$ = "C:\tmp"
[6] [Jul 25 14:59:11:246] The value of the variable "$LogDir$" is now: "C:\tmp"
[5] [Jul 25 14:59:11:247]
[5] [Jul 25 14:59:11:248] Set $ProductId$ = "test"
[6] [Jul 25 14:59:11:250] The value of the variable "$ProductId$" is now: "test"
[5] [Jul 25 14:59:11:252]
[5] [Jul 25 14:59:11:253] Set $MinimumSpace$ = "25 MB"
[6] [Jul 25 14:59:11:255] The value of the variable "$MinimumSpace$" is now: "25 MB"
[5] [Jul 25 14:59:11:257]
[5] [Jul 25 14:59:11:258] Set $InstallDir$ = "C:\Program Files (x86)\TEST123"
[6] [Jul 25 14:59:11:260] The value of the variable "$InstallDir$" is now: "C:\Program Files (x86)\TEST123"
[5] [Jul 25 14:59:11:261]
[5] [Jul 25 14:59:11:262] Set $LicenseRequired$ = "false"
[6] [Jul 25 14:59:11:264] The value of the variable "$LicenseRequired$" is now: "false"
[5] [Jul 25 14:59:11:265]
[5] [Jul 25 14:59:11:267] Set $LicensePool$ = "p_" + $ProductId$
[6] [Jul 25 14:59:11:268] The value of the variable "$LicensePool$" is now: "p_test"
[5] [Jul 25 14:59:11:270]
[5] [Jul 25 14:59:11:271] Set $Inst_Prg64$ = "Silverlight_x64.exe"
[6] [Jul 25 14:59:11:277] The value of the variable "$Inst_Prg64$" is now: "Silverlight_x64.exe"
[5] [Jul 25 14:59:11:279]
[5] [Jul 25 14:59:11:281] If
[6] [Jul 25 14:59:11:283] Free on Disk C:: 425.402.089.472 bytes This is more than the required amount of 25.000.000 bytes
[5] [Jul 25 14:59:11:284] HasMinimumSpace ("C:", $MinimumSpace$) <<< result true
[5] [Jul 25 14:59:11:286] not(HasMinimumSpace ("C:", $MinimumSpace$)) <<< result false
[5] [Jul 25 14:59:11:287] Then
[5] [Jul 25 14:59:11:290]
[5] [Jul 25 14:59:11:291] Else
[5] [Jul 25 14:59:11:293] comment: Show product picture
[5] [Jul 25 14:59:11:296]
[5] [Jul 25 14:59:11:297] If
[6] [Jul 25 14:59:11:299] Starting query if file exist ...
[5] [Jul 25 14:59:11:303] FileExists("X:\test\CLIENT_DATA\delsub.ins") <<< result true
[5] [Jul 25 14:59:11:305] Then
[5] [Jul 25 14:59:11:307] comment: Start uninstall sub section
[6] [Jul 25 14:59:11:322]
[6] [Jul 25 14:59:11:323] ~~~~~~~ Start Sub ~~~~~~~ Sub "X:\test\CLIENT_DATA\delsub.ins"
[5] [Jul 25 14:59:11:327]
[5] [Jul 25 14:59:11:328] Set $MsiId$ = '{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}'
[6] [Jul 25 14:59:11:330] The value of the variable "$MsiId$" is now: "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}"
[5] [Jul 25 14:59:11:332]
[5] [Jul 25 14:59:11:333] Set $UninstallProgram$ = $InstallDir$ + "\uninstall.exe"
[6] [Jul 25 14:59:11:335] The value of the variable "$UninstallProgram$" is now: "C:\Program Files (x86)\TEST123\uninstall.exe"
[5] [Jul 25 14:59:11:336] message Uninstalling test ...
[5] [Jul 25 14:59:11:338]
[5] [Jul 25 14:59:11:339] If
[6] [Jul 25 14:59:11:341] Starting query if file exist ...
[5] [Jul 25 14:59:11:343] "C:\Program Files (x86)\TEST123\uninstall.exe": File Error 3 (Das System kann den angegebenen Pfad nicht finden.<)
[5] [Jul 25 14:59:11:344] FileExists($UninstallProgram$) <<< result false
[5] [Jul 25 14:59:11:345] Then
[5] [Jul 25 14:59:11:347] EndIf
[6] [Jul 25 14:59:11:348] Section ending since next line is starting with "["
[6] [Jul 25 14:59:11:350]
[6] [Jul 25 14:59:11:351] ~~~~~~~ End Sub ~~~~~~~ Sub "X:\test\CLIENT_DATA\delsub.ins"
[6] [Jul 25 14:59:11:352]
[5] [Jul 25 14:59:11:354] EndIf
[5] [Jul 25 14:59:11:358] message Installing test ...
[5] [Jul 25 14:59:11:362] comment: Start setup program
[5] [Jul 25 14:59:11:363]
[5] [Jul 25 14:59:11:365] Execution of Winbatch_install
[6] [Jul 25 14:59:11:376] Call ""X:\test\CLIENT_DATA\Silverlight_x64.exe" /S"
[6] [Jul 25 14:59:11:377] Waiting until the called process is finished
[6] [Jul 25 14:59:11:379] Start process as invoker: fewers
[3] [Jul 25 14:59:11:710] Exception in StartProcess_cp: Failed to execute "X:\test\CLIENT_DATA\Silverlight_x64.exe" /S : 5
[6] [Jul 25 14:59:11:712]
[6] [Jul 25 14:59:11:714]
[6] [Jul 25 14:59:11:715] ~~~~~~~ Start Sub ~~~~~~~ Sub_check_exitcode
[5] [Jul 25 14:59:11:717] comment: Test for installation success via exit code
[5] [Jul 25 14:59:11:719]
[5] [Jul 25 14:59:11:720] Set $ExitCode$ = getLastExitCode
[6] [Jul 25 14:59:11:722] The value of the variable "$ExitCode$" is now: "-1"
[5] [Jul 25 14:59:11:723]
[5] [Jul 25 14:59:11:725] If
[5] [Jul 25 14:59:11:726] $ExitCode$ = "0" <<< result false
[5] [Jul 25 14:59:11:727] ($ExitCode$ = "0") <<< result false
[5] [Jul 25 14:59:11:729] Then
[5] [Jul 25 14:59:11:730]
[5] [Jul 25 14:59:11:732] Else
[5] [Jul 25 14:59:11:733] comment: Setup program gives a exitcode unequal zero: -1
[5] [Jul 25 14:59:11:734]
[5] [Jul 25 14:59:11:736] If
[5] [Jul 25 14:59:11:737] $ExitCode$ = "1605" <<< result false
[5] [Jul 25 14:59:11:739] ($ExitCode$ = "1605") <<< result false
[5] [Jul 25 14:59:11:740] Then
[5] [Jul 25 14:59:11:742]
[5] [Jul 25 14:59:11:743] Else
[5] [Jul 25 14:59:11:744]
[5] [Jul 25 14:59:11:746] If
[5] [Jul 25 14:59:11:747] $ExitCode$ = "1641" <<< result false
[5] [Jul 25 14:59:11:749] ($ExitCode$ = "1641") <<< result false
[5] [Jul 25 14:59:11:750] Then
[5] [Jul 25 14:59:11:751]
[5] [Jul 25 14:59:11:753] Else
[5] [Jul 25 14:59:11:754]
[5] [Jul 25 14:59:11:756] If
[5] [Jul 25 14:59:11:757] $ExitCode$ = "3010" <<< result false
[5] [Jul 25 14:59:11:758] ($ExitCode$ = "3010") <<< result false
[5] [Jul 25 14:59:11:760] Then
[5] [Jul 25 14:59:11:761]
[5] [Jul 25 14:59:11:762] Else
[3] [Jul 25 14:59:11:764] Error: Fatal: Setup program gives an unknown exitcode unequal zero: -1
[5] [Jul 25 14:59:11:765] Error level set to fatal
[5] [Jul 25 14:59:11:767] Process aborted
[6] [Jul 25 14:59:11:768]
[6] [Jul 25 14:59:11:770] ~~~~~~~ End Sub ~~~~~~~ Sub_check_exitcode
[6] [Jul 25 14:59:11:771]
[5] [Jul 25 14:59:11:772] Process aborted
[1] [Jul 25 14:59:11:777] ___________________
[1] [Jul 25 14:59:11:778] script finished
[1] [Jul 25 14:59:11:780] 2 errors
[1] [Jul 25 14:59:11:781] 0 warnings
[1] [Jul 25 14:59:11:782]
[1] [Jul 25 14:59:11:784]
[6] [Jul 25 14:59:11:785] Delete "c:\opsi.org\tmp\_winstbat_*"
[6] [Jul 25 14:59:11:786] Search "c:\opsi.org\tmp\"
=======================================================================================
Die uninstall.ins und die delsub.ins laufen sauber durch, "nur" die setup.ins macht Zicken. Keine Ahnung was mit der .exe sein soll ?! Ich glaube ich sehe den Wald vor lauter Bäumen nicht mehr xD
Vielleicht hat ja jemand den zündenden Gedanken,
Danke und beste Grüße,
Florian
- n.wenselowski
- Ex-uib-Team
- Beiträge: 3194
- Registriert: 04 Apr 2013, 12:15
Re: Problem: Failed to execute
Hallo Florian,
Generell ist es eine gute Idee bei solchen Problem auch das Installations-Script zu zeigen
Versuch mal folgendes an dieser Stelle:
Gruß
Niko
Wie sieht der Aufruf im Script auf?florifreeman hat geschrieben:[5] [Jul 25 14:59:11:365] Execution of Winbatch_install
[6] [Jul 25 14:59:11:376] Call ""X:\test\CLIENT_DATA\Silverlight_x64.exe" /S"
Generell ist es eine gute Idee bei solchen Problem auch das Installations-Script zu zeigen

Versuch mal folgendes an dieser Stelle:
Code: Alles auswählen
"%SCRIPTPATH%\Silverlight_x64.exe" /S
Gruß
Niko
Code: Alles auswählen
import OPSI
-
- Beiträge: 20
- Registriert: 25 Jul 2014, 15:01
Re: Problem: Failed to execute
Hi Niko,
danke für deine Antwort und hier ist das Skript dazu:
=========================================================
; Copyright (c) uib gmbh (http://www.uib.de)
; This sourcecode is owned by uib
; and published under the Terms of the General Public License.
; credits: http://www.opsi.org/credits/
[Actions]
requiredWinstVersion >= "4.10.8.6"
DefVar $MsiId$
DefVar $UninstallProgram$
DefVar $LogDir$
DefVar $ProductId$
DefVar $MinimumSpace$
DefVar $InstallDir$
DefVar $ExitCode$
DefVar $LicenseRequired$
DefVar $LicenseKey$
DefVar $LicensePool$
DefVar $Inst_Prg64$
Set $LogDir$ = "%SystemDrive%\tmp"
; ----------------------------------------------------------------
; - Please edit the following values -
; ----------------------------------------------------------------
;$ProductId$ should be the name of the product in opsi
; therefore please: only lower letters, no umlauts,
; no white space use '-' as a seperator
Set $ProductId$ = "test"
Set $MinimumSpace$ = "25 MB"
; the path were we find the product after the installation
Set $InstallDir$ = "%ProgramFiles32Dir%\TEST123"
Set $LicenseRequired$ = "false"
Set $LicensePool$ = "p_" + $ProductId$
Set $Inst_Prg64$ = "Silverlight_x64.exe"
; ----------------------------------------------------------------
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$
isFatalError
; Stop process and set installation status to failed
else
comment "Show product picture"
ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$
if FileExists("%ScriptPath%\delsub.ins")
comment "Start uninstall sub section"
Sub "%ScriptPath%\delsub.ins"
endif
Message "Installing " + $ProductId$ + " ..."
comment "Start setup program"
Winbatch_install
Sub_check_exitcode
comment "Test for installation success"
; Test if software marked as installed in registry
; if (GetRegistryStringValue32("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}] DisplayName") = "")
; logError "Fatal: After Installation 32 bit [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}] not found"
; isFatalError
; else
; comment "Successful Installation"
; endif
endif
[Winbatch_install]
; === Inno Setup ========================================================================================
; http://unattended.sourceforge.net/InnoS ... Codes.html
; You may create setup answer file by: setup.exe /SAVEINF="filename"
; You may use an answer file by the parameter /LOADINF="filename"
"%ScriptPath%\Silverlight_x64.exe" /S
[Sub_check_exitcode]
comment "Test for installation success via exit code"
set $ExitCode$ = getLastExitCode
; informations to exit codes see
; http://msdn.microsoft.com/en-us/library ... S.85).aspx
; http://msdn.microsoft.com/en-us/library/aa368542.aspx
if ($ExitCode$ = "0")
comment "Looks good: setup program gives exitcode zero"
else
comment "Setup program gives a exitcode unequal zero: " + $ExitCode$
if ($ExitCode$ = "1605")
comment "ERROR_UNKNOWN_PRODUCT 1605 This action is only valid for products that are currently installed."
comment "Uninstall of a not installed product failed - no problem"
else
if ($ExitCode$ = "1641")
comment "looks good: setup program gives exitcode 1641"
comment "ERROR_SUCCESS_REBOOT_INITIATED 1641 The installer has initiated a restart. This message is indicative of a success."
else
if ($ExitCode$ = "3010")
comment "looks good: setup program gives exitcode 3010"
comment "ERROR_SUCCESS_REBOOT_REQUIRED 3010 A restart is required to complete the install. This message is indicative of a success."
else
logError "Fatal: Setup program gives an unknown exitcode unequal zero: " + $ExitCode$
isFatalError
endif
endif
endif
endif
=======================================================================================
Den Path zu ändern, werde ich gleich einmal versuchen.
EDIT: Tut sich soweit nichts. Das Problem hatte ich bisher mit drei verschiedene exen. Ich dachte erst die wären vll. kaputt oder korrupt, aber bei drei Dateien ??
Beste Grüße,
Freeman
danke für deine Antwort und hier ist das Skript dazu:
=========================================================
; Copyright (c) uib gmbh (http://www.uib.de)
; This sourcecode is owned by uib
; and published under the Terms of the General Public License.
; credits: http://www.opsi.org/credits/
[Actions]
requiredWinstVersion >= "4.10.8.6"
DefVar $MsiId$
DefVar $UninstallProgram$
DefVar $LogDir$
DefVar $ProductId$
DefVar $MinimumSpace$
DefVar $InstallDir$
DefVar $ExitCode$
DefVar $LicenseRequired$
DefVar $LicenseKey$
DefVar $LicensePool$
DefVar $Inst_Prg64$
Set $LogDir$ = "%SystemDrive%\tmp"
; ----------------------------------------------------------------
; - Please edit the following values -
; ----------------------------------------------------------------
;$ProductId$ should be the name of the product in opsi
; therefore please: only lower letters, no umlauts,
; no white space use '-' as a seperator
Set $ProductId$ = "test"
Set $MinimumSpace$ = "25 MB"
; the path were we find the product after the installation
Set $InstallDir$ = "%ProgramFiles32Dir%\TEST123"
Set $LicenseRequired$ = "false"
Set $LicensePool$ = "p_" + $ProductId$
Set $Inst_Prg64$ = "Silverlight_x64.exe"
; ----------------------------------------------------------------
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$
isFatalError
; Stop process and set installation status to failed
else
comment "Show product picture"
ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$
if FileExists("%ScriptPath%\delsub.ins")
comment "Start uninstall sub section"
Sub "%ScriptPath%\delsub.ins"
endif
Message "Installing " + $ProductId$ + " ..."
comment "Start setup program"
Winbatch_install
Sub_check_exitcode
comment "Test for installation success"
; Test if software marked as installed in registry
; if (GetRegistryStringValue32("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}] DisplayName") = "")
; logError "Fatal: After Installation 32 bit [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}] not found"
; isFatalError
; else
; comment "Successful Installation"
; endif
endif
[Winbatch_install]
; === Inno Setup ========================================================================================
; http://unattended.sourceforge.net/InnoS ... Codes.html
; You may create setup answer file by: setup.exe /SAVEINF="filename"
; You may use an answer file by the parameter /LOADINF="filename"
"%ScriptPath%\Silverlight_x64.exe" /S
[Sub_check_exitcode]
comment "Test for installation success via exit code"
set $ExitCode$ = getLastExitCode
; informations to exit codes see
; http://msdn.microsoft.com/en-us/library ... S.85).aspx
; http://msdn.microsoft.com/en-us/library/aa368542.aspx
if ($ExitCode$ = "0")
comment "Looks good: setup program gives exitcode zero"
else
comment "Setup program gives a exitcode unequal zero: " + $ExitCode$
if ($ExitCode$ = "1605")
comment "ERROR_UNKNOWN_PRODUCT 1605 This action is only valid for products that are currently installed."
comment "Uninstall of a not installed product failed - no problem"
else
if ($ExitCode$ = "1641")
comment "looks good: setup program gives exitcode 1641"
comment "ERROR_SUCCESS_REBOOT_INITIATED 1641 The installer has initiated a restart. This message is indicative of a success."
else
if ($ExitCode$ = "3010")
comment "looks good: setup program gives exitcode 3010"
comment "ERROR_SUCCESS_REBOOT_REQUIRED 3010 A restart is required to complete the install. This message is indicative of a success."
else
logError "Fatal: Setup program gives an unknown exitcode unequal zero: " + $ExitCode$
isFatalError
endif
endif
endif
endif
=======================================================================================
Den Path zu ändern, werde ich gleich einmal versuchen.
EDIT: Tut sich soweit nichts. Das Problem hatte ich bisher mit drei verschiedene exen. Ich dachte erst die wären vll. kaputt oder korrupt, aber bei drei Dateien ??
Beste Grüße,
Freeman
- n.wenselowski
- Ex-uib-Team
- Beiträge: 3194
- Registriert: 04 Apr 2013, 12:15
Re: Problem: Failed to execute
Hallo,
der Fehler ist der gleiche, oder?
Was zeigt der folgende Befehl?
Was ist der Inhalt des Produkt-Ordners?
Das sollten die folgenden Befehle zeigen:
Meine Vermutung ist, dass der Pfad in Script / Depot nicht passen.
Erwarten würde ich im Log einen Aufruf ala X:\test\Silverlight_x64.exe.
Gruß
Niko
der Fehler ist der gleiche, oder?
Was zeigt der folgende Befehl?
Code: Alles auswählen
ls -l /var/lib/opsi/depot/test
Das sollten die folgenden Befehle zeigen:
Code: Alles auswählen
ls -l /home/opsiproducts/test/
ls -l /home/opsiproducts/test/CLIENT_DATA
Erwarten würde ich im Log einen Aufruf ala X:\test\Silverlight_x64.exe.
Gruß
Niko
Code: Alles auswählen
import OPSI
-
- Beiträge: 20
- Registriert: 25 Jul 2014, 15:01
Re: Problem: Failed to execute
Hi Niko,
Der folder depot/test/ zeigt:
=================================================================
opsi_user@XXXXXXXX:~$ ls -l /var/lib/opsi/depot/test/
total 12796
-rw-rw---- 1 opsiconfd pcpatch 2125 Jul 25 10:45 delsub.ins
-rw-rw---- 1 opsiconfd pcpatch 3932 Jul 25 14:04 setup.ins
-rw-rw---- 1 opsiconfd pcpatch 13084896 Jul 25 13:59 Silverlight_x64.exe
-rw-rw---- 1 opsiconfd pcpatch 227 Jul 25 14:08 test.files
-rw-rw---- 1 opsiconfd pcpatch 1162 Jul 25 10:43 uninstall.ins
=================================================================
Der Produktordner beinhaltet:
=================================================================
opsi_user@XXXXXXXX:~$ ls -l /home/opsiproducts/test/
total 12784
drwxrws--- 2 opsi_user pcpatch 4096 Jul 25 13:59 CLIENT_DATA
drwxrws--- 2 opsi_user pcpatch 4096 Jul 25 09:30 OPSI
drwxrws--- 2 opsi_user pcpatch 4096 Jul 25 09:30 SERVER_DATA
-rw-r--r-- 1 opsi_user pcpatch 13076992 Jul 25 14:07 test_1.0-1.opsi
UND:
=====
opsi_user@XXXXXXXX:~$ ls -l /home/opsiproducts/test/CLIENT_DATA/
total 12792
-rw-rw---- 1 opsi_user pcpatch 2125 Jul 25 10:45 delsub.ins
-rw-rw---- 1 opsi_user pcpatch 3998 Jul 25 14:27 setup.ins
-rw-rw---- 1 opsi_user pcpatch 13084896 Jul 25 13:59 Silverlight_x64.exe
-rw-rw---- 1 opsi_user pcpatch 1162 Jul 25 10:43 uninstall.ins
=================================================================
Das mit der .exe ist merkwürdig. Sollte die Workbench nicht mit dem opsiproducts gemountet sein ? Der Weg ist doch eig: Workbench => Opsiproducts => opsi_depot oder ?
Gruß Florian
Der folder depot/test/ zeigt:
=================================================================
opsi_user@XXXXXXXX:~$ ls -l /var/lib/opsi/depot/test/
total 12796
-rw-rw---- 1 opsiconfd pcpatch 2125 Jul 25 10:45 delsub.ins
-rw-rw---- 1 opsiconfd pcpatch 3932 Jul 25 14:04 setup.ins
-rw-rw---- 1 opsiconfd pcpatch 13084896 Jul 25 13:59 Silverlight_x64.exe
-rw-rw---- 1 opsiconfd pcpatch 227 Jul 25 14:08 test.files
-rw-rw---- 1 opsiconfd pcpatch 1162 Jul 25 10:43 uninstall.ins
=================================================================
Der Produktordner beinhaltet:
=================================================================
opsi_user@XXXXXXXX:~$ ls -l /home/opsiproducts/test/
total 12784
drwxrws--- 2 opsi_user pcpatch 4096 Jul 25 13:59 CLIENT_DATA
drwxrws--- 2 opsi_user pcpatch 4096 Jul 25 09:30 OPSI
drwxrws--- 2 opsi_user pcpatch 4096 Jul 25 09:30 SERVER_DATA
-rw-r--r-- 1 opsi_user pcpatch 13076992 Jul 25 14:07 test_1.0-1.opsi
UND:
=====
opsi_user@XXXXXXXX:~$ ls -l /home/opsiproducts/test/CLIENT_DATA/
total 12792
-rw-rw---- 1 opsi_user pcpatch 2125 Jul 25 10:45 delsub.ins
-rw-rw---- 1 opsi_user pcpatch 3998 Jul 25 14:27 setup.ins
-rw-rw---- 1 opsi_user pcpatch 13084896 Jul 25 13:59 Silverlight_x64.exe
-rw-rw---- 1 opsi_user pcpatch 1162 Jul 25 10:43 uninstall.ins
=================================================================
Das mit der .exe ist merkwürdig. Sollte die Workbench nicht mit dem opsiproducts gemountet sein ? Der Weg ist doch eig: Workbench => Opsiproducts => opsi_depot oder ?
Gruß Florian
- n.wenselowski
- Ex-uib-Team
- Beiträge: 3194
- Registriert: 04 Apr 2013, 12:15
Re: Problem: Failed to execute
Hallo Florian,
wenn ich die Timestamps richtig sehe, hast du kein neues Produkt erstellt / eingespielt, wohl aber die setup.ins angepasst.
Der normale Weg eines Paketes ist idR der, dass es unter /home/opsiproducts/ abgelegt wird (also Installer + Scripte), dann mittels opsi-makeproductfile ein neues opsi-Paket erstellt und dieses dann mittels opsi-package-manager installiert wird. Nach der Installation ist der für den Client relevante Teil (also der Inhalt aus CLIENT_DATA) unter /var/lib/opsi/depot zu finden.
Bitte erstelle ein neues Paket und spiele das auf dem Server ein, dann probiere es noch mal.
Dabei sollte folgendes in der setup.ins stehen.
Gruß
Niko
wenn ich die Timestamps richtig sehe, hast du kein neues Produkt erstellt / eingespielt, wohl aber die setup.ins angepasst.
Der normale Weg eines Paketes ist idR der, dass es unter /home/opsiproducts/ abgelegt wird (also Installer + Scripte), dann mittels opsi-makeproductfile ein neues opsi-Paket erstellt und dieses dann mittels opsi-package-manager installiert wird. Nach der Installation ist der für den Client relevante Teil (also der Inhalt aus CLIENT_DATA) unter /var/lib/opsi/depot zu finden.
Bitte erstelle ein neues Paket und spiele das auf dem Server ein, dann probiere es noch mal.
Dabei sollte folgendes in der setup.ins stehen.
florifreeman hat geschrieben:[Winbatch_install]
; === Inno Setup ========================================================================================
; http://unattended.sourceforge.net/InnoS ... Codes.html
; You may create setup answer file by: setup.exe /SAVEINF="filename"
; You may use an answer file by the parameter /LOADINF="filename"
"%ScriptPath%\Silverlight_x64.exe" /S
Gruß
Niko
Code: Alles auswählen
import OPSI
-
- Beiträge: 20
- Registriert: 25 Jul 2014, 15:01
Re: Problem: Failed to execute
Guten morgen Niko,
Leider klappt es immer noch nicht, laut log lässt eine exception die .exe nicht öffnen. Der PDFXchange von der Wiki Seite läuft hingegen sauber durch.
[Winbatch_install]
"%ScriptPath%\Silverlight.exe" /S => Müsste doch schon reichen, oder? Der Rest ist darüber ja auskommentiert.
EDIT:
Wenn ich das Skript nicht aus der Workbench sondern aus dem Opsi_Depot folder auswähle und starte, kommt folgendes Log:
============================================================================================================
Call ""X:\test\Silverlight.exe" /S"
[6] [Jul 31 08:29:28:404] Waiting until the called process is finished
[6] [Jul 31 08:29:28:406] Start process as invoker: fewers
[3] [Jul 31 08:29:28:427] Exception in StartProcess_cp: Failed to execute "X:\test\Silverlight.exe" /S : 5
[6] [Jul 31 08:29:28:428]
[6] [Jul 31 08:29:28:430] Call "if $ServiceErrorClass$ = "None""
[6] [Jul 31 08:29:28:431] Waiting until the called process is finished
[6] [Jul 31 08:29:28:432] Start process as invoker: fewers
[3] [Jul 31 08:29:28:435] Exception in StartProcess_cp: Failed to execute if $ServiceErrorClass$ = "None" : 2
[6] [Jul 31 08:29:28:437]
[6] [Jul 31 08:29:28:438] Call "comment "Everything fine, we got the license key '" + + "'""
[6] [Jul 31 08:29:28:439] Waiting until the called process is finished
[6] [Jul 31 08:29:28:441] Start process as invoker: fewers
[3] [Jul 31 08:29:28:445] Exception in StartProcess_cp: Failed to execute comment "Everything fine, we got the license key '" + + "'" : 2
[6] [Jul 31 08:29:28:446]
[6] [Jul 31 08:29:28:448] Call "else"
[6] [Jul 31 08:29:28:449] Waiting until the called process is finished
[6] [Jul 31 08:29:28:451] Start process as invoker: fewers
[3] [Jul 31 08:29:28:453] Exception in StartProcess_cp: Failed to execute else : 2
[6] [Jul 31 08:29:28:454]
[6] [Jul 31 08:29:28:455] Call "if $ServiceErrorClass$ = "LicenseConfigurationError""
[6] [Jul 31 08:29:28:457] Waiting until the called process is finished
[6] [Jul 31 08:29:28:458] Start process as invoker: fewers
[3] [Jul 31 08:29:28:461] Exception in StartProcess_cp: Failed to execute if $ServiceErrorClass$ = "LicenseConfigurationError" : 2
[6] [Jul 31 08:29:28:462]
[6] [Jul 31 08:29:28:464] Call "LogError "Fatal: license configuration must be corrected""
[6] [Jul 31 08:29:28:465] Waiting until the called process is finished
[6] [Jul 31 08:29:28:467] Start process as invoker: fewers
[3] [Jul 31 08:29:28:469] Exception in StartProcess_cp: Failed to execute LogError "Fatal: license configuration must be corrected" : 2
[6] [Jul 31 08:29:28:471]
[6] [Jul 31 08:29:28:472] Call "LogError getLastServiceErrorMessage"
[6] [Jul 31 08:29:28:474] Waiting until the called process is finished
[6] [Jul 31 08:29:28:475] Start process as invoker: fewers
[3] [Jul 31 08:29:28:477] Exception in StartProcess_cp: Failed to execute LogError getLastServiceErrorMessage : 2
[6] [Jul 31 08:29:28:479]
[6] [Jul 31 08:29:28:480] Call "isFatalError"
[6] [Jul 31 08:29:28:482] Waiting until the called process is finished
[6] [Jul 31 08:29:28:483] Start process as invoker: fewers
[3] [Jul 31 08:29:28:485] Exception in StartProcess_cp: Failed to execute isFatalError : 2
[6] [Jul 31 08:29:28:486]
[6] [Jul 31 08:29:28:488] Call "else"
[6] [Jul 31 08:29:28:489] Waiting until the called process is finished
[6] [Jul 31 08:29:28:491] Start process as invoker: fewers
[3] [Jul 31 08:29:28:492] Exception in StartProcess_cp: Failed to execute else : 2
[6] [Jul 31 08:29:28:494]
[6] [Jul 31 08:29:28:495] Call "if $ServiceErrorClass$ = "LicenseMissingError""
[6] [Jul 31 08:29:28:496] Waiting until the called process is finished
[6] [Jul 31 08:29:28:498] Start process as invoker: fewers
[3] [Jul 31 08:29:28:500] Exception in StartProcess_cp: Failed to execute if $ServiceErrorClass$ = "LicenseMissingError" : 2
[6] [Jul 31 08:29:28:502]
[6] [Jul 31 08:29:28:503] Call "LogError "Fatal: required license is not supplied""
[6] [Jul 31 08:29:28:504] Waiting until the called process is finished
[6] [Jul 31 08:29:28:506] Start process as invoker: fewers
[3] [Jul 31 08:29:28:509] Exception in StartProcess_cp: Failed to execute LogError "Fatal: required license is not supplied" : 2
[6] [Jul 31 08:29:28:511]
[6] [Jul 31 08:29:28:512] Call "isFatalError"
[6] [Jul 31 08:29:28:514] Waiting until the called process is finished
[6] [Jul 31 08:29:28:515] Start process as invoker: fewers
[3] [Jul 31 08:29:28:517] Exception in StartProcess_cp: Failed to execute isFatalError : 2
[6] [Jul 31 08:29:28:518]
[6] [Jul 31 08:29:28:520] Call "endif"
[6] [Jul 31 08:29:28:521] Waiting until the called process is finished
[6] [Jul 31 08:29:28:523] Start process as invoker: fewers
[3] [Jul 31 08:29:28:525] Exception in StartProcess_cp: Failed to execute endif : 2
[6] [Jul 31 08:29:28:526]
[6] [Jul 31 08:29:28:527] Call "endif"
[6] [Jul 31 08:29:28:529] Waiting until the called process is finished
[6] [Jul 31 08:29:28:530] Start process as invoker: fewers
[3] [Jul 31 08:29:28:532] Exception in StartProcess_cp: Failed to execute endif : 2
[6] [Jul 31 08:29:28:533]
[6] [Jul 31 08:29:28:534] Call "endif"
[6] [Jul 31 08:29:28:536] Waiting until the called process is finished
[6] [Jul 31 08:29:28:537] Start process as invoker: fewers
[3] [Jul 31 08:29:28:539] Exception in StartProcess_cp: Failed to execute endif : 2
[6] [Jul 31 08:29:28:540]
[6] [Jul 31 08:29:28:542] Call "else"
[6] [Jul 31 08:29:28:543] Waiting until the called process is finished
[6] [Jul 31 08:29:28:545] Start process as invoker: fewers
[3] [Jul 31 08:29:28:546] Exception in StartProcess_cp: Failed to execute else : 2
[6] [Jul 31 08:29:28:548]
[6] [Jul 31 08:29:28:549] Call "LogError "Fatal: license required, but license management not enabled""
[6] [Jul 31 08:29:28:550] Waiting until the called process is finished
[6] [Jul 31 08:29:28:552] Start process as invoker: fewers
[3] [Jul 31 08:29:28:555] Exception in StartProcess_cp: Failed to execute LogError "Fatal: license required, but license management not enabled" : 2
[6] [Jul 31 08:29:28:556]
[6] [Jul 31 08:29:28:558] Call "isFatalError"
[6] [Jul 31 08:29:28:559] Waiting until the called process is finished
[6] [Jul 31 08:29:28:561] Start process as invoker: fewers
[3] [Jul 31 08:29:28:562] Exception in StartProcess_cp: Failed to execute isFatalError : 2
[6] [Jul 31 08:29:28:564]
[6] [Jul 31 08:29:28:565] Call "endif"
[6] [Jul 31 08:29:28:566] Waiting until the called process is finished
[6] [Jul 31 08:29:28:568] Start process as invoker: fewers
[3] [Jul 31 08:29:28:570] Exception in StartProcess_cp: Failed to execute endif : 2
[6] [Jul 31 08:29:28:572]
[6] [Jul 31 08:29:28:574]
[6] [Jul 31 08:29:28:575] ~~~~~~~ Start Sub ~~~~~~~ Sub_check_exitcode
[5] [Jul 31 08:29:28:578] comment: Test for installation success via exit code
[5] [Jul 31 08:29:28:579]
[5] [Jul 31 08:29:28:580] Set $ExitCode$ = getLastExitCode
[6] [Jul 31 08:29:28:582] The value of the variable "$ExitCode$" is now: "-1"
[5] [Jul 31 08:29:28:584]
[5] [Jul 31 08:29:28:585] If
[5] [Jul 31 08:29:28:586] $ExitCode$ = "0" <<< result false
[5] [Jul 31 08:29:28:588] ($ExitCode$ = "0") <<< result false
[5] [Jul 31 08:29:28:590] Then
[5] [Jul 31 08:29:28:591]
[5] [Jul 31 08:29:28:593] Else
[5] [Jul 31 08:29:28:594] comment: Setup program gives a exitcode unequal zero: -1
[5] [Jul 31 08:29:28:596]
[5] [Jul 31 08:29:28:597] If
[5] [Jul 31 08:29:28:599] $ExitCode$ = "1605" <<< result false
[5] [Jul 31 08:29:28:600] ($ExitCode$ = "1605") <<< result false
[5] [Jul 31 08:29:28:602] Then
[5] [Jul 31 08:29:28:603]
[5] [Jul 31 08:29:28:605] Else
[5] [Jul 31 08:29:28:606]
[5] [Jul 31 08:29:28:607] If
[5] [Jul 31 08:29:28:609] $ExitCode$ = "1641" <<< result false
[5] [Jul 31 08:29:28:610] ($ExitCode$ = "1641") <<< result false
[5] [Jul 31 08:29:28:612] Then
[5] [Jul 31 08:29:28:613]
[5] [Jul 31 08:29:28:615] Else
[5] [Jul 31 08:29:28:616]
[5] [Jul 31 08:29:28:617] If
[5] [Jul 31 08:29:28:619] $ExitCode$ = "3010" <<< result false
[5] [Jul 31 08:29:28:620] ($ExitCode$ = "3010") <<< result false
[5] [Jul 31 08:29:28:622] Then
[5] [Jul 31 08:29:28:623]
[5] [Jul 31 08:29:28:625] Else
[3] [Jul 31 08:29:28:626] Error: Fatal: Setup program gives an unknown exitcode unequal zero: -1
[5] [Jul 31 08:29:28:628] Error level set to fatal
[5] [Jul 31 08:29:28:629] Process aborted
[6] [Jul 31 08:29:28:630]
[6] [Jul 31 08:29:28:632] ~~~~~~~ End Sub ~~~~~~~ Sub_check_exitcode
[6] [Jul 31 08:29:28:633]
[5] [Jul 31 08:29:28:635] Process aborted
[1] [Jul 31 08:29:28:640] ___________________
[1] [Jul 31 08:29:28:641] script finished
[1] [Jul 31 08:29:28:643] 20 errors
[1] [Jul 31 08:29:28:644] 0 warnings
[1] [Jul 31 08:29:28:645]
[1] [Jul 31 08:29:28:646]
[6] [Jul 31 08:29:28:648] Delete "c:\opsi.org\tmp\_winstbat_*"
[6] [Jul 31 08:29:28:649] Search "c:\opsi.org\tmp\"
EDIT 12:05:
==========
Ich bin mit meinem Latein am Ende, habe das Skript nochmal von 0 nach dem Youtube Video mit Notepad ++ nachgebaut und bekomme wieder folgenden Error:
==============================================================================
Execution of Winbatch_install
[6] [Jul 31 12:03:50:643] Call ""Y:\notepadpp\CLIENT_DATA\npp.6.6.8.Installer.exe" /S"
[6] [Jul 31 12:03:50:645] Waiting until the called process is finished
[6] [Jul 31 12:03:50:647] Start process as invoker: fewers
[3] [Jul 31 12:03:50:677] Exception in StartProcess_cp: Failed to execute "Y:\notepadpp\CLIENT_DATA\npp.6.6.8.Installer.exe" /S : 5
[6] [Jul 31 12:03:50:678]
[6] [Jul 31 12:03:50:680]
[6] [Jul 31 12:03:50:682] ~~~~~~~ Start Sub ~~~~~~~ Sub_check_exitcode
[5] [Jul 31 12:03:50:684] comment: Test for installation success via exit code
[5] [Jul 31 12:03:50:685]
[5] [Jul 31 12:03:50:687] Set $ExitCode$ = getLastExitCode
[6] [Jul 31 12:03:50:688] The value of the variable "$ExitCode$" is now: "-1"
[5] [Jul 31 12:03:50:690]
[5] [Jul 31 12:03:50:691] If
[5] [Jul 31 12:03:50:693] $ExitCode$ = "0" <<< result false
[5] [Jul 31 12:03:50:694] ($ExitCode$ = "0") <<< result false
[5] [Jul 31 12:03:50:695] Then
[5] [Jul 31 12:03:50:697]
[5] [Jul 31 12:03:50:698] Else
[5] [Jul 31 12:03:50:700] comment: Setup program gives a exitcode unequal zero: -1
[5] [Jul 31 12:03:50:701]
[5] [Jul 31 12:03:50:702] If
[5] [Jul 31 12:03:50:704] $ExitCode$ = "1605" <<< result false
[5] [Jul 31 12:03:50:705] ($ExitCode$ = "1605") <<< result false
[5] [Jul 31 12:03:50:706] Then
[5] [Jul 31 12:03:50:709]
[5] [Jul 31 12:03:50:716] Else
[5] [Jul 31 12:03:50:718]
[5] [Jul 31 12:03:50:720] If
[5] [Jul 31 12:03:50:721] $ExitCode$ = "1641" <<< result false
[5] [Jul 31 12:03:50:723] ($ExitCode$ = "1641") <<< result false
[5] [Jul 31 12:03:50:724] Then
[5] [Jul 31 12:03:50:726]
[5] [Jul 31 12:03:50:727] Else
[5] [Jul 31 12:03:50:729]
[5] [Jul 31 12:03:50:730] If
[5] [Jul 31 12:03:50:732] $ExitCode$ = "3010" <<< result false
[5] [Jul 31 12:03:50:733] ($ExitCode$ = "3010") <<< result false
[5] [Jul 31 12:03:50:734] Then
[5] [Jul 31 12:03:50:736]
[5] [Jul 31 12:03:50:738] Else
[3] [Jul 31 12:03:50:739] Error: Fatal: Setup program gives an unknown exitcode unequal zero: -1
[5] [Jul 31 12:03:50:742] Error level set to fatal
[5] [Jul 31 12:03:50:743] Process aborted
[6] [Jul 31 12:03:50:746]
[6] [Jul 31 12:03:50:748] ~~~~~~~ End Sub ~~~~~~~ Sub_check_exitcode
[6] [Jul 31 12:03:50:751]
[5] [Jul 31 12:03:50:754] Process aborted
[1] [Jul 31 12:03:50:760] ___________________
[1] [Jul 31 12:03:50:761] script finished
[1] [Jul 31 12:03:50:763] 2 errors
[1] [Jul 31 12:03:50:764] 0 warnings
[1] [Jul 31 12:03:50:768]
[1] [Jul 31 12:03:50:770]
[6] [Jul 31 12:03:50:771] Delete "c:\opsi.org\tmp\_winstbat_*"
[6] [Jul 31 12:03:50:778] Search "c:\opsi.org\tmp\"
=======================================================================================
habe ich vll. ein Rechte-Problem ?
Leider klappt es immer noch nicht, laut log lässt eine exception die .exe nicht öffnen. Der PDFXchange von der Wiki Seite läuft hingegen sauber durch.
[Winbatch_install]
"%ScriptPath%\Silverlight.exe" /S => Müsste doch schon reichen, oder? Der Rest ist darüber ja auskommentiert.
n.wenselowski hat geschrieben:Hallo Florian,
Dabei sollte folgendes in der setup.ins stehen.florifreeman hat geschrieben:[Winbatch_install]
; === Inno Setup ========================================================================================
; http://unattended.sourceforge.net/InnoS ... Codes.html
; You may create setup answer file by: setup.exe /SAVEINF="filename"
; You may use an answer file by the parameter /LOADINF="filename"
"%ScriptPath%\Silverlight_x64.exe" /S
Gruß
Niko
EDIT:
Wenn ich das Skript nicht aus der Workbench sondern aus dem Opsi_Depot folder auswähle und starte, kommt folgendes Log:
============================================================================================================
Call ""X:\test\Silverlight.exe" /S"
[6] [Jul 31 08:29:28:404] Waiting until the called process is finished
[6] [Jul 31 08:29:28:406] Start process as invoker: fewers
[3] [Jul 31 08:29:28:427] Exception in StartProcess_cp: Failed to execute "X:\test\Silverlight.exe" /S : 5
[6] [Jul 31 08:29:28:428]
[6] [Jul 31 08:29:28:430] Call "if $ServiceErrorClass$ = "None""
[6] [Jul 31 08:29:28:431] Waiting until the called process is finished
[6] [Jul 31 08:29:28:432] Start process as invoker: fewers
[3] [Jul 31 08:29:28:435] Exception in StartProcess_cp: Failed to execute if $ServiceErrorClass$ = "None" : 2
[6] [Jul 31 08:29:28:437]
[6] [Jul 31 08:29:28:438] Call "comment "Everything fine, we got the license key '" + + "'""
[6] [Jul 31 08:29:28:439] Waiting until the called process is finished
[6] [Jul 31 08:29:28:441] Start process as invoker: fewers
[3] [Jul 31 08:29:28:445] Exception in StartProcess_cp: Failed to execute comment "Everything fine, we got the license key '" + + "'" : 2
[6] [Jul 31 08:29:28:446]
[6] [Jul 31 08:29:28:448] Call "else"
[6] [Jul 31 08:29:28:449] Waiting until the called process is finished
[6] [Jul 31 08:29:28:451] Start process as invoker: fewers
[3] [Jul 31 08:29:28:453] Exception in StartProcess_cp: Failed to execute else : 2
[6] [Jul 31 08:29:28:454]
[6] [Jul 31 08:29:28:455] Call "if $ServiceErrorClass$ = "LicenseConfigurationError""
[6] [Jul 31 08:29:28:457] Waiting until the called process is finished
[6] [Jul 31 08:29:28:458] Start process as invoker: fewers
[3] [Jul 31 08:29:28:461] Exception in StartProcess_cp: Failed to execute if $ServiceErrorClass$ = "LicenseConfigurationError" : 2
[6] [Jul 31 08:29:28:462]
[6] [Jul 31 08:29:28:464] Call "LogError "Fatal: license configuration must be corrected""
[6] [Jul 31 08:29:28:465] Waiting until the called process is finished
[6] [Jul 31 08:29:28:467] Start process as invoker: fewers
[3] [Jul 31 08:29:28:469] Exception in StartProcess_cp: Failed to execute LogError "Fatal: license configuration must be corrected" : 2
[6] [Jul 31 08:29:28:471]
[6] [Jul 31 08:29:28:472] Call "LogError getLastServiceErrorMessage"
[6] [Jul 31 08:29:28:474] Waiting until the called process is finished
[6] [Jul 31 08:29:28:475] Start process as invoker: fewers
[3] [Jul 31 08:29:28:477] Exception in StartProcess_cp: Failed to execute LogError getLastServiceErrorMessage : 2
[6] [Jul 31 08:29:28:479]
[6] [Jul 31 08:29:28:480] Call "isFatalError"
[6] [Jul 31 08:29:28:482] Waiting until the called process is finished
[6] [Jul 31 08:29:28:483] Start process as invoker: fewers
[3] [Jul 31 08:29:28:485] Exception in StartProcess_cp: Failed to execute isFatalError : 2
[6] [Jul 31 08:29:28:486]
[6] [Jul 31 08:29:28:488] Call "else"
[6] [Jul 31 08:29:28:489] Waiting until the called process is finished
[6] [Jul 31 08:29:28:491] Start process as invoker: fewers
[3] [Jul 31 08:29:28:492] Exception in StartProcess_cp: Failed to execute else : 2
[6] [Jul 31 08:29:28:494]
[6] [Jul 31 08:29:28:495] Call "if $ServiceErrorClass$ = "LicenseMissingError""
[6] [Jul 31 08:29:28:496] Waiting until the called process is finished
[6] [Jul 31 08:29:28:498] Start process as invoker: fewers
[3] [Jul 31 08:29:28:500] Exception in StartProcess_cp: Failed to execute if $ServiceErrorClass$ = "LicenseMissingError" : 2
[6] [Jul 31 08:29:28:502]
[6] [Jul 31 08:29:28:503] Call "LogError "Fatal: required license is not supplied""
[6] [Jul 31 08:29:28:504] Waiting until the called process is finished
[6] [Jul 31 08:29:28:506] Start process as invoker: fewers
[3] [Jul 31 08:29:28:509] Exception in StartProcess_cp: Failed to execute LogError "Fatal: required license is not supplied" : 2
[6] [Jul 31 08:29:28:511]
[6] [Jul 31 08:29:28:512] Call "isFatalError"
[6] [Jul 31 08:29:28:514] Waiting until the called process is finished
[6] [Jul 31 08:29:28:515] Start process as invoker: fewers
[3] [Jul 31 08:29:28:517] Exception in StartProcess_cp: Failed to execute isFatalError : 2
[6] [Jul 31 08:29:28:518]
[6] [Jul 31 08:29:28:520] Call "endif"
[6] [Jul 31 08:29:28:521] Waiting until the called process is finished
[6] [Jul 31 08:29:28:523] Start process as invoker: fewers
[3] [Jul 31 08:29:28:525] Exception in StartProcess_cp: Failed to execute endif : 2
[6] [Jul 31 08:29:28:526]
[6] [Jul 31 08:29:28:527] Call "endif"
[6] [Jul 31 08:29:28:529] Waiting until the called process is finished
[6] [Jul 31 08:29:28:530] Start process as invoker: fewers
[3] [Jul 31 08:29:28:532] Exception in StartProcess_cp: Failed to execute endif : 2
[6] [Jul 31 08:29:28:533]
[6] [Jul 31 08:29:28:534] Call "endif"
[6] [Jul 31 08:29:28:536] Waiting until the called process is finished
[6] [Jul 31 08:29:28:537] Start process as invoker: fewers
[3] [Jul 31 08:29:28:539] Exception in StartProcess_cp: Failed to execute endif : 2
[6] [Jul 31 08:29:28:540]
[6] [Jul 31 08:29:28:542] Call "else"
[6] [Jul 31 08:29:28:543] Waiting until the called process is finished
[6] [Jul 31 08:29:28:545] Start process as invoker: fewers
[3] [Jul 31 08:29:28:546] Exception in StartProcess_cp: Failed to execute else : 2
[6] [Jul 31 08:29:28:548]
[6] [Jul 31 08:29:28:549] Call "LogError "Fatal: license required, but license management not enabled""
[6] [Jul 31 08:29:28:550] Waiting until the called process is finished
[6] [Jul 31 08:29:28:552] Start process as invoker: fewers
[3] [Jul 31 08:29:28:555] Exception in StartProcess_cp: Failed to execute LogError "Fatal: license required, but license management not enabled" : 2
[6] [Jul 31 08:29:28:556]
[6] [Jul 31 08:29:28:558] Call "isFatalError"
[6] [Jul 31 08:29:28:559] Waiting until the called process is finished
[6] [Jul 31 08:29:28:561] Start process as invoker: fewers
[3] [Jul 31 08:29:28:562] Exception in StartProcess_cp: Failed to execute isFatalError : 2
[6] [Jul 31 08:29:28:564]
[6] [Jul 31 08:29:28:565] Call "endif"
[6] [Jul 31 08:29:28:566] Waiting until the called process is finished
[6] [Jul 31 08:29:28:568] Start process as invoker: fewers
[3] [Jul 31 08:29:28:570] Exception in StartProcess_cp: Failed to execute endif : 2
[6] [Jul 31 08:29:28:572]
[6] [Jul 31 08:29:28:574]
[6] [Jul 31 08:29:28:575] ~~~~~~~ Start Sub ~~~~~~~ Sub_check_exitcode
[5] [Jul 31 08:29:28:578] comment: Test for installation success via exit code
[5] [Jul 31 08:29:28:579]
[5] [Jul 31 08:29:28:580] Set $ExitCode$ = getLastExitCode
[6] [Jul 31 08:29:28:582] The value of the variable "$ExitCode$" is now: "-1"
[5] [Jul 31 08:29:28:584]
[5] [Jul 31 08:29:28:585] If
[5] [Jul 31 08:29:28:586] $ExitCode$ = "0" <<< result false
[5] [Jul 31 08:29:28:588] ($ExitCode$ = "0") <<< result false
[5] [Jul 31 08:29:28:590] Then
[5] [Jul 31 08:29:28:591]
[5] [Jul 31 08:29:28:593] Else
[5] [Jul 31 08:29:28:594] comment: Setup program gives a exitcode unequal zero: -1
[5] [Jul 31 08:29:28:596]
[5] [Jul 31 08:29:28:597] If
[5] [Jul 31 08:29:28:599] $ExitCode$ = "1605" <<< result false
[5] [Jul 31 08:29:28:600] ($ExitCode$ = "1605") <<< result false
[5] [Jul 31 08:29:28:602] Then
[5] [Jul 31 08:29:28:603]
[5] [Jul 31 08:29:28:605] Else
[5] [Jul 31 08:29:28:606]
[5] [Jul 31 08:29:28:607] If
[5] [Jul 31 08:29:28:609] $ExitCode$ = "1641" <<< result false
[5] [Jul 31 08:29:28:610] ($ExitCode$ = "1641") <<< result false
[5] [Jul 31 08:29:28:612] Then
[5] [Jul 31 08:29:28:613]
[5] [Jul 31 08:29:28:615] Else
[5] [Jul 31 08:29:28:616]
[5] [Jul 31 08:29:28:617] If
[5] [Jul 31 08:29:28:619] $ExitCode$ = "3010" <<< result false
[5] [Jul 31 08:29:28:620] ($ExitCode$ = "3010") <<< result false
[5] [Jul 31 08:29:28:622] Then
[5] [Jul 31 08:29:28:623]
[5] [Jul 31 08:29:28:625] Else
[3] [Jul 31 08:29:28:626] Error: Fatal: Setup program gives an unknown exitcode unequal zero: -1
[5] [Jul 31 08:29:28:628] Error level set to fatal
[5] [Jul 31 08:29:28:629] Process aborted
[6] [Jul 31 08:29:28:630]
[6] [Jul 31 08:29:28:632] ~~~~~~~ End Sub ~~~~~~~ Sub_check_exitcode
[6] [Jul 31 08:29:28:633]
[5] [Jul 31 08:29:28:635] Process aborted
[1] [Jul 31 08:29:28:640] ___________________
[1] [Jul 31 08:29:28:641] script finished
[1] [Jul 31 08:29:28:643] 20 errors
[1] [Jul 31 08:29:28:644] 0 warnings
[1] [Jul 31 08:29:28:645]
[1] [Jul 31 08:29:28:646]
[6] [Jul 31 08:29:28:648] Delete "c:\opsi.org\tmp\_winstbat_*"
[6] [Jul 31 08:29:28:649] Search "c:\opsi.org\tmp\"
EDIT 12:05:
==========
Ich bin mit meinem Latein am Ende, habe das Skript nochmal von 0 nach dem Youtube Video mit Notepad ++ nachgebaut und bekomme wieder folgenden Error:
==============================================================================
Execution of Winbatch_install
[6] [Jul 31 12:03:50:643] Call ""Y:\notepadpp\CLIENT_DATA\npp.6.6.8.Installer.exe" /S"
[6] [Jul 31 12:03:50:645] Waiting until the called process is finished
[6] [Jul 31 12:03:50:647] Start process as invoker: fewers
[3] [Jul 31 12:03:50:677] Exception in StartProcess_cp: Failed to execute "Y:\notepadpp\CLIENT_DATA\npp.6.6.8.Installer.exe" /S : 5
[6] [Jul 31 12:03:50:678]
[6] [Jul 31 12:03:50:680]
[6] [Jul 31 12:03:50:682] ~~~~~~~ Start Sub ~~~~~~~ Sub_check_exitcode
[5] [Jul 31 12:03:50:684] comment: Test for installation success via exit code
[5] [Jul 31 12:03:50:685]
[5] [Jul 31 12:03:50:687] Set $ExitCode$ = getLastExitCode
[6] [Jul 31 12:03:50:688] The value of the variable "$ExitCode$" is now: "-1"
[5] [Jul 31 12:03:50:690]
[5] [Jul 31 12:03:50:691] If
[5] [Jul 31 12:03:50:693] $ExitCode$ = "0" <<< result false
[5] [Jul 31 12:03:50:694] ($ExitCode$ = "0") <<< result false
[5] [Jul 31 12:03:50:695] Then
[5] [Jul 31 12:03:50:697]
[5] [Jul 31 12:03:50:698] Else
[5] [Jul 31 12:03:50:700] comment: Setup program gives a exitcode unequal zero: -1
[5] [Jul 31 12:03:50:701]
[5] [Jul 31 12:03:50:702] If
[5] [Jul 31 12:03:50:704] $ExitCode$ = "1605" <<< result false
[5] [Jul 31 12:03:50:705] ($ExitCode$ = "1605") <<< result false
[5] [Jul 31 12:03:50:706] Then
[5] [Jul 31 12:03:50:709]
[5] [Jul 31 12:03:50:716] Else
[5] [Jul 31 12:03:50:718]
[5] [Jul 31 12:03:50:720] If
[5] [Jul 31 12:03:50:721] $ExitCode$ = "1641" <<< result false
[5] [Jul 31 12:03:50:723] ($ExitCode$ = "1641") <<< result false
[5] [Jul 31 12:03:50:724] Then
[5] [Jul 31 12:03:50:726]
[5] [Jul 31 12:03:50:727] Else
[5] [Jul 31 12:03:50:729]
[5] [Jul 31 12:03:50:730] If
[5] [Jul 31 12:03:50:732] $ExitCode$ = "3010" <<< result false
[5] [Jul 31 12:03:50:733] ($ExitCode$ = "3010") <<< result false
[5] [Jul 31 12:03:50:734] Then
[5] [Jul 31 12:03:50:736]
[5] [Jul 31 12:03:50:738] Else
[3] [Jul 31 12:03:50:739] Error: Fatal: Setup program gives an unknown exitcode unequal zero: -1
[5] [Jul 31 12:03:50:742] Error level set to fatal
[5] [Jul 31 12:03:50:743] Process aborted
[6] [Jul 31 12:03:50:746]
[6] [Jul 31 12:03:50:748] ~~~~~~~ End Sub ~~~~~~~ Sub_check_exitcode
[6] [Jul 31 12:03:50:751]
[5] [Jul 31 12:03:50:754] Process aborted
[1] [Jul 31 12:03:50:760] ___________________
[1] [Jul 31 12:03:50:761] script finished
[1] [Jul 31 12:03:50:763] 2 errors
[1] [Jul 31 12:03:50:764] 0 warnings
[1] [Jul 31 12:03:50:768]
[1] [Jul 31 12:03:50:770]
[6] [Jul 31 12:03:50:771] Delete "c:\opsi.org\tmp\_winstbat_*"
[6] [Jul 31 12:03:50:778] Search "c:\opsi.org\tmp\"
=======================================================================================
habe ich vll. ein Rechte-Problem ?
- n.wenselowski
- Ex-uib-Team
- Beiträge: 3194
- Registriert: 04 Apr 2013, 12:15
Re: Problem: Failed to execute
Hallo Florian,
kann sein, dass die Rechte eine Rolle spielen.
Hilft eventuell das?
Ansonsten: Welches OS in welcher Version wird verwendet?
Gruß
Niko
kann sein, dass die Rechte eine Rolle spielen.
Hilft eventuell das?
Code: Alles auswählen
opsi-setup --set-rights
Gruß
Niko
Code: Alles auswählen
import OPSI
-
- Beiträge: 20
- Registriert: 25 Jul 2014, 15:01
Re: Problem: Failed to execute
Hi Nico,
sry das ich mich erst so spät melde (Krankheit mit Urlaub gepaart).
Ich verwende Ubuntu 14.04 LTS mit der letzten Opsi Version (für 14.04 gab es damals keine explizite).
sry das ich mich erst so spät melde (Krankheit mit Urlaub gepaart).
Ich verwende Ubuntu 14.04 LTS mit der letzten Opsi Version (für 14.04 gab es damals keine explizite).
n.wenselowski hat geschrieben:Hallo Florian,
kann sein, dass die Rechte eine Rolle spielen.
Hilft eventuell das?Ansonsten: Welches OS in welcher Version wird verwendet?Code: Alles auswählen
opsi-setup --set-rights
Gruß
Niko
- n.wenselowski
- Ex-uib-Team
- Beiträge: 3194
- Registriert: 04 Apr 2013, 12:15
Re: Problem: Failed to execute
Hallo,
Es gibt seit gestern ein neues Release im Testing-Bereich, welches aber bei Ubuntu 14.04 noch bekannte Fehler hat (bspw. funktioniert PXE unter dieser Version nicht richtig). Dazu bitte die Release-Notes lesen.
Gruß
Niko
Es gab damals absichtlich keine Version für 14.04, weil es noch nicht freigegeben war. Von daher wundern mich die Probleme nicht.florifreeman hat geschrieben:Ich verwende Ubuntu 14.04 LTS mit der letzten Opsi Version (für 14.04 gab es damals keine explizite).
Es gibt seit gestern ein neues Release im Testing-Bereich, welches aber bei Ubuntu 14.04 noch bekannte Fehler hat (bspw. funktioniert PXE unter dieser Version nicht richtig). Dazu bitte die Release-Notes lesen.
Gruß
Niko
Code: Alles auswählen
import OPSI