User Tools

Site Tools


userspace:avg_antivirus

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
userspace:avg_antivirus [2011/10/27 14:35]
Thomas_H
userspace:avg_antivirus [2021/08/23 08:37] (current)
Line 1: Line 1:
-====== **AVG Antivirus** ====== (FREE) http://free.avg.com/de-de/startseite+====== **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 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.
  
 Tree:\\ Tree:\\
-avg.exe (the renamed downloaded setup-file for 32 Bit)\\+<code>
 avg.jpg\\ avg.jpg\\
 +avg_x32.exe (the renamed downloaded setup-file for 32 Bit)\\
 avg_x64.exe (the renamed downloaded setup-file for 64 Bit)\\ avg_x64.exe (the renamed downloaded setup-file for 64 Bit)\\
 +checkendofinstall.bat\\
 delsub.ins\\ delsub.ins\\
 setup.ins\\ setup.ins\\
 uninstall.ins uninstall.ins
 +</code>
  
-==== setup.ins ==== 
  
 +==== 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 58: 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 68: 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 76: 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 91: 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 108: Line 118:
                 Winbatch_install_32                 Winbatch_install_32
                 Sub_check_exitcode                 Sub_check_exitcode
 +                ExitWindows /Reboot
         endif         endif
  
Line 115: Line 126:
                 Winbatch_install_64                 Winbatch_install_64
                 Sub_check_exitcode                 Sub_check_exitcode
 +                ExitWindows /Reboot
         endif         endif
  
Line 121: 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 321: 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>
  
userspace/avg_antivirus.1319726141.txt.gz · Last modified: 2021/08/23 08:37 (external edit)