Place files unpacked and component conditions - Advanced Installer Community
andreasmuellergin
Posts: 1
Joined: Tue Apr 19, 2016 10:18 am

Place files unpacked and component conditions

Dear advanced installer team,

We have very many components which we want to distribute with different packages.
In order to include or exclude components i make use of the component conditions.
These conditions check custom properties which i change programatically before starting the build.

The installation process is as expected, the custom properties we define include and exclude the files installed by the msi installer.
Now we also want to have the files placed unpacked next to the msi and we notice that although the custom properties are known at
build-time, all recources are placed unpacked next to the msi installer.

Can you provide an alternative solution which allows us to conditionaly include/exclude components at build-time?

Thanks in advance, Andreas
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Place files unpacked and component conditions

Hello,

Please note that all component conditions are evaluated at install time only. So, the condition you set on a component is meant to be solely used at install time. We do not evaluate them at build time, therefore we cannot conditionally place file next to the MSI at build time.

As a workaround, if you want to conditionally include some components into a setup project, then you can create a merge module (MSM) package for every group of related components and before building the main setup project you can include or remove the MSMs from the main setup.

If you have any question just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”