applejax33
Posts: 10
Joined: Wed Jul 24, 2013 7:24 pm

Searching for an installed program (3rd party)

Senerio:

I need to install a dll in a sub-folder of a 3rd party program that is already installed. Such as:

C:\Program Files (x86)\Intuit\QuickBooks Point of Sale x

The common file in each folder is qbpos.exe.

The x version can change based on what version they have installed. How do you find which version they have installed?

Thanks for your input!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Searching for an installed program (3rd party)

Hello,

In order to install a file in a custom folder, you can take a look on the How do I install files in a custom folder? article with related information for hints and guidance.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
applejax33
Posts: 10
Joined: Wed Jul 24, 2013 7:24 pm

Re: Searching for an installed program (3rd party)

I understand the basics, I was wondering if there was a way to search for a file, get the directory location for that file, then install in the same location as that file.

Or check say 3 different directory's to determine where it is and install there.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Searching for an installed program (3rd party)

Hello,

In order to search for the related file directory location you can go in the Search page and use the Wizard New Search toolbar button to quickly and easily set up a new search, following step-by-step directions. The result of your search will be stored in the property assigned to your search operation (by default it is RESULT_PROPERTY).

Then, you can set the APPDIR with the value of the property assigned to the search operation through the Set installer property custom action. Please note that you need to condition the execution of this custom action so it can only be executed when the search operation is successfully (e.g. the related file was found). Just add the name of the search operation in the Condition field of the custom action. (e.g. RESULT_PROPERTY). If you won't condition the execution of this custom action, the APPDIR might be set with an empty string when the .EXE is not found; so you will get an error during installation.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”