This article was previously published under Q159411
This article has been archived. It is offered "as is" and will no longer be updated.
IMPORTANT: This article contains information about editing the registry.Before you edit the registry, make sure you understand how to restore it ifa problem occurs. For information about how to do this, view the "Restoringthe Registry" Help topic in Regedit.exe or the "Restoring a Registry Key"Help topic in Regedt32.exe.
During the installation of a Visual Basic application that uses Jet, amessage box entitled "APPNAME Setup" appears with the following errormessage:
NOTE: The file name, date, version number, and size shown in the errormessage may vary according to the build of Jet being distributed.
The 32-bit Jet components are registered as installed to a network serverwith a UNC path. The error message appears because this registration occursbefore you install your Visual Basic application.
NOTE: Microsoft Developer Support does not support the modification of thesetup process or any of the setup files. Support is provided for the SetupWizard only on an "as is" basis.
Several workarounds are possible. The following three are recommended:
"Trick" setup into thinking DAO is not installed by removing the offending registry reference to the UNC path. Use the Regedit utility to find the DAO key for Visual Basic 5.0 and the DAO350 key for \ Visual Basic 6.0.
WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.
For information about how to edit the registry, view the "Changing Keys And Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it. If you are running Windows NT, you should also update your Emergency Repair Disk (ERD).
There will be a value named "Path" in the following form:
Rename "Path" to "OldPath," and re-run the application setup.
If the Jet components are already installed on all the workstations, remove them from the application setup routine.
(NOTE: This is the most reliable method.) Modify the code in the Setup1.vbp project as follows:
Make a backup copy of the \VB\setupkit\setup1\Setup1.exe file
Open the Setup1.vbp project located in \VB\setupkit\setup1\setup1.vbp
Go to the strGetDAOPath() subroutine in the basSetup1.bas module and locate this section of code:
If RegOpenKey(HKEY_LOCAL_MACHINE, strKey, hkey) Then RegQueryStringValue(hkey, strValueName, strPath) RegCloseKey(hkey) End If
Insert this line of code immediately following the preceding section:
If Left(strPath, 2) = "\\" Then strPath = ""
If the DAO Path or the DAO350 Path is a UNC Path, Setup1 does not consider Jet to be installed.
Save the project.
Make the Setup1.exe program by choosing File Make Setup1.exe menu.
Run the Setup Wizard again to re-create the setup process for your project.
This behavior is by design.
The Setup1 project routines that check the validity of the installationpaths will mark UNC paths as invalid. UNC paths for DAO frequently occur onsystems where you install Office95 from a network server that uses UNCpaths, and select the option to leave system components on the network.
Microsoft Visual Basic 5.0 Professional Edition, Microsoft Visual Basic 6.0 Professional Edition, Microsoft Visual Basic 5.0 Enterprise Edition, Microsoft Visual Basic 6.0 Enterprise Edition, Microsoft Visual Basic 4.0 Standard Edition, Microsoft Visual Basic 4.0 Professional Edition, Microsoft Visual Basic 4.0 32-Bit Enterprise Edition