Find multiple files - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

StefH
Posts: 8
Joined: Fri Aug 08, 2008 10:54 am

Find multiple files

Hi,

how about a file-search function that allows you to find all files with one name and then selects either the highest or lowest version. The idea behind this is that you only need one search for the file and then decide which files to install with the highest found version number.

Regards
Stefan
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Find multiple files

Hi Stefan,
how about a file-search function that allows you to find all files with one name and then selects either the highest or lowest version.
Please note that this is somewhat supported by the current file search. When searching for a file you can specify its minimum and maximum versions. If the version of the file is in this range then the search is successful.

Note that Advanced Installer uses the Windows Installer engine to perform the searches. Since Windows Installer doesn't support this type of custom searches, I'm not sure if will implement a feature which does. However, what you need can be done by using a custom action.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
StefH
Posts: 8
Joined: Fri Aug 08, 2008 10:54 am

Re: Find multiple files

Hi Cosmin,

am I right that you are suggesting something like performing a search through the program-folder and store the path and the version number of the found files?

Kind Regards
Stefan
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Find multiple files

Hi Stefan,

No, the file search will be successful only if it finds a file which meets the search criteria. If this happens, the property of the search will be set to the path of the file. If no file cannot be found, the property of the search will be empty.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
StefH
Posts: 8
Joined: Fri Aug 08, 2008 10:54 am

Re: Find multiple files

Hi Cosmin,

that would mean if I would have the versions 1, 2 and 3 of a program installed that I would have to perform a search for each version and then use a script to decide which one is the highest installed (I am thinking about checking which one is not empty and compare the remaining version-number).
My problem is that I do not know which version of the program is installed and I want to deliver only one *.msi, which includes the files to all possible versions.

Kind Regards
Stefan
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Find multiple files

Hi Stefan,
if I would have the versions 1, 2 and 3 of a program installed that I would have to perform a search for each version and then use a script to decide which one is the highest installed
Please note that it's easier to do this from inside a custom action because the properties of the searches will contain the paths to the files. Here you can find a sample script for finding a file.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Feature Requests”