Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
userspace:avg_antivirus [2011/10/27 10:39]
Thomas_H created
userspace:avg_antivirus [2013/07/15 11:33] (current)
Thomas_H
Line 1: Line 1:
 +====== **AVG Antivirus** ======
 +
 Tested with opsi 4.0.1\\ Tested with opsi 4.0.1\\
 requiredWinstVersion >= "​4.10.8.6"​\\ requiredWinstVersion >= "​4.10.8.6"​\\
-For 32 and 64 Bit+For 32 and 64 Bit\\ 
 +Installation files at http://​free.avg.com/​de-de/​download-free-all-product
  
 questions to:  //​[[hungerharke@gmx.de|Thomas_H]] 2011/10/27 10:30// questions to:  //​[[hungerharke@gmx.de|Thomas_H]] 2011/10/27 10:30//
 +
 +history:\\
 +changed: ​ --- //​[[hungerharke@gmx.de|Thomas_H]] 2013/07/15 11:21//
  
 This is the installation-script for AVG-Antivirus (Free), but it should also function with the payed version. If you have any experiences with the payed version combined with these scripts please let us know by the discussion-page. This is the installation-script for AVG-Antivirus (Free), but it should also function with the payed version. If you have any experiences with the payed version combined with these scripts please let us know by the discussion-page.
  
-==== setup.ins ​====+Tree:\\ 
 +<​code>​ 
 +avg.jpg\\ 
 +avg_x32.exe (the renamed downloaded ​setup-file for 32 Bit)\\ 
 +avg_x64.exe (the renamed downloaded setup-file for 64 Bit)\\ 
 +checkendofinstall.bat\\ 
 +delsub.ins\\ 
 +setup.ins\\ 
 +uninstall.ins 
 +</​code>​
  
 +
 +==== setup.ins ====
 <code winst> <code winst>
 +; 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] [Initial]
 LogLevel=9 LogLevel=9
Line 47: Line 69:
 Set $INST_SystemType$ = GetSystemType Set $INST_SystemType$ = GetSystemType
 set $INST_architecture$ = GetProductProperty("​install_architecture","​system specific"​) set $INST_architecture$ = GetProductProperty("​install_architecture","​system specific"​)
- 
- 
 Set $LogDir$ = "​%SystemDrive%\tmp"​ Set $LogDir$ = "​%SystemDrive%\tmp"​
 +
 ; ---------------------------------------------------------------- ; ----------------------------------------------------------------
 ; - Please edit the following values ​                            - ; - Please edit the following values ​                            -
Line 57: Line 78:
 ; no white space use '​-'​ as a seperator ; no white space use '​-'​ as a seperator
 Set $ProductId$ ​      = "​avg"​ Set $ProductId$ ​      = "​avg"​
-;Kein Punkt in der Versionsnummer! 4.30 ist 430, 4.40 ist 440 oder 4.51 ist 451! +Set $Version$ ​        = "2012"
-Set $Version$ ​        = "2011"+
 Set $MinimumSpace$ ​   = "30 MB" Set $MinimumSpace$ ​   = "30 MB"
 ; the path were we find the product after the installation ; the path were we find the product after the installation
Line 65: Line 85:
 Set $LicenseRequired$ = "​false"​ Set $LicenseRequired$ = "​false"​
 Set $LicensePool$ ​    = "​p_"​ + $ProductId$ Set $LicensePool$ ​    = "​p_"​ + $ProductId$
-Set $Inst_Prg32$ = "avg.exe"​ +Set $Inst_Prg32$ = "avg_free_x86.exe"​ 
-Set $Inst_Prg64$ = "avg_64.exe"+Set $Inst_Prg64$ = "avg_free_x64.exe"
 Set $Inst_Cmd$ = '/​UILevel=silent /​InstallToolbar=0 /​ChangeBrowserSearchProvider=0 /​InstallSidebar=0 /​ParticipateProductImprovement=0 /​DontRestart'​ Set $Inst_Cmd$ = '/​UILevel=silent /​InstallToolbar=0 /​ChangeBrowserSearchProvider=0 /​InstallSidebar=0 /​ParticipateProductImprovement=0 /​DontRestart'​
 +
 Set $Uninst_Cmd$ = " /​AppMode=SETUP /​Maintenance=2 /​UILevel=silent"​ Set $Uninst_Cmd$ = " /​AppMode=SETUP /​Maintenance=2 /​UILevel=silent"​
 Set $Uninst_Prg$ = "​\AVG10\avgmfapx.exe"​ Set $Uninst_Prg$ = "​\AVG10\avgmfapx.exe"​
Line 80: Line 101:
         ShowBitmap "​%ScriptPath%\"​ + $ProductId$ + "​.jpg"​ $ProductId$         ShowBitmap "​%ScriptPath%\"​ + $ProductId$ + "​.jpg"​ $ProductId$
  
-;       if FileExists("​%ScriptPath%\delsub.ins"​) +        ​if FileExists("​%ScriptPath%\delsub.ins"​) 
-;               comment "Start uninstall sub section"​ +                comment "Start uninstall sub section"​ 
-;               Sub "​%ScriptPath%\delsub.ins"​ +                Sub "​%ScriptPath%\delsub.ins"​ 
-;       endif+        endif
  
         if $LicenseRequired$ = "​true"​         if $LicenseRequired$ = "​true"​
Line 97: Line 118:
                 Winbatch_install_32                 Winbatch_install_32
                 Sub_check_exitcode                 Sub_check_exitcode
 +                ExitWindows /Reboot
         endif         endif
  
Line 104: Line 126:
                 Winbatch_install_64                 Winbatch_install_64
                 Sub_check_exitcode                 Sub_check_exitcode
 +                ExitWindows /Reboot
         endif         endif
  
Line 110: Line 133:
 [Winbatch_install_32] [Winbatch_install_32]
 %ScriptPath%\$Inst_Prg32$ $Inst_Cmd$ %ScriptPath%\$Inst_Prg32$ $Inst_Cmd$
 +"​%ScriptPath%\checkendofinstall.bat"​
  
 [Winbatch_install_64] [Winbatch_install_64]
 %ScriptPath%\$Inst_Prg64$ $Inst_Cmd$ %ScriptPath%\$Inst_Prg64$ $Inst_Cmd$
 +"​%ScriptPath%\checkendofinstall.bat"​
  
 [Sub_check_exitcode] [Sub_check_exitcode]
Line 310: Line 333:
         endif         endif
 endif endif
 +</​code>​
 +
 +==== checkendofinstall.bat ====
 +<code winst>
 +REM ##############################################################################################​
 +REM ###                                                                                        ###
 +REM ###  This batchfile checks, if avgmfapx.exe,​ the following install-file after setup.exe ​   ###
 +REM ###  is still running. It will close itself, when avgmfapx is ready. Until then the        ###
 +REM ###  setup.ins is waiting for the termination of checkendofinstall.bat ​                    ###
 +REM ###  Without this batchfile setup.ins will go on right in the moment, the $INST_PRGxx$ ​    ###
 +REM ###  is closing, and will initiate a reboot, nevertheless AVG Antivir Installation is      ###
 +REM ###  still in progress. So after e reboot, the AVG is not avail and not installed, but in  ###
 +REM ###  configed it shows a "​success" ​                                                        ###
 +REM ###                                                                                        ###
 +REM ###  batchfile by Thomas_H ​                                                                ###
 +REM ###                                                                                        ###
 +REM ##############################################################################################​
 +
 +@echo off
 +
 +SET FOUND=0
 +
 +
 +cls
 +echo Programm wird installiert,​ das kann ein Weilchen dauern, bitte warten...
 +:start
 +
 +
 +tasklist | find /i "​avgmfapx"​ >NUL
 +
 +if %errorlevel% == 1 (
 +    if %FOUND%==1 goto:eof
 +GOTO :start
 +)
 +
 +if %errorlevel% == 0 (
 +    if %FOUND%== 0 set FOUND=1
 +GOTO:start
 +)
 +
 +:ende
 +
 +
 +
 </​code>​ </​code>​
  

QR Code
QR Code userspace:avg_antivirus (generated for current page)