[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.setup

How to conditionally include files in msi, depending on VS project build configuration

Sasha Nikolic

11/27/2007 4:22:00 PM

Hi,

Currently I have a VS2005 solution that consist of many setup projects,
these are almost the same, with the only difference that they include some
different content files (in addition to the same project outputs & GUI
elements).

So, my question is here: If I add additional build types (like ReleaseVer1,
ReleaseVer2...), how can I have just one setup project that includes all the
content files, and have those content files in msi only for specific build
type?

For example, if I select ReleaseVer1 as a build configuration, then I start
the build and the created msi will have only file1 (for example), for
ReleaseVer2 only file2 etc... Currently, when I need one of those specific
msi's, I need to build them all and ignore all but one. The problem is not
only build time, but also the maintenance of the bunch of setup projects
(so, lots of redundancy since they are almost the same).

For each project build, I define different conditional compilation symbols,
but dont know how to use this symbol in Condition property of a content
file.

Thanks,
Sasha

1 Answer

Phil Wilson

11/27/2007 9:03:00 PM

0

This is a Visual Studio Setup&Deployment Project question, not an MSI or
framework setup issue, so you might be better off asking in a Visual Studio
forum. Having said that, I don't believe that the Primary Output/Project
output choices in setup projects know about debug or release builds from
other projects.
--
Phil Wilson
[MVP Windows Installer]

"Sasha Nikolic" <sasha@nikolic.net> wrote in message
news:87B1C834-EAAD-44F3-B2FD-238843DFD718@microsoft.com...
> Hi,
>
> Currently I have a VS2005 solution that consist of many setup projects,
> these are almost the same, with the only difference that they include some
> different content files (in addition to the same project outputs & GUI
> elements).
>
> So, my question is here: If I add additional build types (like
> ReleaseVer1, ReleaseVer2...), how can I have just one setup project that
> includes all the content files, and have those content files in msi only
> for specific build type?
>
> For example, if I select ReleaseVer1 as a build configuration, then I
> start the build and the created msi will have only file1 (for example),
> for ReleaseVer2 only file2 etc... Currently, when I need one of those
> specific msi's, I need to build them all and ignore all but one. The
> problem is not only build time, but also the maintenance of the bunch of
> setup projects (so, lots of redundancy since they are almost the same).
>
> For each project build, I define different conditional compilation
> symbols, but dont know how to use this symbol in Condition property of a
> content file.
>
> Thanks,
> Sasha