Conditional file install - 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!

ug123
Posts: 3
Joined: Wed May 09, 2012 1:53 pm

Conditional file install

I have an installation which needs to make a conditional install depending if a specified file exists.

A) If file foo1.dll exists then install fileA and fileB
B) If file foo1.dll does not exists then install fileC instead of (fileA and fileB)

The files should be installed to the same sub folder in the application folder.

(In both cases other files are installed to the same sub folder as well)

What is the easiest way to accomplish this?

Thanks in advance
Ulrik
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Conditional file install

Hi Ulrik,

The simples solution for this is to make a file search from Search page, then use the search name, which is actually a public property, in the condition
field of the components associated with those files. To locate the components just select each file and press F8.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”