Ich habe einen Opsi Server bei und installiert auf Ubuntu 14.04 und habe einen WIndows 2012R2 Server als Test Maschine. Jetzt versuche ich Notepad++ (von Niniteheruntergeladen) zu installieren. Weil ich mir nicht sicher bin starte ich das winst32 direkt vom Client aus und wähle danach das Install32,ins auf dem Server aus.
Dabei bricht es mir aber immer ab mit dem Fehler : Exception in StartProcess_cp: Failed to execute "\\10.124.0.207\opsi_workbench\ninite_notepad\CLIENT_DATA\Ninite_Notepad_Installer.exe" /S : 5
Nun ich weis nicht wo der Fehler liegt darum schon mal Danke im Vorraus.
Liebe Grüsse
Hier noch mein Install Script und das ganze Error Log.
Code: Alles auswählen
; Copyright (c) uib gmbh (www.uib.de)
; This sourcecode is owned by uib
; and published under the Terms of the General Public License.
; credits: http://www.opsi.org/en/credits/
[Actions]
requiredWinstVersion >= "4.11.4.6"
ScriptErrorMessages=off
DefVar $MsiId$
DefVar $UninstallProgram$
DefVar $LogDir$
DefVar $ProductId$
DefVar $MinimumSpace$
DefVar $InstallDir$
DefVar $ExitCode$
DefVar $LicenseRequired$
DefVar $LicenseKey$
DefVar $LicensePool$
DefVar $myProperty$
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$ = "ninite_notepad"
Set $MinimumSpace$ = "25 MB"
; the path were we find the product after the installation
Set $InstallDir$ = "%ProgramFiles32Dir%\Notepad++"
Set $LicenseRequired$ = "false"
Set $LicensePool$ = "p_" + $ProductId$
; ----------------------------------------------------------------
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$
isFatalError "No Space"
; Stop process and set installation status to failed
else
comment "Show product picture"
ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$
if FileExists("%ScriptPath%\delsub32.ins")
comment "Start uninstall sub section"
Sub "%ScriptPath%\delsub32.ins"
endif
Message "Installing " + $ProductId$ + " ..."
comment "Start setup program"
ChangeDirectory "%SCRIPTPATH%"
Winbatch_install
Sub_check_exitcode
endif
[Winbatch_install]
; Choose one of the following examples as basis for your installation
; You can use $LicenseKey$ var to pass a license key to the installer
;
; === Nullsoft Scriptable Install System ================================================================
; "%ScriptPath%\Setup.exe" /S
;
; === MSI package =======================================================================================
; You may use the parameter PIDKEY=$Licensekey$
; msiexec /i "%ScriptPath%\some.msi" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=1 REBOOT=ReallySuppress
;
; === InstallShield + MSI=====================================================================================
; Attention: The path to the log file should not contain any whitespaces
; "%ScriptPath%\setup.exe" /s /v" /l* $LogDir$\$ProductId$.install_log.txt /qb! ALLUSERS=1 REBOOT=ReallySuppress"
; "%ScriptPath%\setup.exe" /s /v" /qb! ALLUSERS=1 REBOOT=ReallySuppress"
;
; === InstallShield =====================================================================================
; Create setup.iss answer file by running: setup.exe /r /f1"c:\setup.iss"
; You may use an answer file by the parameter /f1"c:\setup.iss"
; "%ScriptPath%\setup.exe" /s /sms /f2"$LogDir$\$ProductId$.install_log.txt"
;
; === Inno Setup ========================================================================================
; http://unattended.sourceforge.net/InnoSetup_Switches_ExitCodes.html
; You may create setup answer file by: setup.exe /SAVEINF="filename"
; You may use an answer file by the parameter /LOADINF="filename"
"%ScriptPath%\Ninite_Notepad_Installer.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/aa372835(VS.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
Code: Alles auswählen
[1] [Nov 10 11:12:11:868] --
[1] [Nov 10 11:12:11:869] --
[1] [Nov 10 11:12:11:870] c:\opsi.org\log\opsi-script-part-Rk58Pl53.log
[1] [Nov 10 11:12:11:871] opsi-script 4.11.5.14 started at 10.11.2015 11:11:46
[1] [Nov 10 11:12:11:888]
[1] [Nov 10 11:12:11:889] ============ Version 4.11.5.14 script "\\10.124.0.207\opsi_workbench\ninite_notepad\CLIENT_DATA\setup32.ins"
[1] [Nov 10 11:12:11:890] used script encoding: cp1252
[1] [Nov 10 11:12:11:891] used system encoding: cp1252
[1] [Nov 10 11:12:11:892] start: 2015-11-10 11:12:11
[1] [Nov 10 11:12:11:894] on client named "ZENTYALW2012R2"
[1] [Nov 10 11:12:11:895] loggedin user "Administrator"
[1] [Nov 10 11:12:11:896] opsi-script running as "Administrator"
[1] [Nov 10 11:12:11:898] opsi-script running with admin privileges
[1] [Nov 10 11:12:11:899] opsi-script running in standard script mode
[1] [Nov 10 11:12:11:901] executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"
[1] [Nov 10 11:12:11:903] system infos:
[1] [Nov 10 11:12:11:906] DA-E9-FC-97-D6-55 - PC hardware address
[1] [Nov 10 11:12:11:909] ZENTYALW2012R2.test.local - IP name
[1] [Nov 10 11:12:11:911] 10.124.0.244 - IP address
[1] [Nov 10 11:12:11:914] DES - System default locale
[1] [Nov 10 11:12:11:916] MS Windows 6.3 64 Bit
[1] [Nov 10 11:12:11:917]
[6] [Nov 10 11:12:11:920] Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion] opened
[6] [Nov 10 11:12:11:922] Key closed
[6] [Nov 10 11:12:11:987] opsi-script has version 4.11.5.14, required is : >= 4.11.4.6
[5] [Nov 10 11:12:11:990] ReportMessages was True is set to true
[5] [Nov 10 11:12:11:993] Set $LogDir$ = "C:\tmp"
[6] [Nov 10 11:12:11:997] The value of the variable "$LogDir$" is now: "C:\tmp"
[5] [Nov 10 11:12:11:999] Set $ProductId$ = "ninite_notepad"
[6] [Nov 10 11:12:12:002] The value of the variable "$ProductId$" is now: "ninite_notepad"
[5] [Nov 10 11:12:12:004] Set $MinimumSpace$ = "25 MB"
[6] [Nov 10 11:12:12:006] The value of the variable "$MinimumSpace$" is now: "25 MB"
[5] [Nov 10 11:12:12:008] Set $InstallDir$ = "C:\Program Files (x86)\Notepad++"
[6] [Nov 10 11:12:12:012] The value of the variable "$InstallDir$" is now: "C:\Program Files (x86)\Notepad++"
[5] [Nov 10 11:12:12:014] Set $LicenseRequired$ = "false"
[6] [Nov 10 11:12:12:017] The value of the variable "$LicenseRequired$" is now: "false"
[5] [Nov 10 11:12:12:021] Set $LicensePool$ = "p_" + $ProductId$
[6] [Nov 10 11:12:12:024] The value of the variable "$LicensePool$" is now: "p_ninite_notepad"
[6] [Nov 10 11:12:12:026] If
[6] [Nov 10 11:12:12:029] Free on Disk C:: 23 759 736 832 bytes This is more than the required amount of 25 000 000 bytes
[5] [Nov 10 11:12:12:032] HasMinimumSpace ("C:", $MinimumSpace$) <<< result true
[5] [Nov 10 11:12:12:034] not(HasMinimumSpace ("C:", $MinimumSpace$)) <<< result false
[6] [Nov 10 11:12:12:038] Then
[6] [Nov 10 11:12:12:040] Else
[5] [Nov 10 11:12:12:042] comment: Show product picture
[6] [Nov 10 11:12:12:114] If
[5] [Nov 10 11:12:12:116] Starting query if file exist ...
[5] [Nov 10 11:12:12:120] FileExists("\\10.124.0.207\opsi_workbench\ninite_notepad\CLIENT_DATA\delsub32.ins") <<< result true
[6] [Nov 10 11:12:12:123] Then
[5] [Nov 10 11:12:12:125] comment: Start uninstall sub section
[6] [Nov 10 11:12:12:134]
[6] [Nov 10 11:12:12:136] ~~~~~~~ Start Sub ~~~~~~~ Sub "\\10.124.0.207\opsi_workbench\ninite_notepad\CLIENT_DATA\delsub32.ins"
[5] [Nov 10 11:12:12:140] Set $MsiId$ = '{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}'
[6] [Nov 10 11:12:12:144] The value of the variable "$MsiId$" is now: "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}"
[5] [Nov 10 11:12:12:147] Set $UninstallProgram$ = $InstallDir$ + "\uninstall.exe"
[6] [Nov 10 11:12:12:150] The value of the variable "$UninstallProgram$" is now: "C:\Program Files (x86)\Notepad++\uninstall.exe"
[5] [Nov 10 11:12:12:152] message Uninstalling ninite_notepad ...
[6] [Nov 10 11:12:12:154] If
[5] [Nov 10 11:12:12:157] Starting query if file exist ...
[5] [Nov 10 11:12:12:261] "C:\Program Files (x86)\Notepad++\uninstall.exe":
[5] [Nov 10 11:12:12:263] FileExists($UninstallProgram$) <<< result false
[6] [Nov 10 11:12:12:265] Then
[6] [Nov 10 11:12:12:268] EndIf
[6] [Nov 10 11:12:12:270] Section ending since next line is starting with "["
[6] [Nov 10 11:12:12:273]
[6] [Nov 10 11:12:12:276] ~~~~~~~ End Sub ~~~~~~~ Sub "\\10.124.0.207\opsi_workbench\ninite_notepad\CLIENT_DATA\delsub32.ins"
[6] [Nov 10 11:12:12:278]
[6] [Nov 10 11:12:12:281] EndIf
[5] [Nov 10 11:12:12:286] message Installing ninite_notepad ...
[5] [Nov 10 11:12:12:291] comment: Start setup program
[6] [Nov 10 11:12:12:298] Changed current directory to \\10.124.0.207\opsi_workbench\ninite_notepad\CLIENT_DATA
[5] [Nov 10 11:12:12:301]
[5] [Nov 10 11:12:12:304] Execution of Winbatch_install
[6] [Nov 10 11:12:12:309] Call ""\\10.124.0.207\opsi_workbench\ninite_notepad\CLIENT_DATA\Ninite_Notepad_Installer.exe" /S"
[6] [Nov 10 11:12:12:311] Waiting until the called process is finished
[6] [Nov 10 11:12:12:313] Start process as invoker: Administrator
[3] [Nov 10 11:12:12:318] Exception in StartProcess_cp: Failed to execute "\\10.124.0.207\opsi_workbench\ninite_notepad\CLIENT_DATA\Ninite_Notepad_Installer.exe" /S : 5
[6] [Nov 10 11:12:12:320]
[6] [Nov 10 11:12:12:323]
[6] [Nov 10 11:12:12:325] ~~~~~~~ Start Sub ~~~~~~~ Sub_check_exitcode
[5] [Nov 10 11:12:12:329] comment: Test for installation success via exit code
[5] [Nov 10 11:12:12:331] Set $ExitCode$ = getLastExitCode
[6] [Nov 10 11:12:12:334] The value of the variable "$ExitCode$" is now: "-1"
[6] [Nov 10 11:12:12:336] If
[5] [Nov 10 11:12:12:339] $ExitCode$ = "0" <<< result false
[5] [Nov 10 11:12:12:341] ($ExitCode$ = "0") <<< result false
[6] [Nov 10 11:12:12:343] Then
[6] [Nov 10 11:12:12:348] Else
[5] [Nov 10 11:12:12:351] comment: Setup program gives a exitcode unequal zero: -1
[6] [Nov 10 11:12:12:354] If
[5] [Nov 10 11:12:12:357] $ExitCode$ = "1605" <<< result false
[5] [Nov 10 11:12:12:361] ($ExitCode$ = "1605") <<< result false
[6] [Nov 10 11:12:12:363] Then
[6] [Nov 10 11:12:12:367] Else
[6] [Nov 10 11:12:12:370] If
[5] [Nov 10 11:12:12:373] $ExitCode$ = "1641" <<< result false
[5] [Nov 10 11:12:12:375] ($ExitCode$ = "1641") <<< result false
[6] [Nov 10 11:12:12:377] Then
[6] [Nov 10 11:12:12:380] Else
[6] [Nov 10 11:12:12:382] If
[5] [Nov 10 11:12:12:384] $ExitCode$ = "3010" <<< result false
[5] [Nov 10 11:12:12:387] ($ExitCode$ = "3010") <<< result false
[6] [Nov 10 11:12:12:389] Then
[6] [Nov 10 11:12:12:391] Else
[3] [Nov 10 11:12:12:393] Error: Fatal: Setup program gives an unknown exitcode unequal zero: -1
[5] [Nov 10 11:12:12:395] Error level set to fatal
[5] [Nov 10 11:12:12:397] Process aborted
[6] [Nov 10 11:12:12:400]
[6] [Nov 10 11:12:12:402] ~~~~~~~ End Sub ~~~~~~~ Sub_check_exitcode
[6] [Nov 10 11:12:12:404]
[5] [Nov 10 11:12:12:406] Process aborted
[1] [Nov 10 11:12:12:414] ___________________
[1] [Nov 10 11:12:12:416] script finished
[1] [Nov 10 11:12:12:417] 2 errors
[1] [Nov 10 11:12:12:419] 0 warnings
[1] [Nov 10 11:12:12:421]
[1] [Nov 10 11:12:12:423]
[5] [Nov 10 11:14:28:350] read file created