PRB: Error 168 When Installing or Running Visual Basic (189625)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
This article was previously published under Q189625 SYMPTOMSIMPORTANT: This article contains information about modifying the registry. Before you
modify the registry, make sure to back it up and make sure that you understand how to restore
the registry if a problem occurs. For information about how to back up, restore, and edit the
registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 Description of the Microsoft Windows Registry
During Visual Basic setup, the following error may be received while the
system registry is being updated:
Setup error 168 : Setup encountered an error updating your registry
This problem occurs on Windows 2000, Windows NT 4.0, Windows 95, Windows 98, and Windows Me.
CAUSE
On Windows NT or Windows 2000, this problem frequently occurs when a user attempts to install or use Visual Basic without having the necessary access rights.
On Windows 95, Windows 98, and Windows Me, this problem frequently occurs when registry
keys being updated are locked, are used by another application, or have
exceeded their size limits. See the MORE INFORMATION section to follow.
RESOLUTIONWARNING: If you use Registry Editor incorrectly, you may cause serious problems that may
require you to reinstall your operating system. Microsoft cannot guarantee that you can solve
problems that result from using Registry Editor incorrectly. Use Registry Editor at your own
risk.
This article provides workarounds for Windows 2000, Windows NT 4.0, Windows 95, Windows 98, and Windows Me.
Resolution for Windows 2000 and Windows NT 4.0
NOTE: The procedures shown here must be performed by a person with
Administrator rights for the machine.
Step-by-Step Example- From the Windows Start menu, choose Run.
- Type in the path to the Registry Editor (for example,
C:\WINNT\SYSTEM32\Regedt32.exe), and then click OK.
- From the HKEY_LOCAL_MACHINE on Local Machine window, select the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools registry key.
- Choose Permissions from the Security menu.
- From the Registry Key Permissions dialog box, click Replace Permission on Existing Subkeys.
- From the Name text box, select Everyone, and then choose Full Control from the Type of Access combo box.
- Click OK.
- From the HKEY_LOCAL_MACHINE on Local Machine window, highlight the HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib registry key.
- Repeat steps 4 through 7.
- From the HKEY_CLASSES_ROOT on Local Machine window, highlight the HKEY_CLASSES_ROOT\TypeLib registry key.
- Repeat steps 4 through 7.
- Try to reinstall Visual Basic.
Resolutions for Windows 95, Windows 98, or Windows Me
NOTE: Four possible resolutions for Windows 95, Windows 98, or Windows Me are provided here.
Resolution 1
Remove erroneous entries from the SharedDLLs registry key
Step-by-Step Example- From the Windows Start menu, choose Run.
- Type the path to the Registry Editor (for example,
C:\WINDOWS\Regedit.exe), and then click OK to open the Registry Editor.
- Locate the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs - Examine the SharedDLLs key entries to see if any files with extensions such as .c, .cpp, or .rc are registered. Note that you should use this key when registering only DLL files. Delete any file entries from the SharedDLLs registry key that contain extensions other than .dll or .exe.
- Install Visual Basic again.
Resolution 2
Replace the existing SharedDLLs registry key
Step-by-Step Example- From the Windows Start menu, choose Run.
- Type in the path to the Registry Editor (for example,
C:\WINDOWS\Regedit.exe), and then click OK to open the Registry Editor.
- Locate the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs - From the Registry menu, choose Export Registry File to save the existing registry key.
- Name the exported registry key file and save it in a temporary
directory (for example, C:\Temp\OldKey.dat).
- Delete the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs - Install Visual Basic again.
NOTE: Whether installation is successful or unsuccessful, perform steps
1-2 above again, then continue to step 8.
- Save the new SharedDLLs registry key as described in steps 4-5, assigning it a new name (for example, C:\Temp\NewKey.dat).
- From the Registry menu, choose Import Registry File. Enter the name of the original registry key (in our example, C:\Temp\OldKey.dat), then click Open. This important step restores SharedDLLs registry key information that would otherwise be lost.
- If the installation in step 7 was successful, import the second
saved registry file (in our example, C:\Temp\NewKey.dat) in the event that importing OldKey.dat wrote over some key values. See step 9
for this procedure.
If the installation in Step 7 was unsuccessful, it may be because
you have exceeded the size limit of the Registry. See Resolutions
4 and 5 for workarounds for this problem.
Resolution 3
Reduce registry size by temporarily deleting fonts
Step-by-Step Example- From the Windows Control Panel, select Fonts.
- Check the number of fonts loaded on the machine: the number of
fonts appears at the bottom of the Fonts window. If you have more than 800 fonts on your system, move some fonts from the Windows\Fonts folder to a temporary location.
- Install Visual Basic again.
- Move the fonts back after Visual Basic has been successfully installed.
Resolution 4
Reduce path size to allow for more registry entries
Step-by-Step Example- Examine the directory structure into which you have loaded applications on your system. The full directory path for DLLs is entered into the SharedDLLs registry key and the number of characters in the path reduces the number of entries in a registry key.
- In order to allow for more Registry entries, you may wish to uninstall particular applications and then reinstall the applications closer to the root directory.
- Install Visual Basic again.
STATUS
Microsoft is researching this problem and will post new information here in
the Microsoft Knowledge Base as it becomes available.
REFERENCESFor additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
185647 PRB: Setup Error 168: Setup Encountered Error Updating Registry
Modification Type: | Major | Last Reviewed: | 11/18/2003 |
---|
Keywords: | kbprb kbRegistry kbsetup KB189625 |
---|
|