Author Topic: Avast settings being moved to registry in 20.7  (Read 14171 times)

0 Members and 1 Guest are viewing this topic.

Offline Hried

  • Avast team
  • Jr. Member
  • *
  • Posts: 41
Avast settings being moved to registry in 20.7
« on: September 01, 2020, 01:42:38 PM »
Starting from 20.7 (previously mentioned here), Avast now stores most of its configuration settings (previously in avast5.ini / settings.ini) in registry. This is due to performance considerations of the ever increasing amount of settings we store and is a necessary optimization to keep things running smooth.

So in 20.7 you will no longer find avast5.ini and most of other ini files in Avast’s Program Data folder; the new home for them is in Windows Registry at HKEY_LOCAL_MACHINE\SOFTWARE\AVAST Software\Avast\properties. You can perform modifications using Windows Registry Editor or prepare .reg files to perform the modifications automatically; these can then be shared with other users as well. Note that Self-Defense must be turned off to perform the modifications (but you can turn it on automatically by including its SelfDefense=1 setting in the .reg file).

While this might break age-old habits, we believe this will significantly improve the performance of any settings-related tasks. INI files were comfortable to work with but they are inherently slow due to their text-encoded nature. This change enables easier automation of changes to settings - you can now send custom-tailored .reg files to other users who need your help with a more complex configuration without overwriting any of their other local settings (compared to replacing entire .ini files). The names and meaning of all setting section remain the same.

Hope it helps!

Offline Asyn

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 76037
    • >>>  Avast Forum - Deutschsprachiger Bereich  <<<
Re: Avast settings being moved to registry in 20.7
« Reply #1 on: September 01, 2020, 03:12:57 PM »
Thanks Hried..!! :)  (German translation here: https://forum.avast.com/index.php?msg=1559445)
W8.1 [x64] - Avast Free AV 23.3.8047.BC [UI.757] - Firefox ESR 102.9 [NS/uBO/PB] - Thunderbird 102.9.1
Avast-Tools: Secure Browser 109.0 - Cleanup 23.1 - SecureLine 5.18 - DriverUpdater 23.1 - CCleaner 6.01
Avast Wissenswertes (Downloads, Anleitungen & Infos): https://forum.avast.com/index.php?topic=60523.0

Offline NON

  • Japanese User
  • Avast Überevangelist
  • Ultra Poster
  • *****
  • Posts: 5477
  • Whatever will be, will be.
Re: Avast settings being moved to registry in 20.7
« Reply #2 on: September 01, 2020, 03:51:08 PM »
Thanks for the explanation Hried!
Desktop: Win10 Pro 22H2 64bit / Core i5-7400 3.0GHz / 32GB RAM / Avast 23 Premium Beta(Icarus) / Comodo Firewall
Notebook: Win10 Pro 22H2 64bit / Core i5-3340M 2.7GHz / 12GB RAM / Avast 23 Free / Windows Firewall Control
Server: Win11 Pro 23H2 64bit / Core i3-4010U 1.7GHz / 12GB RAM / Avast One 23 Essential

Avast の設定について解説しています。よろしければご覧ください。

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 88900
  • No support PMs thanks
Re: Avast settings being moved to registry in 20.7
« Reply #3 on: September 01, 2020, 07:00:07 PM »
Just thought of another implication of the removal/moving of the avast5.ini settings to the registry.

There used to be a number of edits that could be made in the avast5.ini, for instance delaying the check for updates.
[InetWD]
UseRAS=1
RASWaitSeconds=120
AssumeAlwaysConnected=1
AlwaysConnectedWaitSeconds=120

Now that there is no avast5.ini how could these avast5.ini hacks be achieved (if at all) when they are all in the registry  ?
Windows 10 Home 64bit/ Acer Aspire F15/ Intel Core i5 7200U 2.5GHz, 8GB DDR4 memory, 256GB SSD, 1TB HDD/ avast! free 24.2.6105 (build 24.2.8918.824) UI 1.0.799/ Firefox, uBlock Origin, uMatrix/ MailWasher Pro/ Avast! Mobile Security

Offline igor

  • Avast team
  • Serious Graphoman
  • *
  • Posts: 11849
    • AVAST Software
Re: Avast settings being moved to registry in 20.7
« Reply #4 on: September 01, 2020, 08:37:52 PM »
Nothing has really changed in this respect - the program reads the same values, just from a different location. (The code asking for those valus, e.g. UseRAS, hasn't changed at all - just the library that actually extracts the requested values now reads them from registry, not from the INI file.)

Offline Hopper15

  • Full Member
  • ***
  • Posts: 105
Re: Avast settings being moved to registry in 20.7
« Reply #5 on: September 01, 2020, 09:16:30 PM »
This should be pinned.
Win 8.1 64 bit 16GB Avast Free/Malwarebytes Pro/CCleaner

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 88900
  • No support PMs thanks
Re: Avast settings being moved to registry in 20.7
« Reply #6 on: September 01, 2020, 09:51:05 PM »
Nothing has really changed in this respect - the program reads the same values, just from a different location. (The code asking for those valus, e.g. UseRAS, hasn't changed at all - just the library that actually extracts the requested values now reads them from registry, not from the INI file.)

Yes, but rather than being to be able to edit the avast5.ini in the future (as it won't exist, or will it as a backup), that would mean trying to find it in the registry and edit that ?
Windows 10 Home 64bit/ Acer Aspire F15/ Intel Core i5 7200U 2.5GHz, 8GB DDR4 memory, 256GB SSD, 1TB HDD/ avast! free 24.2.6105 (build 24.2.8918.824) UI 1.0.799/ Firefox, uBlock Origin, uMatrix/ MailWasher Pro/ Avast! Mobile Security

Offline schmidthouse

  • VIRUS FREE A Long Time
  • Avast Evangelist
  • Starting Graphoman
  • ***
  • Posts: 7170
  • When you think you know, Think Again
Re: Avast settings being moved to registry in 20.7
« Reply #7 on: September 01, 2020, 10:26:32 PM »

Online bob3160

  • Avast Überevangelist
  • Probably Bot
  • *****
  • Posts: 48524
  • 64 Years of Happiness
    • bob3160 Protecting Yourself, Your Computer and, Your Identity
Re: Avast settings being moved to registry in 20.7
« Reply #8 on: September 01, 2020, 11:45:18 PM »
This should be pinned.

Agreed
Then you need to pin every topic that has made changes.
Most users don't know what the .ini file is and don't really care either.
Free Security Seminar: https://bit.ly/bobg2023  -  Important: http://www.organdonor.gov/ -- My Web Site: http://bob3160.strikingly.com/ - Win 11 Pro v22H2 64bit, 16 Gig Ram, 1TB SSD, Avast Free 23.5.6066, How to Successfully Install Avast http://goo.gl/VLXdeRepair & Clean Install https://goo.gl/t7aJGq -- My Online Activity https://bit.ly/BobGInternet

Offline Hried

  • Avast team
  • Jr. Member
  • *
  • Posts: 41
Re: Avast settings being moved to registry in 20.7
« Reply #9 on: September 02, 2020, 02:29:21 AM »
Nothing has really changed in this respect - the program reads the same values, just from a different location. (The code asking for those valus, e.g. UseRAS, hasn't changed at all - just the library that actually extracts the requested values now reads them from registry, not from the INI file.)

Yes, but rather than being to be able to edit the avast5.ini in the future (as it won't exist, or will it as a backup), that would mean trying to find it in the registry and edit that ?
Indeed you can edit it in the registry just as it was in the .ini.
I agree going into the registry might seem daunting the first time, but there's one more way now - you (or anyone) can export any part of the registry into a .reg file and share it with another user to apply just those selected settings and not overwriting any others. This can then be double-clicked and applied without having to have any knowledge of the .ini files or registry whatsoever (but if you do, you'll be right at home as the .reg files are actually very similar to the .ini files).

I'll post an example tomorrow to illustrate the ease of transition from any existing ini-based recipe.

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 88900
  • No support PMs thanks
Re: Avast settings being moved to registry in 20.7
« Reply #10 on: September 02, 2020, 02:56:30 AM »
Nothing has really changed in this respect - the program reads the same values, just from a different location. (The code asking for those valus, e.g. UseRAS, hasn't changed at all - just the library that actually extracts the requested values now reads them from registry, not from the INI file.)

Yes, but rather than being to be able to edit the avast5.ini in the future (as it won't exist, or will it as a backup), that would mean trying to find it in the registry and edit that ?
Indeed you can edit it in the registry just as it was in the .ini.
I agree going into the registry might seem daunting the first time, but there's one more way now - you (or anyone) can export any part of the registry into a .reg file and share it with another user to apply just those selected settings and not overwriting any others. This can then be double-clicked and applied without having to have any knowledge of the .ini files or registry whatsoever (but if you do, you'll be right at home as the .reg files are actually very similar to the .ini files).

I'll post an example tomorrow to illustrate the ease of transition from any existing ini-based recipe.


Thanks for the clarification, I look forward to the illustration.

I don't so much have a problem working in the registry, but many others are likely to have, but how many of those would have the need.  I think the main thing for me would be knowing where in the registry these keys are located.

I suspect it wouldn't just be one registry key ?
Windows 10 Home 64bit/ Acer Aspire F15/ Intel Core i5 7200U 2.5GHz, 8GB DDR4 memory, 256GB SSD, 1TB HDD/ avast! free 24.2.6105 (build 24.2.8918.824) UI 1.0.799/ Firefox, uBlock Origin, uMatrix/ MailWasher Pro/ Avast! Mobile Security

Offline Hried

  • Avast team
  • Jr. Member
  • *
  • Posts: 41
Re: Avast settings being moved to registry in 20.7
« Reply #11 on: September 03, 2020, 12:22:52 AM »
Thanks for the clarification, I look forward to the illustration.

I don't so much have a problem working in the registry, but many others are likely to have, but how many of those would have the need.  I think the main thing for me would be knowing where in the registry these keys are located.

I suspect it wouldn't just be one registry key ?

The properties are now represented as a tree: 



and its exact location is also included in my original post. You can see that each physical file now also has its tree node with the only difference of "avast5.ini" being turned to "settings". Finally! We've been over version 5 for quite a few years already but this filename seemed to forever haunt us.
« Last Edit: September 03, 2020, 12:36:23 AM by Hried »

Offline Hried

  • Avast team
  • Jr. Member
  • *
  • Posts: 41
Re: Avast settings being moved to registry in 20.7
« Reply #12 on: September 03, 2020, 12:33:12 AM »
Now, if you were to hit export (via right-click) on the selected item, you would get this .reg file:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\AVAST Software\Avast\properties\settings\Hns]
"FirewallProfile"="DOMAIN"
"FirewallStatus"="FirewallOn"
"LastConnectedTime"="1598723310"
"LastManualScanTime"="1594724787"
"LastPreScanTime"="1598695275"
"LastScanTime"="1599041317"
"NetworkType"="administered"
"RouterChangedDelay"="1"

You can hopefully see here the similarity with the .ini files. The most striking difference is the textual header and the prefix to [section names], effectively making [Hns] into [HKEY_LOCAL_MACHINE\SOFTWARE\AVAST Software\Avast\properties\settings\Hns].  Bar that, the key=value pairs remain the same, only quotes need to be added around values.
So your previous example would become:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\AVAST Software\Avast\properties\settings\InetWD]
"UseRAS"="1"
"RASWaitSeconds"="120"
"AssumeAlwaysConnected"="1"
"AlwaysConnectedWaitSeconds"="120"


The advantage of this file would be that it won't overwrite any other settings except those explicitly mentioned and can be re-applied via a simple double-click. Hope it clears it up and feel free to ask about more details!
« Last Edit: September 03, 2020, 12:38:38 AM by Hried »

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 88900
  • No support PMs thanks
Re: Avast settings being moved to registry in 20.7
« Reply #13 on: September 03, 2020, 01:24:05 AM »
Thanks for the continued update/information on these registry/settings.

Yes, avast5.ini has been here for what seems an eternity. 
I first started using Avast over 16 years ago on Avast 4.x which was in C:\Program Files\Alwil Software\Avast4\Data\avast4.ini
Windows 10 Home 64bit/ Acer Aspire F15/ Intel Core i5 7200U 2.5GHz, 8GB DDR4 memory, 256GB SSD, 1TB HDD/ avast! free 24.2.6105 (build 24.2.8918.824) UI 1.0.799/ Firefox, uBlock Origin, uMatrix/ MailWasher Pro/ Avast! Mobile Security

Offline rocksteady

  • Super Poster
  • ***
  • Posts: 1533
Re: Avast settings being moved to registry in 20.7
« Reply #14 on: September 03, 2020, 09:48:42 AM »
I don't know if this question has been asked already (I can't see it).

Q. Can devs confirm avastclear.exe will completely and fully clean out all Avast registry entries including these additional settings when invoked??

The last thing wanted is users potentially corrupting their registries whilst performing a seek and destroy mission for stray Avast items left behind. Particularly if in the process of doing a clean install of AV. That will not benefit either Avast or users.