Searches to [SourceDir] fail when using Basic Interface - 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!

stretchedout2
Posts: 16
Joined: Wed Mar 25, 2009 1:37 pm

Searches to [SourceDir] fail when using Basic Interface

I've got an installer (which I just spent the last 2 hours fighting with) which will not allow me to use File Searches to [SourceDir] if I have the "Limit to basic user interface" checkbox checked on 64-Bit Vista Business. Is this a bug?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Searches to [SourceDir] fail when using Basic Interface

Hi,

No, this is not a bug. "SourceDir" is a private property so it's available only in the installation UI. In "InstallExecuteSequence" (when the actual installation runs) you can use the "SOURCEDIR" property, but only after the "ProcessComponents" standard action (this property cannot be used for a search).

Since you want to search for a file in the folder which contains the MSI, you can try using a custom action. You can find some sample VBScript code here.

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

Return to “Common Problems”