PDA

View Full Version : identify parameter for file location


eruiz
12-05-2003, 02:27 PM
My installer checks the user computer to see if it contains a file e.g. any.exe. Once it locates the file, I would like to identify its location and assign it a variable. E.g., If the file is located in:

C:\Program Files\app\any.exe, Then I want to create a variable containing "C:\Program Files\app\"

How can I do so? I want to use this variable during the install folder screen so that it defaults to "C:\Program Files\app\" and install my software in that folder.

Thanks
Em

bab
12-05-2003, 04:06 PM
If you use the "Search for File" action you can assign the resulting path to a varibale. There are several option as to where you want to search on the users computer.

Once you have the full path in a vaiable you can use the "Parse Path" action to get the folder part of the path in another variable. This can then be used as the default in the folder location dialog.

Hope this helps,
Barb