Changing values/properties in a Setup Project based on code/build configuration?

Posted on 2011-10-19
Last Modified: 2012-05-12
hi guys,

i have an application which im building a setup project for (deployment .msi). for simplicity i've created build configuration in my applications .vbproj which basically have different compile variables which remove certain bits of code from compilation and also changes the applications icon once its compiled.

the problem is that because my main application has different icons based on which build i compile, there are various sections of the setup project which should really display different icons to reflect the main applications release. so for example in the setup, the dialog banner needs to be different based on build version. i also have four different help files which i maintain side by side. depending on the build configuration im compiling with, it would be nice to be able to select which of the help files i actually extract to the application folder. now i've seen that in the properties of included files theres a "condition" which one can set, however im finding it difficult to somehow tie this to the configuration build or something just as easy.

as a last resort i suppose i can have 4 different setup projects, one for each build....or always go and manually change these values (which is very prone to accidents), however i've really prefer if there was a more automatic way of doing this, does anyone have any ideas?

Question by:gem56
    LVL 14

    Accepted Solution


    Author Comment

    hi raja, thanks for your reply. not *exactly* what i was looking for, but helpful non the less. thanks mate :)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Javascript: Crash Course

    Javascript is not only emerging as the most important language to know, it's flexibility is unique. With Javascript being deployed on the web, mobile and even the desktop this is the one language that all technologists need to know.

    This is an explanation of a simple data model to help parse a JSON feed
    This is about my first experience with programming Arduino.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now