I'm using AI 4.8.
I am installing a data file for a program that is already installed on the user's machine. Technically I don't know where the user has installed the program, but it ought to be in C:\Program Files\asdf. The program name is qwerty.exe.
I thought I'd use a search to locate qwerty.exe then install to the directory containing that file. I can create the search, but I can't figure out how to make my Application Directory be the directory that contains the file I was searching for.
Then I thought I'd use a search to locate the directory asdf, then install there. That works as long as the directory exists. If it doesn't, then my file is installed to asdf but that doesn't do much good because the qwerty.exe program is going to look for it somewhere else. I tried creating a prerequisite that would test to see if the target of the search existed, but I couldn't figure out how to do that.
Also, since I know the program is probably in C:\Program Files\asdf, it seems dumb to search for asdf then always install to C:\Program Files\asdf even if it doesn't exist. So for now I've given up on searching and I just install to [ProgramFilesFolder]asdf. This works as long as the user didn't change the default location of the original program when they installed it.
I should point out that the installer for qwerty.exe isn't under my control (actually it is but there are thousands of existing copies out there that I can't "recall") so I don't have the option of writing a registry value or something like that during install of qwerty.exe.
So what I really want to do is search [ProgramFilesFolder] and its subfolders for qwerty.exe. When I find it, I want to install my data file to the folder that contains that file. How do I do that with AI?
Thanks for your help.
FOLLOW US
Get the latest news in Application Packaging