>>>>>Is there an API function that can return the directory that the user selects for installation using InstallShield Express? Could you give me a code example?
>>>>>
>>>>>Thanks!
>>>>
>>>>Don't know what you're trying to do but the following returns the path where your EXE is.
>>>>
>>>>
>>>>JUSTPATH(_VFP.ServerName)
>>>>
>>>
>>>Hi Fabian,
>>>
>>>Actually, we need to know what directory was selected during the installation and before the installation is completed. We need to run a "custom action" while still in InstallShield.
>>>
>>>Thanks,
>>>Allen
>>
>>
>>Here's what I use in a VB Script custom action:
>>
>>sTargetFolder=Session.Property("INSTALLDIR")
>
>Thanks, Mark. Now we're stumped again. We need to communicate this directory name to a foxpro exe that is called during the installation. VB script doesn't seem to have any functions for this, like writing the directory name to a text file or calling the exe with a parameter. Any ideas?
>
>Allen
You bet, one way is to have Installshield create an INI file in a temp folder with an entry for the install path. Then when your exe starts, it can get the install path from the INI file. Look in the UT Downloads for PROFILE.PRG for examples of how to read an INI file using FoxPro.