Seite 1 von 1
Installationspfad Problem
Verfasst: 20 Jun 2011, 13:13
von zimb
Hallo,
ich habe ein Problem mit einem von mir geschriebenen WINS-Skript für die Installation von 7-Zip.
Das Problem ist, dass scheinbar die Variable für den Installationspfad also %ProgramFiles64Dir% falsch interpretiert wird.
Das Problem tritt nur auf, wenn der Aufruf des Skripts über den OPSI-Agent erfolgt
Führe ich das Setup.ins direkt am Client über die Opsi-Winst Konsole aus, wird die Anwendung fehlerfrei im Richtige Pfad installiert.
"C:\Program Files"
Über den Opsi-Agent wird die Anwendung immer im x86 Pfad installiert.
"C:\Program Files (x86)"
Das gleiche Passiert auch bei der Variablen %ProgramFilesSysnativeDir%.
Ich kann allerdings in der Log sehen, dass die Variablen bei den IF-Abfragen fehlerfrei interpretiert werden.
Kann mir eventuell jemand bei dem Problem helfen?
Mit freundlichem Gruß Zimb
Code: Alles auswählen
[Initial]
Message "7-Zip 9.20"
;Paket: PDF Creator
;Version: 9.20
;Author:
SetLogLevel=5
ScriptErrorMessages=on
ExitOnError=false
TraceMode=off
requiredWinstVersion >= "4.3"
;-------------------------------------------------------------------------------------
;-------------------------------------------------------------------------------------
[Actions]
Message "7-Zip 9.20 wird installiert..."
ShowBitmap "%ScriptPath%\files\logo.png" "7-Zip 9.20"
DefVar $OS$
DefVar $SystemType$
Set $OS$ = GetOS
Set $SystemType$ = GetSystemType
if not (HasMinimumspace ("%SYSTEMDRIVE%", "100 MB"))
Log Error "Es ist nicht genug Platz auf dem Laufwerk %SYSTEMDRIVE%, erforderlich sind 100 MB"
isFatalError
else
;Welche Architektur?
if ($SystemType$ = "64 Bit System")
if FileExists("%ProgramFilesSysnativeDir%\7-Zip\7zFM.exe")
comment "Produkt bereits vorhanden..."
else
Winbatch_install_x64
endif
else
if ($SystemType$ = "x86 System")
if FileExists("%ProgramFilesSysnativeDir%\7-Zip\7zFM.exe")
comment "Produkt bereits vorhanden..."
else
Winbatch_install_x86
endif
else
Log Error "Weder x86 noch x64 System Fehler!!!"
isFatalError
endif
endif
endif
[Winbatch_install_x86]
msiexec /i "%scriptpath%\files\7z920x86.msi" /q INSTALLDIR="%ProgramFilesSysnativeDir%\7-Zip"
[Winbatch_install_x64]
msiexec /i "%scriptpath%\files\7z920x64.msi" /q INSTALLDIR="%ProgramFilesSysnativeDir%\7-Zip"
Re: Installationspfad Problem
Verfasst: 20 Jun 2011, 14:34
von bell
Hallo,
Könntest du die Log-Datei auch posten?
MfG Bell
Re: Installationspfad Problem
Verfasst: 20 Jun 2011, 15:48
von zimb
Klar doch
Hier das instlog
Code: Alles auswählen
[1] [20.06.2011 15:44:43] opsi-winst 4.10.8.15 started at 20.06.2011 15:44:42
[6] [20.06.2011 15:44:43] JSON service request https://10.50.100.164:4447/rpc getDepotId
[6] [20.06.2011 15:44:43] JSON service request https://10.50.100.164:4447/rpc backend_setOptions
[6] [20.06.2011 15:44:43] JSON service request https://10.50.100.164:4447/rpc productOnClient_getObjects
[1] [20.06.2011 15:44:43] action entry : opsi-client-agent=none
[1] [20.06.2011 15:44:43] state entry : opsi-client-agent=installed
[1] [20.06.2011 15:44:43] action entry : adobereader10.0=none
[1] [20.06.2011 15:44:43] state entry : adobereader10.0=not_installed
[1] [20.06.2011 15:44:43] action entry : msoffice2010std=none
[1] [20.06.2011 15:44:43] state entry : msoffice2010std=installed
[1] [20.06.2011 15:44:43] action entry : opsi-winst=none
[1] [20.06.2011 15:44:43] state entry : opsi-winst=installed
[1] [20.06.2011 15:44:43] action entry : javavm=none
[1] [20.06.2011 15:44:43] state entry : javavm=unknown
[1] [20.06.2011 15:44:43] action entry : hwaudit=none
[1] [20.06.2011 15:44:43] state entry : hwaudit=installed
[1] [20.06.2011 15:44:43] action entry : adobeflash10=none
[1] [20.06.2011 15:44:43] state entry : adobeflash10=installed
[1] [20.06.2011 15:44:43] action entry : pdf-creator1.20=none
[1] [20.06.2011 15:44:43] state entry : pdf-creator1.20=installed
[1] [20.06.2011 15:44:43] action entry : 7zip920=setup
[1] [20.06.2011 15:44:43] state entry : 7zip920=installed
[1] [20.06.2011 15:44:43] action entry : xnview1.97.8=none
[1] [20.06.2011 15:44:43] state entry : xnview1.97.8=installed
[1] [20.06.2011 15:44:43] action entry : adobereader10.10=none
[1] [20.06.2011 15:44:43] state entry : adobereader10.10=installed
[1] [20.06.2011 15:44:43] action entry : productviewexpress91=none
[1] [20.06.2011 15:44:43] state entry : productviewexpress91=installed
[1] [20.06.2011 15:44:43] action entry : swaudit=none
[1] [20.06.2011 15:44:43] state entry : swaudit=installed
[1] [20.06.2011 15:44:43] Product : opsi-client-agent
[1] [20.06.2011 15:44:43] Product : adobereader10.0
[1] [20.06.2011 15:44:43] Product : msoffice2010std
[1] [20.06.2011 15:44:43] Product : opsi-winst
[1] [20.06.2011 15:44:43] Product : javavm
[1] [20.06.2011 15:44:43] Product : hwaudit
[1] [20.06.2011 15:44:43] Product : adobeflash10
[1] [20.06.2011 15:44:43] Product : pdf-creator1.20
[1] [20.06.2011 15:44:43] Product : 7zip920
[1] [20.06.2011 15:44:43] Product : xnview1.97.8
[1] [20.06.2011 15:44:43] Product : adobereader10.10
[1] [20.06.2011 15:44:43] Product : productviewexpress91
[1] [20.06.2011 15:44:43] Product : swaudit
[1] [20.06.2011 15:44:43] Product sequence calculated by opsi-server
[5] [20.06.2011 15:44:43] Computername:pc760w702.firma.de
[5] [20.06.2011 15:44:43] Computername according to Environment Variable :PC760W702
[5] [20.06.2011 15:44:43] opsi service URL https://10.50.100.164:4447
[5] [20.06.2011 15:44:43] Depot path: p:\install
[5] [20.06.2011 15:44:43]
[6] [20.06.2011 15:44:43] bootmode from registry: BKSTD
[5] [20.06.2011 15:44:43] bootmode BKSTD
[5] [20.06.2011 15:44:43] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[5] [20.06.2011 15:44:43] Resolved sequence of products (20.06.2011 15:44:43):
[5] [20.06.2011 15:44:43] Product 8 7zip920 : setup
[5] [20.06.2011 15:44:43] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[6] [20.06.2011 15:44:43] JSON service request https://10.50.100.164:4447/rpc getProductProperties_hash
[6] [20.06.2011 15:44:43] JSON service request https://10.50.100.164:4447/rpc getProduct_hash
[1] [20.06.2011 15:44:43] in TOpsi4Data.initProduct : 7zip920
[6] [20.06.2011 15:44:43] JSON service request https://10.50.100.164:4447/rpc productOnClient_getObjects
[5] [20.06.2011 15:44:43] scriptname: "setup.ins", special path: "p:\install\7zip920\"
[6] [20.06.2011 15:44:43] JSON service request https://10.50.100.164:4447/rpc productOnClient_updateObject
[1] [20.06.2011 15:44:44]
[1] [20.06.2011 15:44:44] ============ Version 4.10.8.15 WIN32 script "p:\install\7zip920\setup.ins"
[1] [20.06.2011 15:44:44] start: 2011-06-20 15:44:44
[1] [20.06.2011 15:44:44] on client named "pc760w702.firma.de"
[1] [20.06.2011 15:44:44] user account "SYSTEM"
[1] [20.06.2011 15:44:44] [executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"]
[1] [20.06.2011 15:44:44] system infos:
[1] [20.06.2011 15:44:44] - PC hardware address
[1] [20.06.2011 15:44:44] PC760W702.firma.de - IP name
[1] [20.06.2011 15:44:44] 10.50.10.82 - IP address
[1] [20.06.2011 15:44:44] DEU - System default locale
[1] [20.06.2011 15:44:44] opsi service version : 4
[1] [20.06.2011 15:44:44]
[6] [20.06.2011 15:44:44] Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion] opened
[6] [20.06.2011 15:44:44] Key closed
[5] [20.06.2011 15:44:44] message 7-Zip 9.20
[1] [20.06.2011 15:44:44] LogLevel was 6
[1] [20.06.2011 15:44:44] LogLevel set to 5
[5] [20.06.2011 15:44:44] message 7-Zip 9.20 wird installiert...
[5] [20.06.2011 15:44:44]
[5] [20.06.2011 15:44:44] Set $OS$ = GetOS
[5] [20.06.2011 15:44:44]
[5] [20.06.2011 15:44:44] Set $SystemType$ = GetSystemType
[5] [20.06.2011 15:44:44]
[5] [20.06.2011 15:44:44] If
[5] [20.06.2011 15:44:44] HasMinimumspace ("C:", "100 MB") <<< result true
[5] [20.06.2011 15:44:44] not (HasMinimumspace ("C:", "100 MB")) <<< result false
[5] [20.06.2011 15:44:44] Then
[5] [20.06.2011 15:44:44]
[5] [20.06.2011 15:44:44] Else
[5] [20.06.2011 15:44:44]
[5] [20.06.2011 15:44:44] If
[5] [20.06.2011 15:44:44] $SystemType$ = "64 Bit System" <<< result true
[5] [20.06.2011 15:44:44] ($SystemType$ = "64 Bit System") <<< result true
[5] [20.06.2011 15:44:44] Then
[5] [20.06.2011 15:44:44]
[5] [20.06.2011 15:44:44] If
[5] [20.06.2011 15:44:44] "C:\Program Files\7-Zip\7zFM.exe": File Error 3 (Das System kann den angegebenen Pfad nicht finden)
[5] [20.06.2011 15:44:44] FileExists("C:\Program Files\7-Zip\7zFM.exe") <<< result false
[5] [20.06.2011 15:44:44] Then
[5] [20.06.2011 15:44:44]
[5] [20.06.2011 15:44:44] Else
[5] [20.06.2011 15:44:44]
[5] [20.06.2011 15:44:44] Execution of Winbatch_install_x64
[5] [20.06.2011 15:44:45] EndIf
[5] [20.06.2011 15:44:45]
[5] [20.06.2011 15:44:45] Else
[5] [20.06.2011 15:44:45]
[5] [20.06.2011 15:44:45] If
[5] [20.06.2011 15:44:45] Then
[5] [20.06.2011 15:44:45]
[5] [20.06.2011 15:44:45] If
[5] [20.06.2011 15:44:45] Then
[5] [20.06.2011 15:44:45]
[5] [20.06.2011 15:44:45] Else
[5] [20.06.2011 15:44:45] EndIf
[5] [20.06.2011 15:44:45]
[5] [20.06.2011 15:44:45] Else
[5] [20.06.2011 15:44:45] EndIf
[5] [20.06.2011 15:44:45] EndIf
[5] [20.06.2011 15:44:45] EndIf
[1] [20.06.2011 15:44:45] ___________________
[1] [20.06.2011 15:44:45] script finished
[1] [20.06.2011 15:44:45] 0 errors
[1] [20.06.2011 15:44:45] 0 warnings
[1] [20.06.2011 15:44:45]
[1] [20.06.2011 15:44:45] installed Produkt: 7zip920 Version: 9.20-1
[1] [20.06.2011 15:44:45] opsi service version: 4
[1] [20.06.2011 15:44:45]
[1] [20.06.2011 15:44:45] get Update script name ...
[1] [20.06.2011 15:44:45] Update script name:
[1] [20.06.2011 15:44:45] Update script name:
[5] [20.06.2011 15:44:45] no script file name given
[1] [20.06.2011 15:44:45] we have no update script
[1] [20.06.2011 15:44:47] ============ winst Version 4.10.8.15 WIN32 is regularly exiting. Time 2011-06-20 15:44:47 .
Re: Installationspfad Problem
Verfasst: 20 Jun 2011, 16:31
von bell
Hallo,
Mh komisch, habe ich bisher noch nicht gehabt sowas. Was aber dem ganzen vieklleicht etwas helfen würde:
Code: Alles auswählen
[1] [20.06.2011 15:44:44] LogLevel was 6
[1] [20.06.2011 15:44:44] LogLevel set to 5
Loglevel mal hochstellen, dann schreibt ehr auch den Befehl in den Log.
MfG Bell
Re: Installationspfad Problem
Verfasst: 20 Jun 2011, 18:43
von d.oertel
Hi,
bitte mal oben den Loglevel auf 7 setzen und den Log erneut posten.
(So ist es schwer zu sehen ob der winst oder der msi mist baut)
Welches OS ?
gruss
d.oertel
Re: Installationspfad Problem
Verfasst: 21 Jun 2011, 10:50
von zimb
Hallo,
es handelt sich um ein Windows 7 x64 Professional Betriebssystem.
Interessant ist, dass der Befehl richtig an msiexec Übergeben wird, die Installation dennoch in den Pfad "Program Filex x86" erfolgt.
Gruß Zimb
Code: Alles auswählen
[1] [21.06.2011 10:45:40] opsi-winst 4.10.8.15 started at 21.06.2011 10:45:39
[6] [21.06.2011 10:45:40] JSON service request https://10.50.100.164:4447/rpc getDepotId
[6] [21.06.2011 10:45:41] JSON service request https://10.50.100.164:4447/rpc backend_setOptions
[6] [21.06.2011 10:45:41] JSON service request https://10.50.100.164:4447/rpc productOnClient_getObjects
[1] [21.06.2011 10:45:41] action entry : opsi-client-agent=none
[1] [21.06.2011 10:45:41] state entry : opsi-client-agent=installed
[1] [21.06.2011 10:45:41] action entry : adobereader10.0=none
[1] [21.06.2011 10:45:41] state entry : adobereader10.0=not_installed
[1] [21.06.2011 10:45:41] action entry : msoffice2010std=none
[1] [21.06.2011 10:45:41] state entry : msoffice2010std=installed
[1] [21.06.2011 10:45:41] action entry : opsi-winst=none
[1] [21.06.2011 10:45:41] state entry : opsi-winst=installed
[1] [21.06.2011 10:45:41] action entry : vlc=setup
[1] [21.06.2011 10:45:41] state entry : vlc=not_installed
[1] [21.06.2011 10:45:41] action entry : javavm=none
[1] [21.06.2011 10:45:41] state entry : javavm=unknown
[1] [21.06.2011 10:45:41] action entry : hwaudit=none
[1] [21.06.2011 10:45:41] state entry : hwaudit=installed
[1] [21.06.2011 10:45:41] action entry : adobeflash10=none
[1] [21.06.2011 10:45:41] state entry : adobeflash10=installed
[1] [21.06.2011 10:45:41] action entry : pdf-creator1.20=none
[1] [21.06.2011 10:45:41] state entry : pdf-creator1.20=installed
[1] [21.06.2011 10:45:41] action entry : 7zip920=setup
[1] [21.06.2011 10:45:41] state entry : 7zip920=installed
[1] [21.06.2011 10:45:41] action entry : xnview1.97.8=none
[1] [21.06.2011 10:45:41] state entry : xnview1.97.8=installed
[1] [21.06.2011 10:45:41] action entry : adobereader10.10=none
[1] [21.06.2011 10:45:41] state entry : adobereader10.10=installed
[1] [21.06.2011 10:45:41] action entry : productviewexpress91=none
[1] [21.06.2011 10:45:41] state entry : productviewexpress91=installed
[1] [21.06.2011 10:45:41] action entry : swaudit=none
[1] [21.06.2011 10:45:41] state entry : swaudit=installed
[1] [21.06.2011 10:45:41] Product : opsi-client-agent
[1] [21.06.2011 10:45:41] Product : adobereader10.0
[1] [21.06.2011 10:45:41] Product : msoffice2010std
[1] [21.06.2011 10:45:41] Product : opsi-winst
[1] [21.06.2011 10:45:41] Product : vlc
[1] [21.06.2011 10:45:41] Product : javavm
[1] [21.06.2011 10:45:41] Product : hwaudit
[1] [21.06.2011 10:45:41] Product : adobeflash10
[1] [21.06.2011 10:45:41] Product : pdf-creator1.20
[1] [21.06.2011 10:45:41] Product : 7zip920
[1] [21.06.2011 10:45:41] Product : xnview1.97.8
[1] [21.06.2011 10:45:41] Product : adobereader10.10
[1] [21.06.2011 10:45:41] Product : productviewexpress91
[1] [21.06.2011 10:45:41] Product : swaudit
[1] [21.06.2011 10:45:41] Product sequence calculated by opsi-server
[5] [21.06.2011 10:45:41] Computername:pc760w702.firma.de
[5] [21.06.2011 10:45:41] Computername according to Environment Variable :PC760W702
[5] [21.06.2011 10:45:41] opsi service URL https://10.50.100.164:4447
[5] [21.06.2011 10:45:41] Depot path: p:\install
[5] [21.06.2011 10:45:41]
[6] [21.06.2011 10:45:41] bootmode from registry: BKSTD
[5] [21.06.2011 10:45:41] bootmode BKSTD
[5] [21.06.2011 10:45:41] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[5] [21.06.2011 10:45:41] Resolved sequence of products (21.06.2011 10:45:41):
[5] [21.06.2011 10:45:41] Product 4 vlc : setup
[5] [21.06.2011 10:45:41] Product 9 7zip920 : setup
[5] [21.06.2011 10:45:41] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[6] [21.06.2011 10:45:41] JSON service request https://10.50.100.164:4447/rpc getProductProperties_hash
[6] [21.06.2011 10:45:41] JSON service request https://10.50.100.164:4447/rpc getProduct_hash
[1] [21.06.2011 10:45:41] in TOpsi4Data.initProduct : vlc
[6] [21.06.2011 10:45:41] JSON service request https://10.50.100.164:4447/rpc productOnClient_getObjects
[5] [21.06.2011 10:45:41] scriptname: "setup.ins", special path: "p:\install\vlc\"
[6] [21.06.2011 10:45:41] JSON service request https://10.50.100.164:4447/rpc productOnClient_updateObject
[1] [21.06.2011 10:45:41]
[1] [21.06.2011 10:45:41] ============ Version 4.10.8.15 WIN32 script "p:\install\vlc\setup.ins"
[1] [21.06.2011 10:45:41] start: 2011-06-21 10:45:41
[1] [21.06.2011 10:45:41] on client named "pc760w702.firma.de"
[1] [21.06.2011 10:45:41] user account "SYSTEM"
[1] [21.06.2011 10:45:41] [executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"]
[1] [21.06.2011 10:45:41] system infos:
[1] [21.06.2011 10:45:41] - PC hardware address
[1] [21.06.2011 10:45:41] PC760W702.firma.de - IP name
[1] [21.06.2011 10:45:41] 10.50.10.82 - IP address
[1] [21.06.2011 10:45:41] DEU - System default locale
[1] [21.06.2011 10:45:41] opsi service version : 4
[1] [21.06.2011 10:45:41]
[6] [21.06.2011 10:45:41] Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion] opened
[6] [21.06.2011 10:45:41] Key closed
[5] [21.06.2011 10:45:41] message VLC-Player 1.1.10
[1] [21.06.2011 10:45:41] LogLevel was 6
[1] [21.06.2011 10:45:41] LogLevel set to 2
[1] [21.06.2011 10:45:42] ___________________
[1] [21.06.2011 10:45:42] script finished
[1] [21.06.2011 10:45:42] 0 errors
[1] [21.06.2011 10:45:42] 0 warnings
[1] [21.06.2011 10:45:42]
[1] [21.06.2011 10:45:42] installed Produkt: vlc Version: 1.1.10-1
[1] [21.06.2011 10:45:42] opsi service version: 4
[1] [21.06.2011 10:45:42]
[1] [21.06.2011 10:45:42] get Update script name ...
[1] [21.06.2011 10:45:42] Update script name:
[1] [21.06.2011 10:45:42] Update script name:
[1] [21.06.2011 10:45:42] we have no update script
[1] [21.06.2011 10:45:42] in TOpsi4Data.initProduct : 7zip920
[1] [21.06.2011 10:45:42]
[1] [21.06.2011 10:45:42] ============ Version 4.10.8.15 WIN32 script "p:\install\7zip920\setup.ins"
[1] [21.06.2011 10:45:42] start: 2011-06-21 10:45:42
[1] [21.06.2011 10:45:42] on client named "pc760w702.firma.de"
[1] [21.06.2011 10:45:42] user account "SYSTEM"
[1] [21.06.2011 10:45:42] [executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"]
[1] [21.06.2011 10:45:42] system infos:
[1] [21.06.2011 10:45:42] - PC hardware address
[1] [21.06.2011 10:45:42] PC760W702.firma.de - IP name
[1] [21.06.2011 10:45:42] 10.50.10.82 - IP address
[1] [21.06.2011 10:45:42] DEU - System default locale
[1] [21.06.2011 10:45:42] opsi service version : 4
[1] [21.06.2011 10:45:42]
[1] [21.06.2011 10:45:42] LogLevel was 2
[1] [21.06.2011 10:45:42] LogLevel set to 7
[6] [21.06.2011 10:45:42] wInst has version 4.10.8.15, required is : >= 4.3
[5] [21.06.2011 10:45:42] message 7-Zip 9.20 wird installiert...
[5] [21.06.2011 10:45:42]
[5] [21.06.2011 10:45:42] Set $OS$ = GetOS
[6] [21.06.2011 10:45:42] The value of the variable "$OS$" is now: "Windows_NT"
[5] [21.06.2011 10:45:42]
[5] [21.06.2011 10:45:42] Set $SystemType$ = GetSystemType
[6] [21.06.2011 10:45:42] The value of the variable "$SystemType$" is now: "64 Bit System"
[5] [21.06.2011 10:45:42]
[5] [21.06.2011 10:45:42] If
[6] [21.06.2011 10:45:42] Free on Disk C:: 16.570.880.000 bytes This is more than the required amount of 100.000.000 bytes
[5] [21.06.2011 10:45:42] HasMinimumspace ("C:", "100 MB") <<< result true
[5] [21.06.2011 10:45:42] not (HasMinimumspace ("C:", "100 MB")) <<< result false
[5] [21.06.2011 10:45:42] Then
[5] [21.06.2011 10:45:42]
[5] [21.06.2011 10:45:42] Else
[5] [21.06.2011 10:45:42]
[5] [21.06.2011 10:45:42] If
[5] [21.06.2011 10:45:42] $SystemType$ = "64 Bit System" <<< result true
[5] [21.06.2011 10:45:42] ($SystemType$ = "64 Bit System") <<< result true
[5] [21.06.2011 10:45:42] Then
[5] [21.06.2011 10:45:42]
[5] [21.06.2011 10:45:42] If
[6] [21.06.2011 10:45:42] Starting query if file exist ...
[5] [21.06.2011 10:45:42] "C:\Program Files\7-Zip\7zFM.exe": File Error 3 (Das System kann den angegebenen Pfad nicht finden)
[5] [21.06.2011 10:45:42] FileExists("C:\Program Files\7-Zip\7zFM.exe") <<< result false
[5] [21.06.2011 10:45:42] Then
[5] [21.06.2011 10:45:42]
[5] [21.06.2011 10:45:42] Else
[5] [21.06.2011 10:45:42]
[5] [21.06.2011 10:45:42] Execution of Winbatch_install_x64
[6] [21.06.2011 10:45:42] Call "msiexec /i "p:\install\7zip920\files\7z920x64.msi" /q INSTALLDIR="C:\Program Files\7-Zip""
[6] [21.06.2011 10:45:42] Waiting until the called process is finished
[6] [21.06.2011 10:45:44] ExitCode 0 Executed process "msiexec /i "p:\install\7zip920\files\7z920x64.msi" /q INSTALLDIR="C:\Program Files\7-Zip""
[5] [21.06.2011 10:45:44] EndIf
[5] [21.06.2011 10:45:44]
[5] [21.06.2011 10:45:44] Else
[5] [21.06.2011 10:45:44]
[5] [21.06.2011 10:45:44] If
[5] [21.06.2011 10:45:44] Then
[5] [21.06.2011 10:45:44]
[5] [21.06.2011 10:45:44] If
[5] [21.06.2011 10:45:44] Then
[5] [21.06.2011 10:45:44]
[5] [21.06.2011 10:45:44] Else
[5] [21.06.2011 10:45:44] EndIf
[5] [21.06.2011 10:45:44]
[5] [21.06.2011 10:45:44] Else
[5] [21.06.2011 10:45:44] EndIf
[5] [21.06.2011 10:45:44] EndIf
[5] [21.06.2011 10:45:44] EndIf
[1] [21.06.2011 10:45:44] ___________________
[1] [21.06.2011 10:45:44] script finished
[1] [21.06.2011 10:45:44] 0 errors
[1] [21.06.2011 10:45:44] 0 warnings
[1] [21.06.2011 10:45:44]
[1] [21.06.2011 10:45:44] installed Produkt: 7zip920 Version: 9.20-1
[1] [21.06.2011 10:45:44] opsi service version: 4
[1] [21.06.2011 10:45:44]
[6] [21.06.2011 10:45:44] Delete "c:\tmp\_winstbat_*"
[6] [21.06.2011 10:45:44] Search "c:\tmp\"
[1] [21.06.2011 10:45:44] get Update script name ...
[1] [21.06.2011 10:45:44] Update script name:
[1] [21.06.2011 10:45:44] Update script name:
[5] [21.06.2011 10:45:44] no script file name given
[1] [21.06.2011 10:45:44] we have no update script
[6] [21.06.2011 10:45:44] JSON service request https://10.50.100.164:4447/rpc productOnClient_updateObject
[7] [21.06.2011 10:45:44] Registry started with redirection (32 Bit)
[6] [21.06.2011 10:45:44] Registry key [HKLM\SOFTWARE\opsi.org\winst] opened
[6] [21.06.2011 10:45:44] Variable "RebootRequested" is keeping its value "0"
[6] [21.06.2011 10:45:44] Variable "LastLogFilename" is keeping its value "c:\tmp\instlog.txt"
[6] [21.06.2011 10:45:44] Variable "ContinueLogFile" is keeping its value "0"
[6] [21.06.2011 10:45:44] Variable "NumberOfErrors" not found. Code: 2
[6] [21.06.2011 10:45:44] Key flushed
[6] [21.06.2011 10:45:44] Key closed
[7] [21.06.2011 10:45:44] Registry started with redirection (32 Bit)
[6] [21.06.2011 10:45:44] Registry key [HKLM\SOFTWARE\opsi.org\winst] opened
[6] [21.06.2011 10:45:44] Key closed
[1] [21.06.2011 10:45:45] ============ winst Version 4.10.8.15 WIN32 is regularly exiting. Time 2011-06-21 10:45:45 .
Re: Installationspfad Problem
Verfasst: 21 Jun 2011, 17:31
von matth46
Wird die msiexec-Aktion vielleicht im 32-Bit-CLI-Kontext ausgeführt (s.a. hier:
http://www.administrator.de/article/det ... ?nr=163699)?
Die Variablen für die Programmordner- bzw. Registryzugriffe werden m.E.n. nur in den Files-/Registry-Sektionen beachtet, probier doch mal den Aufruf per Exec_With und der cmd64.exe aus.
(Siehe auch im Winst-Handbuch, Seite 125 ff.)
Re: Installationspfad Problem
Verfasst: 22 Jun 2011, 14:25
von d.oertel
Hi,
nach meiner Erfahrung startet winbatch den 64-bit msiexec
gruss
d.oertel
Re: Installationspfad Problem
Verfasst: 23 Jun 2011, 12:00
von matth46
d.oertel hat geschrieben:Hi,
nach meiner Erfahrung startet winbatch den 64-bit msiexec
gruss
d.oertel
Erst ab wInst 4.11?
opsi-winst 4.11
####################################
opsi-winst (4.11.1.1) testing; urgency=low
* ErrorNumberMarked will no more set to NumberOfErrors at every section start fixes #219
* wisynth: CreateAndProcessScript: no interactive message if script not found. fixes #245
* wimain: TCentralForm.ProcessProdukt: Actionrequest to update after setup. fixes #191
* wifunc: new expandfilename(): wrapper to sysutils.filename which expands '' to the actual drive (no good idea)
* wifunc: TuibFileInstall.AllDelete: filename no more expanded (can lead to dangerous results)
* wispecfolder + wisynth: new constant %DefaultUserProfileDir% fixes #232
* wifunc: new internal function: runningasadmin
* wisynth: new boolean function runningAsAdmin and Warning in the log if not running as admin , fixes #93
* wifunc: TuibFileInstall.AllDelete: denied delete of c:, C:\, \, \\, c:\windows, c:\windows\system32
* wisynth: TuibInstScript.doXMLPatch: xmlfilename quoted
* error handling in wisynth: doOpsiServiceCall: checkAndRetrieveMap and checkAndRetrieveStringList
* error handling in wiglob: DependentAddStringList
* translation via i18n (german / french)
* TFBatchOberflaeche.FormClose: prevent closing via Alt-F4 ;fixes #263
* wisynth: execDOSBatch: now (winst /62Bit) or (winst /sysnative) or (winst /32Bit) allowed
this will execute the c:\windows\cmd64.exe. If this file not exists, it will be created
by copying the real 64Bit cmd.exe to c:\windows as cmd64.exe ;fixes #205
* upgrade to ssl Libraries 1.0.0.d (libeay32.dll, ssleay32.dll)
Re: Installationspfad Problem
Verfasst: 23 Jun 2011, 18:48
von d.oertel
Hi,
Erst ab wInst 4.11?
nein - per winbatch wird das angegebene Programm der API übergeben und die führt dann auch 64-Bit Programme aus.
Anders aus gedrückt: execwith übergibt intern den aufruf dem selben Mechanismus wie wie winbatch.
Von daher sollte winbatch-> msiexec oder execwith->cmd64.exe->msiexec keinen Unterschied machen.
wisynth: execDOSBatch: now (winst /62Bit) or (winst /sysnative) or (winst /32Bit) allowed
this will execute the c:\windows\cmd64.exe. If this file not exists, it will be created
by copying the real 64Bit cmd.exe to c:\windows as cmd64.exe ;fixes #205
Das bedeutet zu gut deutsch, das ab winst 4.11.1.1 DosBatch Sektionen auch den /sysnative bzw. /64bit Parameter kennen,
genaueres demnächst im opsi-winst Handbuch.
gruss
d.oertel