View Full Version : changing INSTALLDIR based on results of appsearch

06-09-2004, 12:32 PM
specifically, i'd like to use appsearch to search for an executable file. if it returns true (the file exists), id like to change the INSTALLDIR to the location of the executable, if it returns false (the file doesnt exist), id like to allow the user to try to browse for the directory manually. i dont want to set it as an install condition because if i do that, then the install will fail if the file is not found. if anyone has any suggestions at all, please feel free to contribute.

-thanks in advance

06-10-2004, 10:24 AM
I am also very interested in the solution to this problem...

06-15-2004, 05:15 PM
How about in your installscript you can check if the property from appsearch is set then you can set INSTALLDIR equal to it, if not you can allow the user to pick.

06-15-2004, 05:40 PM
is there any way to do it without using Installscript?

06-15-2004, 11:22 PM
Perhaps condition control events based on the AppSearch property: show a directory-browse dialog box if the property is unset, otherwise skip it. Similar to how the SetupType dialog box moves to either CustomSetup or ReadyToInstall based on the user's selection...