Question

Cannot locate the Microsoft Visual Foxpro Support Library

Asked by: mjacobs2929

Created an installshield setup.exe with the vfp9 runtime option selected and the merge module default destination. The runtime files are installed in the default destination directory (\Program Files\Common Files\Microsoft Shared\VFP) and they're all there (vfp9renu.dll,vfp9r.dll,vfp9t.dll)

But when I run the app, it produces the "Cannot locate the Microsoft Visual Foxpro Support Library".

So I've tried copying the runtime files to the application install directory, the windows system32 folder and the windows system folder. Doesn't make a blind bit of difference.

Am I missing a trick here? Do the files need explicit registration? (although I can find them in the registry) Are there other files I need to include or what?

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2006-01-07 at 08:34:00ID21687837
Tags

foxpro

,

visual

,

library

,

support

,

microsoft

Topic

FoxPro Database

Participating Experts
1
Points
500
Comments
10

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. FoxPro Windows 2.5 to Visual FoxPro
    Does anyone know if there is any softwar, that will convert Foxpro Window's screens, programs, etc. to Visual FoxPro ? Thanks !
  2. MTS IN VISUAL FOXPRO
    I have created a DLL in Visual foxpro which uses ADO to connect to the data base.If i register it in MTS available in personal webserver it is registering but if i Register it in MTS available in Windows Nt/Windows 2000 which doesnt have Visual foxpro it says 'Microsoft Vi...
  3. FoxPro 2.5 to VFP 6.0
    I have have found myself in a situation where we have inherited a Foxpro DOS application. It is currently running version 2.5 (b) or something close to that. We want to upgrade it to a version that is supported and is more stable. Unfortunately we have limited VFP staff in ho...
  4. Future of Visual Foxpro
    What is a future of Visual Foxpro? Would it compete Oracle?
  5. FoxPro Newbie
    I'm an MS-Access developer. Have couple of questions: 1. Is it developed by Microsoft? 2. What is the difference b/w FoxPro and Microsoft Visual FoxPro? http://msdn.microsoft.com/vfoxpro/ 3. Difference b/w MS-Access and Visual FoxPro?(When is their usage recommended?) 4. Doe...
  6. clipper---> foxpro
    can anyone please help me to guide as to how i can convert clipper made prg files converted to foxpro prg files. also help me as by what command i can make the exe files executable on lan system thanks

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: CarlWarnerPosted on 2006-01-07 at 10:11:19ID: 15637917

I have done the exact same thing on a few clean PCs with no VFP ever loaded whatsoever and the runtimes registered just fine with the InstallShield setup.  [I have had the situation you report happen at another site, but I can't get enough information from that site to get it fixed.  Actually, I get so little information from that site they may have had it working and didn't think it important to tell me that little fact. <s>]

Let's rule out the obvious things first.

Is that \Program Files\Common Files\Microsoft Shared\VFP part of the Windows path or better yet does anything run fine from that location?  You can check at a Command Prompt by simply typing SET PATH.  Or, you can simply insert a small innocuous exe you know about in that folder and see if you can run that one showing then that Windows can in fact find it.

Oh, by the way, what Windows version are you installing all of this on?  Knowing that can be helpful in getting to a resolution.

Generally, most VFP standard apps don't need the vfp9t.dll file.  I haven't used it all in my standard app that I loaded.  It is for Multi-Threaded DLL support.

VFP 9 Runtime Files
http://fox.wikis.com/wc.dll?Wiki~VFP9RuntimeFiles

And, finally, yes, simply copying the files to a specific folder/directory after the fact won't get the proper settings in the registry.  The InstallShield process places the files where you specify and is supposed to place settings in the registry in that process that tell the system where to find the registered runtime files.  Once you try to execute your compiled .exe, the system first looks in the registry for an entry that corresponds to what you compiled your .exe with, a reference that is embedded in your compiled .exe.  If the system can't find that setting in the registry, or you have moved the runtime files away from where the registry setting says the runtime files should be, you get the error you got.

I always point out this one little thing to may it visually clear to those wondering about this process.  If you are in VFP and you issue a MODIFY FILE <yourexename>.exe NOMODIFY, right near the top of that file, you'll see that reference to the runtime that I mention that gets embedded.  In my VFP9 compiled exe, the entry shows VisualFoxProRuntime.9 .  If you compiled your exe under VFP8 (or less), it won't read the same.  The .9 will be different.  This is how VFP allows you to place different versions of apps compiled under different versions of VFP on the same PC.  The piece that gets embedded in the .exe is what tells the system what runtime version to look for in the registry.

You could also check in the registry to see if in fact the runtime file references got in there at all, let alone pointed to the proper final location to which it should be looking.

You could Run regedit to open up the Registry Editor window.
Go to Edit...Find... VisualFoxProRuntime.9
If it finds an entry for that in the registry, drill down in the layers under that first entry to find the Shell...Open...Command.  Under the Command registry entry to the right, you should see where your local system's reghistry entry is looking for the runtime file it needs to run your compiled .exe.

After all of what I just listed, it could be your InstallShield setup is lacking.  But, I am not sure if that is the case where to tell you to look at this time since my setups work.  But, little steps.

 

by: CarlWarnerPosted on 2006-01-07 at 10:29:00ID: 15638009

BTW, I don't believe that initial folder needs to be in the Windows path.  But it is a common location that MS uses and the registry wants to look there.  The rest of what I posted should apply and help in a solution.

 

by: mjacobs2929Posted on 2006-01-07 at 11:31:12ID: 15638308

Well that gave me a few things to check.

First the path. The shared folder was indeed not in the path. So I added it to the path. Checked that it registered the new path. Tried the test you suggested (exe in the folder). Couldn't find it.  So, for one reason or another it doesn't want to see anything in that folder even if it is in the path. I tested the theory by putting the exe in the System32 folder and had no trouble finding it.

So I copied the files to System32 and then hacked every reference in the registry to point to that folder instead of the original shared folder. (That was fun, as you can imagine)  Given that system32 is obviously visible, I figured if I change all the registry settings to point there instead of the shared folder, it can't fail to see the files. You guessed. It failed.

It is registering version 9. The OS is XPSP2.

Any further suggestions? (While you're thinking about that, I'm going to try telling installshield to install the merge module directly into the System32 folder and see if that makes any difference.)

 

by: mjacobs2929Posted on 2006-01-07 at 12:27:31ID: 15638568

Well that failed but in a way which may be a clue. Despite setting the merge module's default destination to the [systemfolder], when I ran the subsequent setup folder on the remote machine, it had put all the runtime files in the original shared program file folder and pointed to that location in the registry. I didn't bother hand moving the files and hacking the registry again.

I'm wondering if that points to some kind of fault within Installshield Express (I'm using the version 5 freebie that comes with vfp 9).

 

by: CarlWarnerPosted on 2006-01-07 at 13:11:25ID: 15638748

Yeah, I'm not using the freebie version.  When InstallShield had a $99 deal to upgrade to more features, I spent the $99.

Even in the version I'm using, I have found the destination stuff to be a bit confusing.  I have had to run way too many combinations of a simple setup just to see what InstallShield was trying to do for me or to me.

Again, I don't think that path was an issue.

What else do you have in your setup files within InstallShield besides the merge module?  I tried to create a very minimal setup with less files included than I will have when I complete the app I'm working on.  What I setup was just to show something working and really is a throway app because I didn't even have the database structures nailed down when I created this for a site as a demo.  The main merge module that obviously you've included, as did I, is the Microsoft Visual FoxPro 9 Runtime Libraries.

Besides my application .exe and the VFP9 Runtime Libraries merge module, I have the GDI Plus Redist module checked off to include in my final InstallShield created setup.exe.  Also, Microsoft C Runtime Library 7.1 Merge Module is checked off to be included. If you don't have those two others, especially the MS C 7,1 one, I think that the VFP9 stuff won't get loaded properly.  Maybe that's the problem.  You forgot, or didn't even know to include, those other two merge modules.

 

by: mjacobs2929Posted on 2006-01-08 at 04:58:04ID: 15641445

If you select the VFP 9 runtime it automatically selects the other two, (and puts them in their own default destinations which you cannot change because the runtime files are dependent on them).  And all files arrive at the other end.

So we know its not down to missing files. We know that the paths are at least consistent with the registry entries and we know that no-one else on the planet seems to have had this particular problem. Its got to be something stupid I'm doing with the Installshield but I've used it for years without trouble so I'm banging my head against a brick wall!

 

by: CarlWarnerPosted on 2006-01-08 at 11:08:48ID: 15642981

Ignoring the .exe you think you've loaded with your IS setip installation, do you have another VFP9-compiled exe that you can attempt to run on that PC?  I'm just trying to recommend attempting to run any VFP9-compiled app on that PC after you have supposedly installed the VFP9 runtimes to see if your main intended .exe is the problem or not.

Are you sure the .exe you've installed is the one that was compiled with VFP9?  If you have multiple versions of it compiled under other versions, you may have included the wrong one in the InstallShield process.  

Just trying to throw some further odd thoughts on this.

 

by: mjacobs2929Posted on 2006-01-09 at 02:39:56ID: 15647468

OK, the problem has morphed. What I've discovered is that the reason its whingeing about not being able to find the support library is because its looking for vfp8 runtime files.

It is, of course, easy enough to include those but that's not the real issue. What I want to know is why - given that I've recompiled the application in vfp9 - why is something inside it still demanding vfp8 stuff and how can I find the guilty components?

 

by: CarlWarnerPosted on 2006-01-09 at 09:05:30ID: 15651544

I thought something like that may be happening which is why I went to the trouble of explaining how VFP finds the version and that multiple runtimes can exist on a single PC because of how that process works.

Do you have multiple compiled versions of the same exe under VFP8 and VFP9 in your development environment?  Is it possible you've included the VFP8 compiled app version in the InstallShield setup rather than the VFP9 one?  From all I've seen, InstallShield is not smart enough to tell you that you've included the wrong app/exe.  It is smart enough to add the dependent merge modules to the VFP runtimes as you've seen.  But, that isn't the same as you including the correct compiled version of your custom exe in the IS setup.  I had a problem, too, with an exe where InstallShield was still including an older version of the exe I compiled under VFP9 only because I never updated the copy of the exe in the final location that I told InstallShield to look in-- it was using an older different exe over and over rather than one that I had just compiled in a different location and forgot to put into the InstallShield final location.  Did you look at the exe you're including in the setup to see the telltale signature I nentioned in an earlier post (it could be the VFP8 one and it could be the file is coming from a location you didn't realize and obviously a version you never intended)?

 

by: mjacobs2929Posted on 2006-01-11 at 06:02:56ID: 15670461

OK, you've earned your 500. For making me realise I've been operating in dork mode. The relevant exe has indeed been recompiled as vfp9 but I'd entirely forgotten that I run that exe from another one which was had not (up till today that is) been recompiled in vfp9.

Thanks for your persistence!

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...