PDA

View Full Version : Conditionally include file



NewsArchive
02-17-2012, 01:32 AM
Hi Friedrich,

I have a situation where I need to distribute an install without one file,
based on condition. I have a compiler variable that I set from BA. I have
successfully used it to conditionally hide one dialog where the user can
check to install this file and also where the file is installed, but the
file is still included in the install. Since this file is 2/3 of the size
of the full install I would like to be able to exclude it from being
included in the install. Can I do that from BA?

I could just replace the file with an empty file when the condition is
right, do that from BA, but I wondered if SB can do this for me?

Best regards,

--
Arnór Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com - www.altawebworks.com
Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
02-17-2012, 01:33 AM
Hi Arnór,

Yes, absolutely no problem! You can conditionally include/exclude files
from being included in your install. You can use the '#if' compiler
directives to handle this (similar to the attached screenshot).

Friedrich

NewsArchive
02-18-2012, 02:34 AM
Hi Friedrich,

> Yes, absolutely no problem! You can conditionally include/exclude files
> from being included in your install. You can use the '#if' compiler
> directives to handle this (similar to the attached screenshot).

Thanks for the tip! I actually realized that I needed to create a "sub set"
install for this particular situation so I just stripped everything I didn't
need out of it:)

Best regards,

--
Arnór Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com - www.altawebworks.com
Icetips product subscriptions at http://www.icetips.com/subscribe.php