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!

marcelo
Posts: 103
Joined: Fri Sep 28, 2007 2:07 pm

Search order: Searches creation order is not maintened?!

Hi there,

I'm having a bit of a problem setting up 2 searches.

The first search, looks for a key on the registry, that contains a Path to a file.
The second search, looks for a file, using the result of the first search. When I create them I create them in order, and both searches work perfectly; but then I re-open the Avanced installer project, it re-orders the searches and my second search (For the file) stops working since it runs before the first search(for the registry). It looks like the searches are ordered alphabetically and that is causing the problem.

Ex.

"PathForFile" (Searches for the key with the path on the registry)
"IsFileThere" (Searches for the file, using the "PathForFile" as the folder property).


Is there a way to force the execution sequence of the searches?Renaming the searches as A_Somename, B_Somename doesn't seem to solve the problem.

Thanks
Marcelo
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,
Is there a way to force the execution sequence of the searches?Renaming the searches as A_Somename, B_Somename doesn't seem to solve the problem.
I'm afraid that this cannot be done because the order of the searches specified in the MSI is not guaranteed by Windows Installer, therefore it is not recommended to use a search which depends on another search.

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

Return to “Common Problems”