Problem: Failed to execute
Verfasst: 25 Jul 2014, 15:09
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