Probleme mit der Installation von AVG 2012

Antworten
geqoo
Beiträge: 6
Registriert: 15 Okt 2012, 09:11

Probleme mit der Installation von AVG 2012

Beitrag von geqoo »

Guten morgen liebe Community,

Ich versuche hier seit gestern krampfhaft, AVG 2012 Antivirus Business Edition als Localboot zum Laufen zu bekommen.

Folgende Struktur habe ich unter /home/opsiproducts/avg2012 im Ordner CLIENT_DATA:
avg_ipw_x86_all_2012.exe
avg_ipw_x64_all_2012.exe
avg_logo.png
AvgSetup.bat
AvgSetup.ini

Und hier noch die Dateiinhalte:

Avg.ins

Code: Alles auswählen

[Initial]
Message=Installiere AVG  ......
StayOnTop=true
LogLevel=2
ExitOnError=false
ScriptErrorMessages=on
TraceMode=off


[Aktionen]
ShowBitmap /1 "%scriptpath%\avg_logo.png" "AVG Antivirus 2012"

Files_get
DosInAnIcon_install
Files_throw


[Files_get]
delete -s "c:\setup\avg\"
copy -s "%SCRIPTPATH%\*.*" "c:\setup\avg\"

[DosInAnIcon_install]
C:\setup\avg\AvgSetup.bat


[Files_throw]
delete -s "c:\setup\avg"
AvgSetup.bat
Die habe ich mittels AVG Admin-Konsole erstellt und ein klein wenig umgebaut.

Code: Alles auswählen

@ECHO OFF
REM AVG Setup Batch
IF NOT DEFINED PROCESSOR_ARCHITEW6432 (
IF %PROCESSOR_ARCHITECTURE% EQU x86 (
SET SETUP="%CD%\avg_ipw_x86_all_2012.exe"
) ELSE (
SET SETUP="%CD%\avg_ipw_x64_all_2012.exe"
)) ELSE (
SET SETUP="%CD%\avg_ipw_x64_all_2012.exe"
)
IF NOT EXIST %SETUP% GOTO NoSetup

REM Start AVG Setup
%SETUP% /ConfigFilePath="%CD%\AvgSetup.ini" %1 %2 %3 %4 %5 %6 %7 %8 %9

if %ERRORLEVEL% EQU 1 goto AvgErr
goto End

:AvgErr
ECHO Error while installing AVG
goto End

:WrongPlatform
ECHO Installation file does not support this OS platform(x86 vs x64)
goto End

:NoSetup
ECHO Missing installation files

REM Continue batch processing
:End
ECHO setup returned %ERRORLEVEL%


AvgSetup.ini
Die habe ich auch mittels AVG Admin-Konsole erstellt und ein klein wenig umgebaut.

Code: Alles auswählen

LicenseKeyCoded=XXXXXXXXXX
AppMode=setup
CompanyName=XXXXX
StartedByAgent
NIW
ChangeBrowserSearchProvider=0
UILevel=Silent
IgnoreCompetitors
DontRestart
SelectedLanguage=0x407
DisableWinFW
InstallToolbar=0
InstallFeatures=fea_AlertMg;fea_SysTool;
RemoveFeatures=fea_GUI__Gadg;

So, das Ganze habe ich dann noch mit wInst getestet, die Installation vom AVG lief auch vollständig durch.

Ich das Alles also mit "opsi-makeproductfile" und "opsi-package-manager -i avg-2012-1.opsi" eingebunden und es dann zum Testen an einen Testclient übers Webinterface zur Installation eingetragen.
Der Rechner startet also, ruft seine Produktaktionen ab und beendet dann direkt - tut also nichts weiter - und schickt nur das Logfile zum Server: Das wars.
Hat da irgendjemand eine Idee, wie man das Ding zum Laufen bringen kann?

Hier noch 2 Logdateien:

/var/log/opsi/opsiconfd/ip-addresse.log

Code: Alles auswählen

[5] [Dec 04 14:31:10] Application 'opsiclientd version 4.0.71' on client '192.168.xx.zzz' did not send cookie (workers.py|161)
[5] [Dec 04 14:31:10] New session created (session.py|74)
[5] [Dec 04 14:31:10] Authorization request from host testserver.domain.local@192.168.xx.zzz (application: opsiclientd version 4.0.71) (workers.py|186)
[5] [Dec 04 14:31:10] -----> Executing: backend_getInterface() (JsonRpc.py|123)
[5] [Dec 04 14:31:10] -----> Executing: backend_info() (JsonRpc.py|123)
[5] [Dec 04 14:31:10] -----> Executing: backend_info() (JsonRpc.py|123)
[5] [Dec 04 14:31:10] -----> Executing: dispatcher_getConfig() (JsonRpc.py|123)
[5] [Dec 04 14:31:10] -----> Executing: accessControl_authenticated() (JsonRpc.py|123)
[5] [Dec 04 14:31:11] -----> Executing: backend_setOptions({u'addConfigStateDefaults': True}) (JsonRpc.py|123)
[5] [Dec 04 14:31:11] -----> Executing: configState_getObjects([], {'objectId': u'testserver.domain.local'}) (JsonRpc.py|123)
[5] [Dec 04 14:31:11] -----> Executing: productOnClient_getObjects([u'actionRequest'], {'actionRequest': [u'setup', u'uninstall', u'update', u'always', u'once', u'custom'], 'clientId': u'testserver.domain.local', 'productType': u'LocalbootProduct'}) (JsonRpc.py|123)
[5] [Dec 04 14:31:12] -----> Executing: backend_setOptions({u'addConfigStateDefaults': True}) (JsonRpc.py|123)
[5] [Dec 04 14:31:12] -----> Executing: configState_getObjects([], {'configId': [u'clientconfig.depot.dynamic', u'clientconfig.depot.protocol', u'opsiclientd.depot_server.depot_id', u'opsiclientd.depot_server.url'], 'objectId': u'testserver.domain.local'}) (JsonRpc.py|123)
[5] [Dec 04 14:31:12] -----> Executing: configState_getClientToDepotserver([], [u'testserver.domain.local'], True, [u'avg2012']) (JsonRpc.py|123)
[5] [Dec 04 14:31:12] -----> Executing: host_getObjects([], {'type': u'OpsiDepotserver', 'id': [u'debian.domain.local']}) (JsonRpc.py|123)
[5] [Dec 04 14:31:12] -----> Executing: user_getCredentials(u'pcpatch', u'testserver.domain.local') (JsonRpc.py|123)
[5] [Dec 04 14:31:12] -----> Executing: user_getCredentials(u'pcpatch', u'testserver.domain.local') (JsonRpc.py|123)
[5] [Dec 04 14:31:14] Application 'opsi-winst 4.11.2.9' on client '192.168.xx.zzz' did not send cookie (workers.py|161)
[5] [Dec 04 14:31:14] New session created (session.py|74)
[5] [Dec 04 14:31:14] Authorization request from host testserver.domain.local@192.168.xx.zzz (application: opsi-winst 4.11.2.9) (workers.py|186)
[5] [Dec 04 14:31:14] -----> Executing: backend_info() (JsonRpc.py|123)
[5] [Dec 04 14:31:14] -----> Executing: getDepotId(u'testserver.domain.local') (JsonRpc.py|123)
[5] [Dec 04 14:31:14] -----> Executing: backend_setOptions({u'processProductOnClientSequence': True}) (JsonRpc.py|123)
[5] [Dec 04 14:31:14] -----> Executing: productOnClient_getObjects(u'', {'productType': u'LocalbootProduct', 'clientId': u'testserver.domain.local'}) (JsonRpc.py|123)
[5] [Dec 04 14:31:15] -----> Executing: getProductProperties_hash(u'avg2012', u'testserver.domain.local') (JsonRpc.py|123)
[5] [Dec 04 14:31:15] -----> Executing: getProduct_hash(u'avg2012', u'debian.domain.local') (JsonRpc.py|123)
[5] [Dec 04 14:31:15] -----> Executing: productOnClient_getObjects(u'', {'productType': u'LocalbootProduct', 'clientId': u'testserver.domain.local', 'productId': u'avg2012'}) (JsonRpc.py|123)
[5] [Dec 04 14:31:15] -----> Executing: productOnClient_updateObject(<ProductOnClient clientId 'testserver.domain.local', productId 'avg2012', installationStatus 'unknown', actionRequest 'setup'>) (JsonRpc.py|123)
[5] [Dec 04 14:31:16] -----> Executing: setProductActionRequest(u'avg2012', u'testserver.domain.local', u'update') (JsonRpc.py|123)
[5] [Dec 04 14:31:16] -----> Executing: productOnClient_updateObject(<ProductOnClient clientId 'testserver.domain.local', productId 'avg2012', installationStatus 'installed', actionRequest 'none'>) (JsonRpc.py|123)
[5] [Dec 04 14:31:17] -----> Executing: writeLog(u'instlog', u'\n[5] [04.12.2012 14:43:20] --\n[5] [04.12.2012 14:43:20] --\n[1] [04.12.2012 14:43:20] opsi-winst 4.11.2.9 started at >>04.12.2012 14:43:20\n[1] [04.12.2012 14:43:20] startmessage winst...) (JsonRpc.py|123)
[5] [Dec 04 14:31:17] User 'testserver.domain.local' asked to close the session (workers.py|432)
[5] [Dec 04 14:31:17] Session 'c069xBoYLs6OODS7fKh0AhdnnNfAk4ps' from ip '192.168.xx.zzz', application 'opsi-winst 4.11.2.9' deleted (Session.py|211)
[5] [Dec 04 14:31:22] -----> Executing: backend_setOptions({u'addConfigStateDefaults': True}) (JsonRpc.py|123)
[5] [Dec 04 14:31:22] -----> Executing: configState_getObjects([], {'objectId': u'testserver.domain.local'}) (JsonRpc.py|123)
[5] [Dec 04 14:31:22] -----> Executing: log_write(u'clientconnect', u'[6] [Dec 04 14:43:09] [ opsiclientd                   ] Setting config value event_sync_completed{cache_ready}.reboot   (Config.pyo|197)\r\n[6] [Dec 04 14:43:09] [ opsiclientd     ...) (JsonRpc.py|123)
[5] [Dec 04 14:31:22] User 'testserver.domain.local' asked to close the session (workers.py|432)
[5] [Dec 04 14:31:22] Session 'HsJnONrPsz05e5Sk6uetF52Q4IKszzko' from ip '192.168.xx.zzz', application 'opsiclientd version 4.0.71' deleted (Session.py|211)
[5] [Dec 04 14:33:35] Session 'BFvfN3wk95qK1OlROQUG3wvglbGtI7jG' from ip '192.168.11.nnn', application 'opsi config editor 4.0.1.24' expired after 120 seconds (Session.py|184)
[5] [Dec 04 14:33:35] Session 'BFvfN3wk95qK1OlROQUG3wvglbGtI7jG' from ip '192.168.11.nnn', application 'opsi config editor 4.0.1.24' deleted (Session.py|211)
/var/log/opsi/instlog/testserver.domain.log

Code: Alles auswählen

[5] [04.12.2012 14:43:20] --
[5] [04.12.2012 14:43:20] --
[1] [04.12.2012 14:43:20] opsi-winst 4.11.2.9 started at >>04.12.2012 14:43:20
[1] [04.12.2012 14:43:20] startmessage winst created at CentralForm.FormCreate: 04.12.2012 14:43:20
[1] [04.12.2012 14:43:20] startmessage StartProgramModes and create log: 04.12.2012 14:43:20
[1] [04.12.2012 14:43:20] startmessage start opsi service connection: 04.12.2012 14:43:20
[1] [04.12.2012 14:43:20] startmessage create log: 04.12.2012 14:43:20
[6] [04.12.2012 14:43:20] JSON service request https://192.168.xx.yy:4447/rpc getDepotId
[6] [04.12.2012 14:43:21] JSON service request https://192.168.xx.yy:4447/rpc backend_setOptions
[6] [04.12.2012 14:43:21] JSON service request https://192.168.xx.yy:4447/rpc productOnClient_getObjects
[5] [04.12.2012 14:43:21] Computername:testserver.az04.local
[5] [04.12.2012 14:43:21] Computername according to Environment Variable :TESTSERVER
[5] [04.12.2012 14:43:21] opsi service URL https://192.168.xx.yy:4447
[5] [04.12.2012 14:43:21] Depot path:  p:\
[5] [04.12.2012 14:43:21] 
[5] [04.12.2012 14:43:21] bootmode BKSTD
[5] [04.12.2012 14:43:21] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[5] [04.12.2012 14:43:21] Resolved sequence of products (04.12.2012 14:43:21): 
[5] [04.12.2012 14:43:21] Product 1 	avg2012 : setup
[5] [04.12.2012 14:43:21] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[6] [04.12.2012 14:43:21] JSON service request https://192.168.xx.yy:4447/rpc getProductProperties_hash
[6] [04.12.2012 14:43:21] JSON service request https://192.168.xx.yy:4447/rpc getProduct_hash
[6] [04.12.2012 14:43:22] JSON service request https://192.168.xx.yy:4447/rpc productOnClient_getObjects
[5] [04.12.2012 14:43:22] scriptname: "avgsetup.ini", special path: "p:\avg2012\"
[6] [04.12.2012 14:43:22] JSON service request https://192.168.xx.yy:4447/rpc productOnClient_updateObject
[1] [04.12.2012 14:43:22] 
[1] [04.12.2012 14:43:22] ============ Version 4.11.2.9 WIN32 script "p:\avg2012\avgsetup.ini"
[1] [04.12.2012 14:43:22]              start: 2012-12-04  14:43:22 
[1] [04.12.2012 14:43:22]              on client named    "testserver.az04.local"
[1] [04.12.2012 14:43:22]              loggedin user    ""
[1] [04.12.2012 14:43:22]              winst running as    "pcpatch"
[1] [04.12.2012 14:43:22]              winst running with admin privileges
[1] [04.12.2012 14:43:22]              winst running in standard script mode
[1] [04.12.2012 14:43:22] [executing: "C:\Programme\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"]
[1] [04.12.2012 14:43:22] system infos:
[1] [04.12.2012 14:43:22] 00-26-B9-83-8A-89  -  PC hardware address
[1] [04.12.2012 14:43:22] testserver.AZ04.local  -  IP name 
[1] [04.12.2012 14:43:22] 192.168.xx.zzz  -  IP address
[1] [04.12.2012 14:43:22] DEU  -  System default locale 
[1] [04.12.2012 14:43:22] MS Windowds 5.1 32 Bit
[1] [04.12.2012 14:43:22] opsi service version : 4
[1] [04.12.2012 14:43:22] 
[6] [04.12.2012 14:43:22] Registry key [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion]  opened
[6] [04.12.2012 14:43:22] Key closed
[1] [04.12.2012 14:43:22] ___________________
[1] [04.12.2012 14:43:22] script finished
[1] [04.12.2012 14:43:22] 0 errors
[1] [04.12.2012 14:43:22] 0 warnings
[1] [04.12.2012 14:43:22] 
[1] [04.12.2012 14:43:22] installed Produkt: avg2012 Version: 2012-1
[1] [04.12.2012 14:43:22] 
[6] [04.12.2012 14:43:22] Delete "c:\opsi.org\tmp\_winstbat_*"
[6] [04.12.2012 14:43:22]   Search "c:\opsi.org\tmp\"
[6] [04.12.2012 14:43:22] JSON service request https://192.168.xx.yy:4447/rpc setProductActionRequest
[1] [04.12.2012 14:43:22] product "avg2012 set to update
[1] [04.12.2012 14:43:22] Update script name: 
[5] [04.12.2012 14:43:22] no script file name given
[1] [04.12.2012 14:43:22] we have no update script
[6] [04.12.2012 14:43:22] JSON service request https://192.168.xx.yy:4447/rpc productOnClient_updateObject
[6] [04.12.2012 14:43:22] Registry key [HKLM\SOFTWARE\opsi.org\winst]  opened
[6] [04.12.2012 14:43:22]                 Variable "RebootRequested"  is keeping its value "0"
[6] [04.12.2012 14:43:22]                 Variable "LastLogFilename"  is keeping its value "c:\tmp\instlog.txt"
[6] [04.12.2012 14:43:22]                 Variable "ContinueLogFile"  is keeping its value "0"
[6] [04.12.2012 14:43:22]                 Variable "NumberOfErrors"  is keeping its value "0"
[6] [04.12.2012 14:43:22]                 Key flushed
[6] [04.12.2012 14:43:22]                 Key closed
Benutzeravatar
Thomas_H
Beiträge: 525
Registriert: 09 Jun 2010, 11:57
Wohnort: Havelland

Re: Probleme mit der Installation von AVG 2012

Beitrag von Thomas_H »

Moinsens,

hast Du mal in der Wiki geschaut? Da ist bereits ein fertiges Script drin. Ist zwar für AVG free, aber sollte auch für die professionelle Version funktionieren.

Gruß

Thomas_H
Kennst Du schon die WIKI für OPSI-Scripte? Fertige Installationsscripte bekommen und ablegen unter OPSI-Wiki
Aus dem Glashaus :) : UIB bietet auch Schulungen und Supportverträge für Opsi an.
Bild
geqoo
Beiträge: 6
Registriert: 15 Okt 2012, 09:11

Re: Probleme mit der Installation von AVG 2012

Beitrag von geqoo »

Hallo,

das Script haben wir hier auch schon ausprobiert, läuft auf dasselbe Ergebnis hinaus.
Benutzeravatar
Thomas_H
Beiträge: 525
Registriert: 09 Jun 2010, 11:57
Wohnort: Havelland

Re: Probleme mit der Installation von AVG 2012

Beitrag von Thomas_H »

Moinsens...

ich würde mal sagen, dass das setup-Programm nicht gefunden wird. Du hast in der DOS-Batch-Datei drin:

Code: Alles auswählen

SET SETUP="%CD%\avg_ipw_x86_all_2012.exe"
Ist die Variable %CD% definiert? Bau doch mal ein "echo %CD% >> meinlog.file" mit ein und checke mal das Logfile.
Wenn Du die Installationsdatei zusammen mit der aus dem Wiki stammenden Scripten in ein Paket packst, müßte es eigentlich funktionieren. Unsere Tests mit der "professionellen" Kaufvariante als Testversion verliefen ebenfalls positiv.

Gruß

Thomas_H
Kennst Du schon die WIKI für OPSI-Scripte? Fertige Installationsscripte bekommen und ablegen unter OPSI-Wiki
Aus dem Glashaus :) : UIB bietet auch Schulungen und Supportverträge für Opsi an.
Bild
geqoo
Beiträge: 6
Registriert: 15 Okt 2012, 09:11

Re: Probleme mit der Installation von AVG 2012

Beitrag von geqoo »

Habe das Setup Script aus dem Wiki nochmal ausprobiert.

Immernoch dasselbe Ergebnis (mit %scriptpath% statt %cd%), er installiert einfach nichts.
Andere Befehle (z.B. Ordner anlegen) werden aber anscheinend auch nichtmal ausgeführt.
Benutzeravatar
Thomas_H
Beiträge: 525
Registriert: 09 Jun 2010, 11:57
Wohnort: Havelland

Re: Probleme mit der Installation von AVG 2012

Beitrag von Thomas_H »

Moinsens,

dann versuch mal den Tracemode auszuführen und gehe mal Schritt für Schritt durch die Installation... Vielleicht findest Du dann den Ausstiegspunkt.

Gruß

Thomas_H
Kennst Du schon die WIKI für OPSI-Scripte? Fertige Installationsscripte bekommen und ablegen unter OPSI-Wiki
Aus dem Glashaus :) : UIB bietet auch Schulungen und Supportverträge für Opsi an.
Bild
geqoo
Beiträge: 6
Registriert: 15 Okt 2012, 09:11

Re: Probleme mit der Installation von AVG 2012

Beitrag von geqoo »

Okay, das habe ich jetzt mal gemacht. Dabei ist aufgefallen, dass er die setup.ini nicht findet (die hieß bei uns avg.ini :? )

Dann hatten wir noch ein kleines Problem, das Konfigurationsscript über den Paramter /ScriptConfigFile mitgibt.
Funktioniert jetzt alles, danke für die Hilfe!
Benutzeravatar
Thomas_H
Beiträge: 525
Registriert: 09 Jun 2010, 11:57
Wohnort: Havelland

Re: Probleme mit der Installation von AVG 2012

Beitrag von Thomas_H »

Moinsens,

dann bitte die erste Nachricht dieses Threads editieren und die Betreffzeile auf "[Gelöst]..." setzen. Danke

Gruß

Thomas_H
Kennst Du schon die WIKI für OPSI-Scripte? Fertige Installationsscripte bekommen und ablegen unter OPSI-Wiki
Aus dem Glashaus :) : UIB bietet auch Schulungen und Supportverträge für Opsi an.
Bild
Antworten