Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with msvcr71.dll on install?

Status
Not open for further replies.

amwprogg

Programmer
Jul 8, 2005
52
GB
Hi all.
I am installing a VFP9 application with InstallShield - works fine on most installs - but sometimes it crashes out of the install saying "Cannot find msvcr71.dll".
This file is definitely there, in the INSTALLDIR.
Anyone else had this problem?
Thanks.
Andy.
 
Is the InstallDir the default directory when the program is starting up?

(It's not good enough for a SET DEFAULT command inside your code to go to that directory, since that DLL is needed before the .EXE can execute any of your VFP code)

It could be that all of your installs work identically, and the computers that don't have a problem are the ones that already had msvcr71.dll in their Windows directory (or elsewhere on the path)

- Bill

Get the best answers to your questions -- See FAQ481-4875.
 
Thanks Bill.
How can you make INSTALLDIR your Default Directory before you execute, as the user can change the default during install if they so desire?
 

How can you make INSTALLDIR your Default Directory before you execute

The INSTALLDIR is the default directory as seen by InstallShield. It has nothing to do with VFP's default directory, or vice versa.

By default, VFP's default directory is the directory from which you launch the EXE. As I'm sure you know, you can change it from within the app via SET DEFAULT or ChDir.

To change it the default directory before you launch the app, create a shortcut to the app, then, in the shortcut properties, enter the relevant path in the "Start in" field.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top