Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Discovering the PATH...
Message
From
10/09/1997 20:01:41
 
 
To
10/09/1997 19:52:01
Renato De Giovanni
Via Fractal Information Systems
São Paulo, Brazil
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00048396
Message ID:
00049440
Views:
61
>>>>Hi Renato!
>>>>
>>>>Sorry, that I missunderstood you. So, you know the name of an exe (e.g. "another.exe"), and want to know if it is on the disk somewhere. If it is, you want the fullpath. I guess, you have to search for the file in all directory on all avalable local drive. In UT KB section you can see in API section how to catch ALL available local harddisk. Then, you sould search for the file name in all directories. You can do it with ADIR() ASCAN() functions in a reqursive manner.
>>>>I dont know about filesearch function in WIN32API. But, it is possible, that it exist, or there is a ready-to-use VFP function somewhere.
>>>>
>>>>BB
>>>
>>>Thank you (Bela and Vinod), but that kind of solution I could also figure out. I was wondering exactly about the existence of some GetFilePath API function.
>>>
>>>I'm not used to deal with API functions, but I know the Vfp installation process writes information on the win registry files (there is for sure a GetFileVersion function). So, if it also stored the path in somewhere at the registry, it would probably be more practical and secure to get it from there.
>>>
>>>I mean secure because the user can perfectly have a backup, so the way you have suggested could get the "wrong" path (since I need to do maintenance only on the data files originally installed).
>>>
>>>Thanks again,
>>>
>>>Renato
>>
>>You can register (into the Registry, obviously) the path first time you run the app. After that, you can retrieve this info from the regsitry from any other app.
>>
>>Check the Files section for an utility (very good) to deal with registries.
>>
>>Vlad
>
>Hi Vlad!
>
>When we try to install a Vfp application for the second time, the Setup.exe detects that the application has already been installed before (then it shows a different window with options to reinstall, add/remove or uninstall...)
>
>Do you have any idea about how does it work to seach for the installed components?
>
>(Maybe it saves the directory of installation to disk1 on the first time, what do you think?)

I never "worried" about that for VFP apps. I know that other apps create an install directory. If you delete this directory the install program doesn't see the previous installation.

Not too much help, hum! :)

Vlad
Previous
Reply
Map
View

Click here to load this message in the networking platform