Fehler Skript Flashplayer
Fehler Skript Flashplayer
Hoi
ich habe folgendes Problem
hab mir die Flashplayer Skripte von der Seite geladen und ein Paket erzeugt und dieses auch auf dem OPSI Server bereit gestellt.
hier die verwendeten skripte:
flashplayer.ins
_________________
; 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/credits/
[Initial]
requiredWinstVersion >= "4.8.6"
LogLevel=2
; Log Errors in Logfile but don't abort:
ExitOnError=false
; Show syntax errors in the script:
ScriptErrorMessages=on
; Dont trace step by step through the script:
TraceMode=off
; Let started programs run in front of the winst window
StayOnTop=false
[Aktionen]
ShowBitmap /3 "%SCRIPTPATH%\flashplayer.png" "Adobe Flashplayer 10"
;Variable fuer temporaeres Verzeichnis
DefVar $Temp$
set $Temp$ = EnvVar("TEMP")
;Variablen fuer BetriebssystemsVersion (OS)-Test
DefVar $OS$
DefVar $MinorOS$
set $OS$ = GetOS
set $MinorOS$ = GetNTVersion
DefVar $ProductId$
Set $ProductId$ = "flashplayer"
DefVar $MinimumSpace$
Set $MinimumSpace$ = "50 MB"
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 /3 "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$
if FileExists("%ScriptPath%\delsub.ins")
comment "Start uninstall sub section"
Sub "%ScriptPath%\delsub.ins"
endif
if ( $OS$ = "Windows_NT" )
Message "Installing " + $ProductId$ + " ..."
Files_copy
Winbatch_unattended_install
Files_Delete
endif
if (IniVar("NoAutoUpdate") = "on")
Files_copy_noautoupdate
else
Files_delete_noautoupdate
endif
endif
[Files_copy]
checktargetpath="$TEMP$\flashplayer"
copy -svx "%SCRIPTPATH%\files\"
[Winbatch_unattended_install]
$TEMP$\flashplayer\install_flash_player.exe /s
$TEMP$\flashplayer\install_flash_player_ax.exe /s
[Files_Delete]
;delete -sf $TEMP$\flashplayer\
[Files_copy_noautoupdate]
copy -svx "%SCRIPTPATH%\files\mms.cfg" "%SYSTEM%\Macromed\Flash"
[Files_delete_noautoupdate]
delete -sf "%SYSTEM%\Macromed\Flash\mms.cfg"
delsub.ins
_________________
;Message "Uninstalling " + $ProductId$ + " ..."
if FileExists("%System%\Macromed\Flash\uninstall_plugin.exe")
comment "Uninstall program found, starting uninstall"
Winbatch_uninstall
sub_check_exitcode
else
comment "No uninstall program found, start to install"
endif
[Winbatch_uninstall]
"%System%\Macromed\Flash\uninstall_plugin.exe" /SILENT /SUPPRESSMSGBOXES /NORESTART
"%System%\Macromed\Flash\uninstall_activeX.exe" /SILENT /SUPPRESSMSGBOXES /NORESTART
[Sub_check_exitcode]
comment "Test for installation success via exit code"
DefVar $ExitCode$
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
delflashplayer.ins
_______________________
; Copyright (c) uib gmbh (www.uib.de)
; This sourcecode is owned by uib gmbh
; and published under the Terms of the General Public License.
; credits: http://www.opsi.org/credits/
[Initial]
requiredWinstVersion >= "4.8.6"
LogLevel=2
; Log Errors in Logfile but don't abort:
ExitOnError=false
; Show syntax errors in the script:
ScriptErrorMessages=on
; Dont trace step by step through the script:
TraceMode=off
; Let started programs run in front of the winst window
StayOnTop=false
[Aktionen]
DefVar $TEMP$
Set $TEMP$ = EnvVar("TEMP")
DefVar $LogDir$
Set $LogDir$ = "%SystemDrive%\tmp"
DefVar $ExitCode$
DefVar $ProductId$
DefVar $InstallDir$
DefVar $LicenseRequired$
DefVar $LicensePool$
; ----------------------------------------------------------------
; - Please edit the following values -
; ----------------------------------------------------------------
Set $ProductId$ = "flashplayer"
Set $InstallDir$ = "%ProgramFilesDir%\" + $ProductId$
Set $LicenseRequired$ = "false"
Set $LicensePool$ = "p_" + $ProductId$
; ----------------------------------------------------------------
comment "Show product picture"
ShowBitmap /3 "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$
Message "Uninstalling " + $ProductId$ + " ..."
if FileExists("%ScriptPath%\delsub.ins")
comment "Start uninstall sub section"
Sub "%ScriptPath%\delsub.ins"
endif
if not ($LicenseRequired$ = "false")
comment "Licensing required, free license used"
Sub_free_license
endif
[Sub_free_license]
if opsiLicenseManagementEnabled
comment "License management is enabled and will be used"
comment "Trying to free license used for the product"
DefVar $result$
Set $result$ = FreeLicense($LicensePool$)
; If there is an assignment of a license pool to the product, it is possible to use
; Set $result$ = FreeLicense("", $ProductId$)
;
; If there is an assignment of a license pool to a windows software id, it is possible to use
; DefVar $WindowsSoftwareId$
; $WindowsSoftwareId$ = "..."
; set $result$ = FreeLicense("", "", $WindowsSoftwareId$)
else
LogError "Error: licensing required, but license management not enabled"
isFatalError
endif
Bei Neustart des Clients bekomm ich dann folgende Fehler:
Sektion Sub "P:\install\flashplayer\delsub.ins" (Kommando in Zeile 2):
i>>?;Message
undefined
Nach Bestätigung mit OK dann den Fehler
"C:\windows\TEMP\flashplayer\install_flash_player.exe" konnte nich gefunden werden ....
Bestätigung mit OK
"C:\windows\TEMP\flashplayer\install_flash_player_ax.exe" konnte nich gefunden werden ....
Bestätigung mit OK
Flash wurde nicht installiert
Schaut man auf C:\Windows\TEMP findet man das Verzeichnis auch nicht mehr...
LogFile der Installation anbei
______________________________________
26.04.2010 16:18:34 JSON service request https://10.0.42.33:4447/rpc?%7B%22id%22 ... e%22%5D%7D
26.04.2010 16:18:34 JSON service request https://10.0.42.33:4447/rpc?%7B%22id%22 ... e%22%5D%7D
26.04.2010 16:18:34 JSON service request https://10.0.42.33:4447/rpc?%7B%22id%22 ... :%5B%5D%7D
26.04.2010 16:18:34 JSON service request https://10.0.42.33:4447/rpc?%7B%22id%22 ... e%22%5D%7D
26.04.2010 16:18:34 JSON service request https://10.0.42.33:4447/rpc?%7B%22id%22 ... e%22%5D%7D
Computername:ops_po.btm.de
Computername according to Environment Variable :OPS_PO
opsi service URL https://10.0.42.33:4447
Config path: P:\install
Utils path: P:\utils
Depot path: P:\install
bootmode BKSTD
winst: Start sorting of products (26.04.2010 16:18:34)
26.04.2010 16:18:34 JSON service request https://10.0.42.33:4447/rpc?%7B%22id%22 ... :%5B%5D%7D
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Resolved sequence of products (26.04.2010 16:18:34):
Product 6 flashplayer : setup
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26.04.2010 16:18:34 JSON service request https://10.0.42.33:4447/rpc?%7B%22id%22 ... e%22%5D%7D
26.04.2010 16:18:34 JSON service request https://10.0.42.33:4447/rpc?%7B%22id%22 ... e%22%5D%7D
scriptname: "flashplayer.ins", special path: "P:\install\flashplayer\"
26.04.2010 16:18:34 JSON service request https://10.0.42.33:4447/rpc?%7B%22id%22 ... g%22%5D%7D
============ Version 4.8.8.1 WIN32 script "P:\install\flashplayer\flashplayer.ins"
start: 2010-04-26 16:18:35 (on client named as : "ops_po.btm.de")
[executing: "C:\Programme\opsi.org\preloginloader\opsi-winst\winst32.exe"]
system infos:
00:0C:29:F4:CF:20 - PC hardware address
OPS_PO.btm.de - IP name
10.0.42.99 - IP address
DEU - System default locale
LogLevel set to 2
Set $Temp$ = EnvVar("TEMP")
The value of the variable is now: "C:\WINDOWS\TEMP"
Set $OS$ = GetOS
The value of the variable is now: "Windows_NT"
Set $MinorOS$ = GetNTVersion
The value of the variable is now: "WinXP"
Set $ProductId$ = "flashplayer"
The value of the variable is now: "flashplayer"
Set $MinimumSpace$ = "50 MB"
The value of the variable is now: "50 MB"
If
Free on Disk C:: 15.684.673.536 bytes This is more than the required amount of 50.000.000 bytes
HasMinimumSpace ("C:", $MinimumSpace$) <<< result true
not(HasMinimumSpace ("C:", $MinimumSpace$)) <<< result false
Then
Else
Show product picture
If
Starting query if file exist ...
FileExists("P:\install\flashplayer\delsub.ins") <<< result true
Then
Start uninstall sub section
~~~~~~~ Start Sub ~~~~~~~ Sub "P:\install\flashplayer\delsub.ins"
If
Starting query if file exist ...
"C:\WINDOWS\system32\Macromed\Flash\uninstall_plugin.exe": File Error 2 (Das System kann die angegebene Datei nicht finden)
FileExists("C:\WINDOWS\system32\Macromed\Flash\uninstall_plugin.exe") <<< result false
Then
Else
No uninstall program found, start to install
EndIf
Section ending since next line is starting with "["
~~~~~~~ End Sub ~~~~~~~ Sub "P:\install\flashplayer\delsub.ins"
EndIf
If
$OS$ = "Windows_NT" <<< result true
( $OS$ = "Windows_NT" ) <<< result true
Then
Execution of Files_copy
Copying P:\install\flashplayer\files\ -----> C:\WINDOWS\TEMP\flashplayer\
0 File(s) found
No (non-directory) file with mask P:\install\flashplayer\files\*.* found
0 File(s) treated
Execution of Winbatch_unattended_install
Call "C:\WINDOWS\TEMP\flashplayer\install_flash_player.exe /s"
Waiting until the called process is finished
Error: C:\WINDOWS\TEMP\flashplayer\install_flash_player.exe /s .... ShellExecute Error 2 (Das System kann die angegebene Datei nicht finden)
Call "C:\WINDOWS\TEMP\flashplayer\install_flash_player_ax.exe /s"
Waiting until the called process is finished
Error: C:\WINDOWS\TEMP\flashplayer\install_flash_player_ax.exe /s .... ShellExecute Error 2 (Das System kann die angegebene Datei nicht finden)
Warning: Section "Files_Delete" does not exist or is empty
EndIf
If
IniVar("NoAutoUpdate") = "on" <<< result false
(IniVar("NoAutoUpdate") = "on") <<< result false
Then
Else
Execution of Files_delete_noautoupdate
Delete recursively "C:\WINDOWS\system32\Macromed\Flash\mms.cfg"
Search "C:\WINDOWS\system32\Macromed\Flash\"
EndIf
EndIf
___________________
2 errors
1 warning
============ Version 4.8.8.1 WIN32 script "P:\install\flashplayer\delsub.ins"
start: 2010-04-26 16:21:35 (on client named as : "ops_po.btm.de")
[executing: "C:\Programme\opsi.org\preloginloader\opsi-winst\winst32.exe"]
system infos:
00:0C:29:F4:CF:20 - PC hardware address
OPS_PO.btm.de - IP name
10.0.42.99 - IP address
DEU - System default locale
Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion] opened
Key closed
___________________
0 errors
0 warnings
26.04.2010 16:21:35 JSON service request https://10.0.42.33:4447/rpc?%7B%22id%22 ... d%22%5D%7D
26.04.2010 16:21:35 JSON service request https://10.0.42.33:4447/rpc?%7B%22id%22 ... e%22%5D%7D
Registry key [HKLM\SOFTWARE\opsi.org\winst] opened
Variable "RebootRequested" is keeping its value "0"
Variable "LastLogFilename" is keeping its value "c:\tmp\instlog.txt"
Variable "ContinueLogFile" is keeping its value "0"
Variable "NumberOfErrors" not found. Code: 2
Key flushed
Key closed
Registry key [HKLM\SOFTWARE\opsi.org\winst] opened
Key closed
ich habe folgendes Problem
hab mir die Flashplayer Skripte von der Seite geladen und ein Paket erzeugt und dieses auch auf dem OPSI Server bereit gestellt.
hier die verwendeten skripte:
flashplayer.ins
_________________
; 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/credits/
[Initial]
requiredWinstVersion >= "4.8.6"
LogLevel=2
; Log Errors in Logfile but don't abort:
ExitOnError=false
; Show syntax errors in the script:
ScriptErrorMessages=on
; Dont trace step by step through the script:
TraceMode=off
; Let started programs run in front of the winst window
StayOnTop=false
[Aktionen]
ShowBitmap /3 "%SCRIPTPATH%\flashplayer.png" "Adobe Flashplayer 10"
;Variable fuer temporaeres Verzeichnis
DefVar $Temp$
set $Temp$ = EnvVar("TEMP")
;Variablen fuer BetriebssystemsVersion (OS)-Test
DefVar $OS$
DefVar $MinorOS$
set $OS$ = GetOS
set $MinorOS$ = GetNTVersion
DefVar $ProductId$
Set $ProductId$ = "flashplayer"
DefVar $MinimumSpace$
Set $MinimumSpace$ = "50 MB"
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 /3 "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$
if FileExists("%ScriptPath%\delsub.ins")
comment "Start uninstall sub section"
Sub "%ScriptPath%\delsub.ins"
endif
if ( $OS$ = "Windows_NT" )
Message "Installing " + $ProductId$ + " ..."
Files_copy
Winbatch_unattended_install
Files_Delete
endif
if (IniVar("NoAutoUpdate") = "on")
Files_copy_noautoupdate
else
Files_delete_noautoupdate
endif
endif
[Files_copy]
checktargetpath="$TEMP$\flashplayer"
copy -svx "%SCRIPTPATH%\files\"
[Winbatch_unattended_install]
$TEMP$\flashplayer\install_flash_player.exe /s
$TEMP$\flashplayer\install_flash_player_ax.exe /s
[Files_Delete]
;delete -sf $TEMP$\flashplayer\
[Files_copy_noautoupdate]
copy -svx "%SCRIPTPATH%\files\mms.cfg" "%SYSTEM%\Macromed\Flash"
[Files_delete_noautoupdate]
delete -sf "%SYSTEM%\Macromed\Flash\mms.cfg"
delsub.ins
_________________
;Message "Uninstalling " + $ProductId$ + " ..."
if FileExists("%System%\Macromed\Flash\uninstall_plugin.exe")
comment "Uninstall program found, starting uninstall"
Winbatch_uninstall
sub_check_exitcode
else
comment "No uninstall program found, start to install"
endif
[Winbatch_uninstall]
"%System%\Macromed\Flash\uninstall_plugin.exe" /SILENT /SUPPRESSMSGBOXES /NORESTART
"%System%\Macromed\Flash\uninstall_activeX.exe" /SILENT /SUPPRESSMSGBOXES /NORESTART
[Sub_check_exitcode]
comment "Test for installation success via exit code"
DefVar $ExitCode$
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
delflashplayer.ins
_______________________
; Copyright (c) uib gmbh (www.uib.de)
; This sourcecode is owned by uib gmbh
; and published under the Terms of the General Public License.
; credits: http://www.opsi.org/credits/
[Initial]
requiredWinstVersion >= "4.8.6"
LogLevel=2
; Log Errors in Logfile but don't abort:
ExitOnError=false
; Show syntax errors in the script:
ScriptErrorMessages=on
; Dont trace step by step through the script:
TraceMode=off
; Let started programs run in front of the winst window
StayOnTop=false
[Aktionen]
DefVar $TEMP$
Set $TEMP$ = EnvVar("TEMP")
DefVar $LogDir$
Set $LogDir$ = "%SystemDrive%\tmp"
DefVar $ExitCode$
DefVar $ProductId$
DefVar $InstallDir$
DefVar $LicenseRequired$
DefVar $LicensePool$
; ----------------------------------------------------------------
; - Please edit the following values -
; ----------------------------------------------------------------
Set $ProductId$ = "flashplayer"
Set $InstallDir$ = "%ProgramFilesDir%\" + $ProductId$
Set $LicenseRequired$ = "false"
Set $LicensePool$ = "p_" + $ProductId$
; ----------------------------------------------------------------
comment "Show product picture"
ShowBitmap /3 "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$
Message "Uninstalling " + $ProductId$ + " ..."
if FileExists("%ScriptPath%\delsub.ins")
comment "Start uninstall sub section"
Sub "%ScriptPath%\delsub.ins"
endif
if not ($LicenseRequired$ = "false")
comment "Licensing required, free license used"
Sub_free_license
endif
[Sub_free_license]
if opsiLicenseManagementEnabled
comment "License management is enabled and will be used"
comment "Trying to free license used for the product"
DefVar $result$
Set $result$ = FreeLicense($LicensePool$)
; If there is an assignment of a license pool to the product, it is possible to use
; Set $result$ = FreeLicense("", $ProductId$)
;
; If there is an assignment of a license pool to a windows software id, it is possible to use
; DefVar $WindowsSoftwareId$
; $WindowsSoftwareId$ = "..."
; set $result$ = FreeLicense("", "", $WindowsSoftwareId$)
else
LogError "Error: licensing required, but license management not enabled"
isFatalError
endif
Bei Neustart des Clients bekomm ich dann folgende Fehler:
Sektion Sub "P:\install\flashplayer\delsub.ins" (Kommando in Zeile 2):
i>>?;Message
undefined
Nach Bestätigung mit OK dann den Fehler
"C:\windows\TEMP\flashplayer\install_flash_player.exe" konnte nich gefunden werden ....
Bestätigung mit OK
"C:\windows\TEMP\flashplayer\install_flash_player_ax.exe" konnte nich gefunden werden ....
Bestätigung mit OK
Flash wurde nicht installiert
Schaut man auf C:\Windows\TEMP findet man das Verzeichnis auch nicht mehr...
LogFile der Installation anbei
______________________________________
26.04.2010 16:18:34 JSON service request https://10.0.42.33:4447/rpc?%7B%22id%22 ... e%22%5D%7D
26.04.2010 16:18:34 JSON service request https://10.0.42.33:4447/rpc?%7B%22id%22 ... e%22%5D%7D
26.04.2010 16:18:34 JSON service request https://10.0.42.33:4447/rpc?%7B%22id%22 ... :%5B%5D%7D
26.04.2010 16:18:34 JSON service request https://10.0.42.33:4447/rpc?%7B%22id%22 ... e%22%5D%7D
26.04.2010 16:18:34 JSON service request https://10.0.42.33:4447/rpc?%7B%22id%22 ... e%22%5D%7D
Computername:ops_po.btm.de
Computername according to Environment Variable :OPS_PO
opsi service URL https://10.0.42.33:4447
Config path: P:\install
Utils path: P:\utils
Depot path: P:\install
bootmode BKSTD
winst: Start sorting of products (26.04.2010 16:18:34)
26.04.2010 16:18:34 JSON service request https://10.0.42.33:4447/rpc?%7B%22id%22 ... :%5B%5D%7D
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Resolved sequence of products (26.04.2010 16:18:34):
Product 6 flashplayer : setup
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26.04.2010 16:18:34 JSON service request https://10.0.42.33:4447/rpc?%7B%22id%22 ... e%22%5D%7D
26.04.2010 16:18:34 JSON service request https://10.0.42.33:4447/rpc?%7B%22id%22 ... e%22%5D%7D
scriptname: "flashplayer.ins", special path: "P:\install\flashplayer\"
26.04.2010 16:18:34 JSON service request https://10.0.42.33:4447/rpc?%7B%22id%22 ... g%22%5D%7D
============ Version 4.8.8.1 WIN32 script "P:\install\flashplayer\flashplayer.ins"
start: 2010-04-26 16:18:35 (on client named as : "ops_po.btm.de")
[executing: "C:\Programme\opsi.org\preloginloader\opsi-winst\winst32.exe"]
system infos:
00:0C:29:F4:CF:20 - PC hardware address
OPS_PO.btm.de - IP name
10.0.42.99 - IP address
DEU - System default locale
LogLevel set to 2
Set $Temp$ = EnvVar("TEMP")
The value of the variable is now: "C:\WINDOWS\TEMP"
Set $OS$ = GetOS
The value of the variable is now: "Windows_NT"
Set $MinorOS$ = GetNTVersion
The value of the variable is now: "WinXP"
Set $ProductId$ = "flashplayer"
The value of the variable is now: "flashplayer"
Set $MinimumSpace$ = "50 MB"
The value of the variable is now: "50 MB"
If
Free on Disk C:: 15.684.673.536 bytes This is more than the required amount of 50.000.000 bytes
HasMinimumSpace ("C:", $MinimumSpace$) <<< result true
not(HasMinimumSpace ("C:", $MinimumSpace$)) <<< result false
Then
Else
Show product picture
If
Starting query if file exist ...
FileExists("P:\install\flashplayer\delsub.ins") <<< result true
Then
Start uninstall sub section
~~~~~~~ Start Sub ~~~~~~~ Sub "P:\install\flashplayer\delsub.ins"
If
Starting query if file exist ...
"C:\WINDOWS\system32\Macromed\Flash\uninstall_plugin.exe": File Error 2 (Das System kann die angegebene Datei nicht finden)
FileExists("C:\WINDOWS\system32\Macromed\Flash\uninstall_plugin.exe") <<< result false
Then
Else
No uninstall program found, start to install
EndIf
Section ending since next line is starting with "["
~~~~~~~ End Sub ~~~~~~~ Sub "P:\install\flashplayer\delsub.ins"
EndIf
If
$OS$ = "Windows_NT" <<< result true
( $OS$ = "Windows_NT" ) <<< result true
Then
Execution of Files_copy
Copying P:\install\flashplayer\files\ -----> C:\WINDOWS\TEMP\flashplayer\
0 File(s) found
No (non-directory) file with mask P:\install\flashplayer\files\*.* found
0 File(s) treated
Execution of Winbatch_unattended_install
Call "C:\WINDOWS\TEMP\flashplayer\install_flash_player.exe /s"
Waiting until the called process is finished
Error: C:\WINDOWS\TEMP\flashplayer\install_flash_player.exe /s .... ShellExecute Error 2 (Das System kann die angegebene Datei nicht finden)
Call "C:\WINDOWS\TEMP\flashplayer\install_flash_player_ax.exe /s"
Waiting until the called process is finished
Error: C:\WINDOWS\TEMP\flashplayer\install_flash_player_ax.exe /s .... ShellExecute Error 2 (Das System kann die angegebene Datei nicht finden)
Warning: Section "Files_Delete" does not exist or is empty
EndIf
If
IniVar("NoAutoUpdate") = "on" <<< result false
(IniVar("NoAutoUpdate") = "on") <<< result false
Then
Else
Execution of Files_delete_noautoupdate
Delete recursively "C:\WINDOWS\system32\Macromed\Flash\mms.cfg"
Search "C:\WINDOWS\system32\Macromed\Flash\"
EndIf
EndIf
___________________
2 errors
1 warning
============ Version 4.8.8.1 WIN32 script "P:\install\flashplayer\delsub.ins"
start: 2010-04-26 16:21:35 (on client named as : "ops_po.btm.de")
[executing: "C:\Programme\opsi.org\preloginloader\opsi-winst\winst32.exe"]
system infos:
00:0C:29:F4:CF:20 - PC hardware address
OPS_PO.btm.de - IP name
10.0.42.99 - IP address
DEU - System default locale
Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion] opened
Key closed
___________________
0 errors
0 warnings
26.04.2010 16:21:35 JSON service request https://10.0.42.33:4447/rpc?%7B%22id%22 ... d%22%5D%7D
26.04.2010 16:21:35 JSON service request https://10.0.42.33:4447/rpc?%7B%22id%22 ... e%22%5D%7D
Registry key [HKLM\SOFTWARE\opsi.org\winst] opened
Variable "RebootRequested" is keeping its value "0"
Variable "LastLogFilename" is keeping its value "c:\tmp\instlog.txt"
Variable "ContinueLogFile" is keeping its value "0"
Variable "NumberOfErrors" not found. Code: 2
Key flushed
Key closed
Registry key [HKLM\SOFTWARE\opsi.org\winst] opened
Key closed
Re: Fehler Skript Flashplayer
gibts die 2 Datein install_flash_player.exe und install_flash_player_ax.exe auf dem OPSI Server unter
opt/pcbin/install/flashplayer/files/ ?
Wenn nicht waren die bei dem Paket nicht dabei und du musst die runterladen und in den Ordner kopieren.
opt/pcbin/install/flashplayer/files/ ?
Wenn nicht waren die bei dem Paket nicht dabei und du musst die runterladen und in den Ordner kopieren.
Grüße
minidump
Alles ist am Ende gut. Und wenn es nicht gut ist, dann ist es nicht das Ende.
minidump
Alles ist am Ende gut. Und wenn es nicht gut ist, dann ist es nicht das Ende.
Re: Fehler Skript Flashplayer
Beide Dateien sowohl die install_flash_player.exe sowie die install_flash_player_ax.exe sind im Verzeichnis
Client_Data vorhanden und haben das Recht 0770 Besitzer Root.
Client_Data vorhanden und haben das Recht 0770 Besitzer Root.
Re: Fehler Skript Flashplayer
aber sind sie auch in dem Verzeichnis das ich oben erwähnt habe?
Grüße
minidump
Alles ist am Ende gut. Und wenn es nicht gut ist, dann ist es nicht das Ende.
minidump
Alles ist am Ende gut. Und wenn es nicht gut ist, dann ist es nicht das Ende.
Re: Fehler Skript Flashplayer
Das Verzeichnis gab es nicht ...
Das habe ich nun von Hand angelegt und die Dateien dort hinein kopiert.
Bin bislang davon ausgegangen das opsi-newprod oder opsi-makeproductfile das passend anlegt....
Installation läuft nun - erstmal DANKE hierfür !!!
Problem 1 ist aber immer noch vorhanden was die sub delsub.ins betrifft.
Das habe ich nun von Hand angelegt und die Dateien dort hinein kopiert.
Bin bislang davon ausgegangen das opsi-newprod oder opsi-makeproductfile das passend anlegt....
Installation läuft nun - erstmal DANKE hierfür !!!
Problem 1 ist aber immer noch vorhanden was die sub delsub.ins betrifft.
Re: Fehler Skript Flashplayer
mach mal den ";" vor "Message" im delsub.ini weg, weiß nicht warum das auskommentiert ist.
opsi-newprod -> startet die GUI zum Erstellen neuer Pakete
opsi-makeproductfile -> erstellt aus dem mit opsi-newprod erstellten Verzeichnis das Installationpaket *.opsi
Der Befehl der die Ordner unter /opt/pcbin/install anlegen sollte heißt
opsi-package-manager -i *.opsi
Vielleicht stimmt auch mit dem Installationspaket irgendwas nicht, weißt nicht.
opsi-newprod -> startet die GUI zum Erstellen neuer Pakete
opsi-makeproductfile -> erstellt aus dem mit opsi-newprod erstellten Verzeichnis das Installationpaket *.opsi
Der Befehl der die Ordner unter /opt/pcbin/install anlegen sollte heißt
opsi-package-manager -i *.opsi
Vielleicht stimmt auch mit dem Installationspaket irgendwas nicht, weißt nicht.
Grüße
minidump
Alles ist am Ende gut. Und wenn es nicht gut ist, dann ist es nicht das Ende.
minidump
Alles ist am Ende gut. Und wenn es nicht gut ist, dann ist es nicht das Ende.
Re: Fehler Skript Flashplayer
ja sicherlich
opsi-package-manager -i *.opsi hab ich auch ausgeführt
hat ja auch das verzeichnis ansich erstellt aber nich das untervereichnis /files.
denke der skript den ich hier runter gezogen habe is einfach buggy.
das ; hab ich vor das message gestellt um einfach diese message auszublenden die den fehler verursacht
war aber noch nicht die lösung des problems des delsub.ins.
nachdem ich nun das /files von hand angelegt habe und auch die beiden inst dateien da rein geschoben habe wird flash auf den clients
auch installiert - jedoch mit dieser unschönen fehlermeldung durch den delsub.ins
opsi-package-manager -i *.opsi hab ich auch ausgeführt
hat ja auch das verzeichnis ansich erstellt aber nich das untervereichnis /files.
denke der skript den ich hier runter gezogen habe is einfach buggy.
das ; hab ich vor das message gestellt um einfach diese message auszublenden die den fehler verursacht
war aber noch nicht die lösung des problems des delsub.ins.
nachdem ich nun das /files von hand angelegt habe und auch die beiden inst dateien da rein geschoben habe wird flash auf den clients
auch installiert - jedoch mit dieser unschönen fehlermeldung durch den delsub.ins
Re: Fehler Skript Flashplayer
meinst du die Fehlermeldung:
Für mich sieht es so aus als käme die Fehlermeldung gerade wegen dem ";"
Code: Alles auswählen
Sektion Sub "P:\install\flashplayer\delsub.ins" (Kommando in Zeile 2):
i>>?;Message
undefined
Grüße
minidump
Alles ist am Ende gut. Und wenn es nicht gut ist, dann ist es nicht das Ende.
minidump
Alles ist am Ende gut. Und wenn es nicht gut ist, dann ist es nicht das Ende.
Re: Fehler Skript Flashplayer
aktuell schaut delsub.ins wie folgt aus:
______________________
Message "Uninstalling " + $ProductId$ + " ..."
if FileExists("%System%\Macromed\Flash\uninstall_plugin.exe")
comment "Uninstall program found, starting uninstall"
Winbatch_uninstall
sub_check_exitcode
else
comment "No uninstall program found, start to install"
endif
[Winbatch_uninstall]
"%System%\Macromed\Flash\uninstall_plugin.exe" /SILENT /SUPPRESSMSGBOXES /NORESTART
"%System%\Macromed\Flash\uninstall_activeX.exe" /SILENT /SUPPRESSMSGBOXES /NORESTART
[Sub_check_exitcode]
comment "Test for installation success via exit code"
DefVar $ExitCode$
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
_______________________
Fehlermeldung ist immer noch die Geiche..........
______________________
Message "Uninstalling " + $ProductId$ + " ..."
if FileExists("%System%\Macromed\Flash\uninstall_plugin.exe")
comment "Uninstall program found, starting uninstall"
Winbatch_uninstall
sub_check_exitcode
else
comment "No uninstall program found, start to install"
endif
[Winbatch_uninstall]
"%System%\Macromed\Flash\uninstall_plugin.exe" /SILENT /SUPPRESSMSGBOXES /NORESTART
"%System%\Macromed\Flash\uninstall_activeX.exe" /SILENT /SUPPRESSMSGBOXES /NORESTART
[Sub_check_exitcode]
comment "Test for installation success via exit code"
DefVar $ExitCode$
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
_______________________
Fehlermeldung ist immer noch die Geiche..........
Re: Fehler Skript Flashplayer
wo hast du die delsub.ins angepasst?
Schau mal bitte ob der ";" auch in
Es gibt ja 2 Verzeichnisse, einmal /home/opsiproducts
Hier liegen die *opsi Dateien und die Ordnerstrukturen aus denen du die *.opsi Pakete machst, dann gibts noch /opt/pcbin/install, hier liegen die Dateien die während der Paketinstallation verwendet werden.
Schau mal bitte ob der ";" auch in
Code: Alles auswählen
opt/pcbin/install/flashplayer/delsub.ins
Hier liegen die *opsi Dateien und die Ordnerstrukturen aus denen du die *.opsi Pakete machst, dann gibts noch /opt/pcbin/install, hier liegen die Dateien die während der Paketinstallation verwendet werden.
Grüße
minidump
Alles ist am Ende gut. Und wenn es nicht gut ist, dann ist es nicht das Ende.
minidump
Alles ist am Ende gut. Und wenn es nicht gut ist, dann ist es nicht das Ende.