This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
userspace:avg_antivirus [2012/02/29 07:23] Thomas_H |
userspace:avg_antivirus [2021/08/23 08:37] (current) |
||
---|---|---|---|
Line 7: | Line 7: | ||
questions to: // | questions to: // | ||
+ | |||
+ | history:\\ | ||
+ | changed: | ||
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. | ||
Line 12: | Line 15: | ||
Tree:\\ | Tree:\\ | ||
< | < | ||
- | avg.exe (the renamed downloaded setup-file for 32 Bit)\\ | ||
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 | ||
</ | </ | ||
- | ==== 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:// | ||
+ | |||
[Initial] | [Initial] | ||
LogLevel=9 | LogLevel=9 | ||
Line 59: | Line 69: | ||
Set $INST_SystemType$ = GetSystemType | Set $INST_SystemType$ = GetSystemType | ||
set $INST_architecture$ = GetProductProperty(" | set $INST_architecture$ = GetProductProperty(" | ||
- | |||
- | |||
Set $LogDir$ = " | Set $LogDir$ = " | ||
+ | |||
; ---------------------------------------------------------------- | ; ---------------------------------------------------------------- | ||
; - Please edit the following values | ; - Please edit the following values | ||
Line 69: | Line 78: | ||
; no white space use ' | ; no white space use ' | ||
Set $ProductId$ | Set $ProductId$ | ||
- | ;Kein Punkt in der Versionsnummer! 4.30 ist 430, 4.40 ist 440 oder 4.51 ist 451! | + | Set $Version$ |
- | Set $Version$ | + | |
Set $MinimumSpace$ | Set $MinimumSpace$ | ||
; the path were we find the product after the installation | ; the path were we find the product after the installation | ||
Line 77: | Line 85: | ||
Set $LicenseRequired$ = " | Set $LicenseRequired$ = " | ||
Set $LicensePool$ | Set $LicensePool$ | ||
- | 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$ = '/ | Set $Inst_Cmd$ = '/ | ||
+ | |||
Set $Uninst_Cmd$ = " / | Set $Uninst_Cmd$ = " / | ||
Set $Uninst_Prg$ = " | Set $Uninst_Prg$ = " | ||
Line 92: | Line 101: | ||
ShowBitmap " | ShowBitmap " | ||
- | ; if FileExists(" | + | |
- | ; comment "Start uninstall sub section" | + | comment "Start uninstall sub section" |
- | ; Sub " | + | Sub " |
- | ; endif | + | endif |
if $LicenseRequired$ = " | if $LicenseRequired$ = " | ||
Line 109: | Line 118: | ||
Winbatch_install_32 | Winbatch_install_32 | ||
Sub_check_exitcode | Sub_check_exitcode | ||
+ | ExitWindows /Reboot | ||
endif | endif | ||
Line 116: | Line 126: | ||
Winbatch_install_64 | Winbatch_install_64 | ||
Sub_check_exitcode | Sub_check_exitcode | ||
+ | ExitWindows /Reboot | ||
endif | endif | ||
Line 122: | Line 133: | ||
[Winbatch_install_32] | [Winbatch_install_32] | ||
%ScriptPath%\$Inst_Prg32$ $Inst_Cmd$ | %ScriptPath%\$Inst_Prg32$ $Inst_Cmd$ | ||
+ | " | ||
[Winbatch_install_64] | [Winbatch_install_64] | ||
%ScriptPath%\$Inst_Prg64$ $Inst_Cmd$ | %ScriptPath%\$Inst_Prg64$ $Inst_Cmd$ | ||
+ | " | ||
[Sub_check_exitcode] | [Sub_check_exitcode] | ||
Line 322: | Line 333: | ||
endif | endif | ||
endif | endif | ||
+ | </ | ||
+ | |||
+ | ==== checkendofinstall.bat ==== | ||
+ | <code winst> | ||
+ | REM ############################################################################################## | ||
+ | REM ### ### | ||
+ | REM ### This batchfile checks, if avgmfapx.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 " | ||
+ | REM ### ### | ||
+ | REM ### batchfile by Thomas_H | ||
+ | REM ### ### | ||
+ | REM ############################################################################################## | ||
+ | |||
+ | @echo off | ||
+ | |||
+ | SET FOUND=0 | ||
+ | |||
+ | |||
+ | cls | ||
+ | echo Programm wird installiert, | ||
+ | :start | ||
+ | |||
+ | |||
+ | tasklist | find /i " | ||
+ | |||
+ | if %errorlevel% == 1 ( | ||
+ | if %FOUND%==1 goto:eof | ||
+ | GOTO :start | ||
+ | ) | ||
+ | |||
+ | if %errorlevel% == 0 ( | ||
+ | if %FOUND%== 0 set FOUND=1 | ||
+ | GOTO:start | ||
+ | ) | ||
+ | |||
+ | :ende | ||
+ | |||
+ | |||
+ | |||
</ | </ | ||