File Search Problems - 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!

PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

File Search Problems

I am trying to use the search facility to find if a file specified by a public property exists. The search is running in the folder [SourceDir]. This all appears to work except when I run the install from the command line and attempt to define the property, e.g. msiexec /i setup.msi FILE_NAME=myfilename.txt. In this case the search appears to fail despite the Windows installer log apparently showing the expected value for the property FILE_NAME. Any hints as to what I am doing wrong?

Phil
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: File Search Problems

Hi Phil,

It should not matter the way the property is set. Can you please send us the aip file and a verbose log to support at advancedinstaller dot com so we can investigate them?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

Re: File Search Problems

I've sent you the requested files.

Thanks

Phil
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: File Search Problems

Hi Phil,

The "Name" field where you have used the property is pseudo-formatted, this means the property is resolved at build-time, not at install-time. Notice the '|' character, which denotes the pseudo-formatted field.

I'm afraid you cannot use a property set from the command line or from the package UI to specify the name of the file to search.

If the file name is changing the only method is to create your own search in a custom action, that sets a random public property with the result.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

Re: File Search Problems

PhilB wrote:Notice the '|' character, which denotes the pseudo-formatted field
I wondered what that meant!

Thanks

Phil

Return to “Common Problems”