Deleted registry entry

While using hijackthis program i deleted unwillingly the 04 type registry entry for Avast resident scanner,like these:

O4 - HKLM..\Run: [MSConfig] “C:\Windows\system32\msconfig.exe” /auto
O4 - HKLM..\Run: [Windows Defender] %ProgramFiles%\Windows Defender\MSASCui.exe -hide
O4 - HKLM..\Run: [SunJavaUpdateSched] “C:\Program Files\Java\jre1.6.0_05\bin\jusched.exe”
O4 - HKLM..\Run: [Adobe Reader Speed Launcher] “C:\Program Files\Adobe\Reader 8.0\Reader\Reader_sl.exe”
O4 - HKLM..\Run: [NeroFilterCheck] C:\Program Files\Common Files\Ahead\Lib\NeroCheck.exe
O4 - HKCU..\Run: [swg] C:\Program Files\Google\GoogleToolbarNotifier\1.2.1128.5462\GoogleToolbarNotifier.exe
O4 - HKCU..\Run: [SUPERAntiSpyware] C:\Program Files\SUPERAntiSpyware\SUPERAntiSpyware.exe
O4 - HKCU..\Run: [Sidebar] C:\Program Files\Windows Sidebar\sidebar.exe /autoRun
O4 - HKUS\S-1-5-19..\Run: [Sidebar] %ProgramFiles%\Windows Sidebar\Sidebar.exe /detectMem (User ‘SERVICIO LOCAL’)
O4 - HKUS\S-1-5-19..\Run: [WindowsWelcomeCenter] rundll32.exe oobefldr.dll,ShowWelcomeCenter (User ‘SERVICIO LOCAL’)
O4 - HKUS\S-1-5-20..\Run: [Sidebar] %ProgramFiles%\Windows Sidebar\Sidebar.exe /detectMem (User ‘Servicio de red’)

I tried to fix it using msconfig, but it can do nothing.
So i do not have an automatic loading of Avast resident scan when windows Vista starts.

Can anyone tell me what exactly and exactly where (using regedit),
must i write to fix this problem?

Of course i could uninstall Avast and then download and install again, but it is an unelegant method.

I was thinking also in using Vista restore (never used it, i don´t know if it works)

Could you help?

Thank you.

I edited to correct some miswritings:
(25/08)
I had wroten register instead of registry, restaure instead of restore.
Sorry ; i am a foreigner, that is a non native english speaker…

HijackThis! should give you a restore option if you have it in its own folder.

Otherwise a repair install of avast should do the job.

If you go to Add/Remove programs and click the avast! entry, you should get a repair option. Running the setup.exe again should give you a similar option.

If you run into problem with Vista, you can easily restore your system to a previous state.
For example, if you install a device driver or other software that does not agree with the rest
of your system, you can return your computer to the state it was in before you installed it.
This is made possible using the System Restore tool.

If necessary, you can start the System Restore tool from the command prompt.
This is useful if you can not start your computer normally or in Safe Mode.
To start the utility using this method, restart your computer and press F8 during startup.
From the boot options, select Safe Mode with a command prompt.
You can then log on to your computer using an account with administrative privileges.

The last step is to launch the System Restore tool.
You can do this by typing the following command at the command prompt.

C:\Windows\System32\rstrui.exe

Hope that helps. :slight_smile:

I have not tried yet the restore vista tool, i was expecting, if i used it, to get the registry to the previous state where the resident Avast scanner was loaded on Vista start.

Unhappily i have tried all what frank said, but

For some unknown reason (to me), hijackthis did not keep a restore option; i could not find any setup.exe in Avast programs folders; clicking on ashDisp.exe does indeed load the resident scanner (including its icon), but when closing Vista and opening again it doesn´t reload.
Checking with hijackthis, the register entry is still not repaired.

Sorry, i am a spaniard and the technical words i use are translated from spanish and might not always be the most adequated.

So, the problem remains and is not yet fixed, since i do not want to use Vista restore for what should be a simple problem.

Setup.exe is the file you used to install avast! For the Spanish version, it’ll be setupesp.exe. If you don’t have the latest version, simply download it:

http://www.avast.com/eng/download-avast-home.html#DownloadAvastHomeEdition

No need to redownload since i could fix it manually using regedit.exe.

I just managed to write in :
Hkey_local_Machine\Software\Microsoft\Windows\CurrentVersion\Run

this:

C:\Program Files\Alwil Software\Avast4\ashDisp.exe

and Alwil Software as an alphanumeric value at the beginning of the registry key (to the left)

and all works again perfectly.No need to redownload.

Hope this is all correct, though.

I thought writing on registry would be harder, would require some binary word or whatever.If i was a hijackthis developer i would teach people (in a help file ) how to write (and unwrite) in Windows Registry

I edited (25/08) cause i forgot Windows between Microsoft and CurrentVersion for the registry location.

In fact all was not working perfectly: the resident scanner with its icon in the system tray was working but the antivirus scanner (on demand) was unable to work, but i have only discovered this a few minutes ago.

What must be written in the registry is:

[avast!] C:\PROGRA~1\ALWILS~1\Avast4\ashDisp.exe

in:

Hkey_local_Machine\Software\Microsoft\Windows\CurrentVersion\Run

But i do not even know how to write the character between PROGRA and 1 , neither its meaning.

Hope somebody who´ll read this and know will explain.

That was the short path.
The long path, that should work either, is:
C:\PROGRAM FILES\ALWIL SOFTWARE\Avast4\ashDisp.exe

@ sopadeajo
The Tilde ~ key is the character that MS uses when it converts folder names greater that 8 characters long, so the folder name is shortened to the first six characters then ~ and then 1. This allows for there being more than one folder with the same name, e.g. ~2, etc.

The Tlide key is next to the Enter key there is also a Hash # character on the key so you need to press the Shift key and the ~/# key together to get the ~.

You could always have copied and pasted the value as you did in the post.

David,

just to note that the key layout you describe is only for keyboards used in the UK & Ireland, something that I had to learn when I found myself supporting so folks in the UK. Keyboard layouts vary quite a bit in different regions … see:

http://en.wikipedia.org/wiki/Keyboard_layout

However, as you suggested, the copy and paste option should do the job.

Thanks Alan, my sheltered existence on UK only keyboards ;D

There must be a ALT + number way to write the tilde character, cause it doesn´t show anywhere in spanish keyboards.There is probably another Wikipedia entry with the way to write characters with ALT + number, again i am ignorant of it.

Try the AltGr and 4 keys.

|@#~€¬{}

These are i believe all the possible AltGr in a spanish keyboard.

You are right, it works, you just have to write another character for the tilde to appear.

|@#~€¬{}