Team OS : Your Only Destination To Custom OS !!

Welcome to TeamOS Community, Register or Login to the Community to Download Torrents, Get Access to Shoutbox, Post Replies, Use Search Engine and many more features. Register Today!

Tutorials Update Avast Premium Security manually in an automated way.

juanamm

Uploader
Uploader
Power User
✅ Verified Member
Member
Downloaded
5.7 GB
Uploaded
448.6 GB
Ratio
78.11
Seedbonus
134,973
Upload Count
217 (223)
Member for 5 years
Update Avast Premium Security manually in an automated way.

a) Reasons to update manually:
As of July this year, Avast has included in its updates a script to detect pirated licenses, that is, those licenses that may have been legal, but being shared by the Internet and used by many, Avast disables them.

For this reason, if you use any of these licenses, it is advisable that you disable automatic updates, both from the virus database and from the program's engine.

avast_updates.md.png


Another thing you should do is block all connections to Avast Service with it own firewall, as advised in this post:


EDIT: I have tried leaving only Avast Service blocked, the license is not deactivated and downgrade does not occur, but although I have automatic updates enabled, AV does not update, it informs me that it is out of date and I must update it manually.
In conclusion, this tutorial makes sense. :)


avast_firew.md.png


It is also highly recommended that you change some things in the Privacy tab.

avast_privacy.md.png


b) My BAT script to automate updates:

I have made a script that allows you to download the virus definitions database update file from Avast https://install.avcdn.net/vps18/vpsupd.exe , and update those definitions from viruses to the program silently.

This update works for Avast Security Suite version 19 and later versions. If you are using an old version of Avast it is advisable to update it, in the forum there are updated versions or download it from the Avast site, taking all the configuration precautions mentioned at the beginning. I haven't tested it with Avast Free, because there is no point in disabling automatic updates on free versions.

Bash:
@ECHO OFF

set "downloadFolder=%userprofile%\Downloads\avast_updates"
set downloadUrl=https://install.avcdn.net/vps18/vpsupd.exe
bitsadmin /transfer myAvastUpdates /download /priority normal ^
"%downloadUrl%" "%downloadFolder%\vpsupd.exe"

"%downloadFolder%\vpsupd.exe" /silent

exit

downloadFolder

First of all, make a folder where you will store the updates file
I have created a folder called "avast_updates" inside my "Downloads" folder. You can create your folder with the name you want and place it wherever you want, but you must tell the script the precise location and the name of it. It is advisable not to use long names separated by spaces, but if you put quotes you can use any name.
For example: you can create a folder on your desktop called "AvastUpdates".
For this you should change the variable like this: set "downloadFolder=%userprofile%\Desktop\AvastUpdates"
Or if you want to create the folder in C: \ you should change the script like so: set "downloadFolder=C:\AvastUpdates"
%userprofile% = C:\Users\myuser\


The rest should not change it if you know what you are doing.

I uploaded the file but they are not encouraged to create it, then they can edit it with any text editor, without changing the .BAT extension​

The script will download the new file and overwrite the old one. So you don't have to worry about download space. The latest version of the file will always be saved.



c) Create a new task in Windows:

So far the above script works, but we have to run it manually every time we want to update Avast.
If it is to automate, we will also automate the execution of the BAT file. :)

In order not to bore you with so many written instructions, I will share screenshots and only indicate the commands in writing. :giggle:

task1.md.png


task2.md.png


task3.md.png


I have configured the task to run every day and then every 8 hours. You can change that as you like.

task4.md.png


task5.md.png


Program/script
Code:
cmd.exe
Add arguments
Code:
/c start /min C:\avastUpdate.bat ^& exit

In the example above I have placed the .bat file in C:\, if you put it elsewhere, you must rename the path. Example: If you put the .bat file on the desktop, you will need to change the argument like this:
Code:
/c start /min %userprofile%\Desktop\avastUpdate.bat ^& exit

If you put it on disk F: in the path \ My_Stuff, you will need to change the script like so:
Code:
/c start /min F:\My_Stuff\avastUpdate.bat ^& exit

task6.md.png



d) Create a task shortcut:

If you want you can create a shortcut to the task you have created, this way, if at any time you want to run it manually to test that it is working you can do it. :)

Why create a shortcut to the task and not directly run the .bat file? :think:

Beacuse we have created the task with elevated permission.
If you run the task you will not have the annoying UAC pop-ups, if you run the script directly you must do so with administrator permissions (Avast will not allow the update) and you must also confirm the UAC notification. :D

I am explaining everything to users who have little experience and do not know how to do it. If you know how to do it do not get bored, do not continue reading. ;)

If we want to create the shortcut on the desktop, we will give a secondary click of the mouse and we will be guided by the images.

task7.png


task8.md.png


If you have followed the whole tutorial using the same names that I have used I will be easier, but if you have changed them it is not a problem, only you will have to change them.

Code:
schtasks.exe /run /tn "avastUpd"

The word in quotation marks is the name I gave the task when I created it.

task9.md.png


e) Changing the shortcut icon

If you do not like the icon created by default you can change it by any icon in the way that I will indicate.
You can also browse to where the Avast files path are and choose any executable to get their icon.

task10.png


task11.png


task12.png


task13.png


task14.png


task15.md.png


IMPORTANT NOTE: You have to add the following files to Avast exceptions: a) avastUpdate.bat, b) task shortcut & it destination C:\Windows\System32\schtasks.exe /run /tn "avastUpd" and c) file downloaded from Avast vpsupd.exe. The first time I ran the Avast script I was quarantined suspecting it was a non-genuine task as it is a BAT that downloads and executes the file silently. And I just noticed that I also quarantined the vpsupd.exe file, which is electronically signed by Avast as it is downloaded from the official Avast repository. :giggle:
If the same thing happened to me that Avast placed the file in the virus chest, just go to the chest, restore the file and add the exception.
Right-click on the Avast icon in the taskbar, select Virus Chest:
virus_chest2.png

Then inside the chest look for your file, after you find it right click on the three points to the right of the file to restore it and add the exception.
virus_chest.png



As always I apologize for the English, in case something is not well written or not well expressed. :blush:
If you have any questions ask me, my idea was to make it easy and well explained so that any user without prior knowledge can follow the tutorial without any problem.
For users who have knowledge it can get boring, I have explained very basic things.​
 
Last edited:

Imran Hashmi

Power User
✅ Verified Member
Member
Downloaded
89.6 GB
Uploaded
1.3 TB
Ratio
15.13
Seedbonus
67
Upload Count
8 (3)
Member for 6 years
Very well explained, I didn't aware anything about this. I'm not from Tech field but, this kinda stuff always improve my knowledge.
 

juanamm

Uploader
Uploader
Power User
✅ Verified Member
Member
Downloaded
5.7 GB
Uploaded
448.6 GB
Ratio
78.11
Seedbonus
134,973
Upload Count
217 (223)
Member for 5 years
Very well explained, I didn't aware anything about this. I'm not from Tech field but, this kinda stuff always improve my knowledge.

I'm glad you were interested in this thread and I appreciate your words. :)
The truth is that scripting world is interesting, using an old batch file process with five lines you can get excellent results.
To be honest +20 years ago that I did not program anything in batch, I was already forgotten and some commands are "new" for me. :giggle:
 

user7

Member
Downloaded
15.6 GB
Uploaded
34.3 GB
Ratio
2.2
Seedbonus
681
Upload Count
0 (0)
Member for 4 years
all this stuff is so interesting for me, glad to have such intelligent and interesting teachers .....thanks Juanamm.
 

ar_avishek

Member
Downloaded
30.3 GB
Uploaded
221.1 GB
Ratio
7.29
Seedbonus
29,603
Upload Count
0 (0)
Member for 4 years
Great effort brother. Thanks for the solution, but brother it updates only virus definition or also updates the software as well?
 
Last edited by a moderator:

Djamalou

Member
Downloaded
108.3 GB
Uploaded
1.5 TB
Ratio
14.65
Seedbonus
39,794
Upload Count
0 (0)
Member for 5 years
It's real, at each update avast downgrad you to the free version, skillful settings. Thanks a lot bro!
 

juanamm

Uploader
Uploader
Power User
✅ Verified Member
Member
Downloaded
5.7 GB
Uploaded
448.6 GB
Ratio
78.11
Seedbonus
134,973
Upload Count
217 (223)
Member for 5 years
Great effort brother. Thanks for the solution, but brother it updates only virus definition or also updates the software as well?

I think have made that point clear from start:
b) My BAT script to automate updates:

I have made a script that allows you to download the virus definitions database update......
 

kauw5164

Member
Downloaded
8.6 GB
Uploaded
2.1 GB
Ratio
0.24
Seedbonus
23
Upload Count
0 (0)
Member for 5 years
Juanamm you are genius man.
 

ar_avishek

Member
Downloaded
30.3 GB
Uploaded
221.1 GB
Ratio
7.29
Seedbonus
29,603
Upload Count
0 (0)
Member for 4 years
I think have made that point clear from start:
Thanks for the clarification. It's my fault. I didn't pay attention.
 

pinkfloyder

pinkfloyder
✅ Verified Member
Member
Downloaded
387.7 GB
Uploaded
1.1 TB
Ratio
2.89
Seedbonus
1,760
Upload Count
0 (0)
Member for 10 years
Super post Juanamm, very interesting!!
 

Kochadaiiyaan

Member
Downloaded
59 GB
Uploaded
234.9 GB
Ratio
3.98
Seedbonus
19,848
Upload Count
0 (0)
Member for 7 years
Interesting, Amazing Effort thank you
 

mikal_s

✅ Verified Member
Member
Downloaded
132.4 GB
Uploaded
1.7 TB
Ratio
13.13
Seedbonus
147,673
Upload Count
0 (0)
Member for 8 years
@ Juanamm very nicely done Sir..
 

AtlantisVip

✅ Verified Member
Member
Downloaded
87.4 GB
Uploaded
14.6 TB
Ratio
170.96
Seedbonus
22,039
Upload Count
0 (0)
Member for 6 years
Thank you for taking the time with all the details !
 
Top