Help - Search - Members - Calendar
Full Version: Ad-watch now corrupts my registry
Lavasoft Support Forums > Archived Topics > Archives: Resolved/Inactive Topics > AdWatch Resolved /Inactive Issues
Combinerbob
I had a problem with Ad-watch which was the same as others have mentioned i.e. it changed the registry such that I lost all the links to run programs. I had a recent backup of my registry and restored it and all was well unitil I loaded Ad-watch whereby it decided to put the registry back to its corrupt state. How can I load Ad-watch such that it will accept my current, working system and carry on from there?
spike-nz
Hi Combinerbob,

1) Which Build of Ad-Aware are you running? Should be Ad-Aware SE 1.06r1

2) Is yor Ad-Watch set to Active (which pops-up alerts when it finds changes) or Automatic (which silently blocks all changes) ?

Regards,

Spike
Combinerbob
QUOTE(spike-nz @ Nov 13 2006, 08:59 AM) *
Hi Combinerbob,

1) Which Build of Ad-Aware are you running? Should be Ad-Aware SE 1.06r1

2) Is yor Ad-Watch set to Active (which pops-up alerts when it finds changes) or Automatic (which silently blocks all changes) ?

Regards,

Spike



1) Yes my Ad-Aware is SE 1.06r1
2) I cannot check but I think it is on automatic. The problem is that if I try to invoke Ad-watch then it appears to be attempting to restore the registry to an old, non-working state. Is there a configuration file or something which needs to be deleted or altered?
spike-nz
Hi Combinerbob,

My suggestion would be to:

(1) Un-install Ad-Aware

(2) Set your Registry to it's stable working state

(3) Re-install Ad-Aware, making sure that it is set to Active and not to Automatic.

Should you be running the (free) Personal version, you may download the program again from here: Ad-Aware SE Personal Edition 1.06.

With your present configuration, this seems the simplest method of fixing matters. Let us know if that does the trick.

Regards,

Spike
Combinerbob
QUOTE(spike-nz @ Nov 13 2006, 09:35 PM) *
Hi Combinerbob,

My suggestion would be to:

(1) Un-install Ad-Aware

(2) Set your Registry to it's stable working state

(3) Re-install Ad-Aware, making sure that it is set to Active and not to Automatic.

Should you be running the (free) Personal version, you may download the program again from here: Ad-Aware SE Personal Edition 1.06.

With your present configuration, this seems the simplest method of fixing matters. Let us know if that does the trick.

Regards,

Spike
Corrine
QUOTE(Combinerbob @ Nov 13 2006, 01:41 AM) *
I had a problem with Ad-watch which was the same as others have mentioned i.e. it changed the registry such that I lost all the links to run programs. I had a recent backup of my registry and restored it and all was well unitil I loaded Ad-watch whereby it decided to put the registry back to its corrupt state. How can I load Ad-watch such that it will accept my current, working system and carry on from there?


Hi, Combinerbob. You're correct. The suggestion to uninstall Ad-Aware will not help in this situation where the links were lost. However, everyone who has followed the instructions below has had success. It takes some work but you will be able to restore your computer. Good luck.

QUOTE(Corrine @ Apr 22 2006, 12:08 PM) *
Hi, Kathy. Looks like you have Ad-Watch set to "Lock executable file associations" and on "automatic". This has been an ongoing problem since Ad-Aware SE was released. sad.gif

From the Help file:
Thus, Ad-Watch is doing precisely as you have instructed it to do -- it has locked executable file associations. Personally, I want to know what is going on with my PC and have "automatic" turned off with Ad-Watch. When I install software and am prompted by Ad-Watch to accept a change, I know it is safe to allow. However, should something slip past my defenses and try to make changes without my permission, Ad-Watch will let me know and I can have that change blocked.

The following was prepared by Appetiser in 2004 when this problem first appeared. So that it is easier to read, I will copy/paste rather than quote the instructions.

You may also want to review:

Kelly's Korner, HOW TO: Specify the Program Used to Open Certain File Types
Kelly's Korner, Line 146, Retrieve the Class Name for a File Extension
Microsoft KB Article, HOW TO: Specify the Program Used to Open Certain Types of Files in Windows XP

For XP: Windows® XP File Association Fixes (lines 7 and 15)
http://www.dougknox.com/xp/file_assoc.htm

Restoring file associations

To make things easy to navigate I would suggest creating a new folder called c:\regfixes. Then browse to Doug Knox's web site and download all the file association fixes from http://www.dougknox.com/xp/file_assoc.htm for file types you are having problems with to this folder. As a minimum I would download com, lnk, reg then unzip each file you have downloaded.

Right mouse click on the Ad-Watch icon in the system tray and select "Ad-Watch Settings". At the bottom of the Ad-Watch window make sure automatic is not checked i.e. it is a red cross.

First you will need to restore the .exe file association. In Notepad create a new file and enter all the text the the code box below:

CODE
' VBScript to restore .exe file association with Windows XP
Option Explicit

Dim strComputer
Dim objRegistry,objDictionary

strComputer = "."
Set objRegistry=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_
    strComputer & "\root\default:StdRegProv")
    
Set objDictionary = CreateObject("Scripting.Dictionary")
    objDictionary.Add "HKCR",&h80000000

Call RegAddString( "HKCR", ".exe", "", "exefile")
Call RegAddString( "HKCR", ".exe", "Content Type",_
  "application/x-msdownload" )
Call RegAddString( "HKCR", ".exe\PersistentHandler", "",_
  "{098f2470-bae0-11cd-b579-08002b30bfeb}" )
Call RegAddString( "HKCR", "exefile", "", "Application" )
Call RegAddBinary( "HKCR", "exefile", "EditFlags", "38,07,00,00" )
Call RegAddString( "HKCR", "exefile", "TileInfo",_
  "prop:FileDescription;Company;FileVersion" )
Call RegAddString( "HKCR", "exefile", "InfoTip",_
  "prop:FileDescription;Company;FileVersion;Create;Size" )
Call RegAddString( "HKCR", "exefile\DefaultIcon", "", "%1" )
Call RegAddString( "HKCR", "exefile\shell", "", "" )
Call RegAddString( "HKCR", "exefile\shell\open", "", "" )
Call RegAddBinary( "HKCR", "exefile\shell\open",_
  "EditFlags", "00,00,00,00" )
Call RegAddString( "HKCR", "exefile\shell\open\command", "",_
    Chr(34) & "%1" & Chr(34) & Space(1) & "%*" )
Call RegAddString( "HKCR", "exefile\shell\runas", "", "" )
Call RegAddString( "HKCR", "exefile\shell\runas\command", "",_
    Chr(34) & "%1" & Chr(34) & Space(1) & "%*" )
Call RegAddString( "HKCR", "exefile\shellex", "", "" )
Call RegAddString( "HKCR", "exefile\shellex\DropHandler",_
  "", "{86C86720-42A0-1069-A2E8-08002B30309D}" )
Call RegAddString( "HKCR", "exefile\shellex\PropertySheetHandlers", "", "" )
Call RegAddString( "HKCR", "exefile\shellex\PropertySheetHandlers\PifProps",_
    "", "{86F19A00-42A0-1069-A2E9-08002B30309D}" )
Call RegAddString( "HKCR", "exefile\shellex\PropertySheetHandlers\ShimLayer Property Page",_
    "", "{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}" )

Function RegKeyExists(rootkey, keypath)
    Dim arrValueNames, arrValueTypes
    If objRegistry.EnumValues(objDictionary(rootkey), keypath, arrValueNames, arrValueTypes) = 0 Then
  RegKeyExists = True
    Else
  RegKeyExists = False
    End If    
End Function

Sub RegAddKey(rootkey, keypath)
    objRegistry.CreateKey objDictionary(rootkey),keypath
End Sub

Sub RegAddString(rootkey, keypath, valuename, valuedata)
    If Not RegKeyExists(rootkey, keypath) Then
  Call RegAddKey( rootkey, keypath )
    End If
    objRegistry.SetStringValue objDictionary(rootkey),keypath,valuename,valuedata
End Sub

Sub RegAddBinary(rootkey, keypath, valuename, valuearray)
    Dim arrValue(),arrHexValue,i,HexVal
  
    arrHexValue = Split(Trim(valuearray),",")
        i=0
        For Each HexVal in arrHexValue
        Redim Preserve arrValue(i)
        arrValue(i) = "&h" & HexVal
      i=i + 1
        Next
        objRegistry.SetBinaryValue objDictionary(rootKey),keypath,valuename,arrValue
        Redim arrValue(0)
End Sub


In Notepad, select file, select save, under "save in" use the pull down menu and select c:\regfixes and for file name enter xp_exe_fix.vbs and under "Save as type" use the pull down menu and select "All files".

Navigate to c:\regfixes and right mouse click on xp_exe_fix.vbs and select open. This will run the script and restore the registry keys associated with the exe file type. If you are running Ad-Watch if it pops an alert whilst this script is running you will need to accept the update to the registry.

Now the .exe file association is restored you will be able to run regedit.exe.
Work through the file association fixes that you downloaded above from Doug Knox's site.

Press start, select run and enter the text in bold below

cmd

Click OK, this will open a command window

at the prompt in the command window enter the text in bold (please note the spaces in the command text)

regedit /s c:\regfixes\xp_com_fix.reg

adjust the path as appropriate to where you unzipped the reg files to

repeat the regedit command for the other reg files you have e.g.

xp_regfile.reg
linkfile_fix.reg

With Ad-Watch it is vital you accept any changes that may be alerted by Ad-Watch when merging these files.

Original From: http://www.lavasoftsupport.com/index.php?s...st&p=367004 (no longer available)

Good luck.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.