Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 890529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:44:50+00:00 2026-05-15T13:44:50+00:00

I have a Visual Studio Installation Project and I want the Installer to create

  • 0

I have a Visual Studio Installation Project and I want the Installer to create a specific folder only if a check box on a ‘Checkboxes (A)’ form that I’ve added to the project UI is checked. The name of the property for the checkbox is CHECKBOXA1 but I have no idea what to put in the Condition property of the folder so that it only gets created if the checkbox is checked.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T13:44:50+00:00Added an answer on May 15, 2026 at 1:44 pm

    In the ‘Condition’ property for your folder, place the following:

    CHECKBOXA1=1

    This will make sure that the folder is only installed if CHECKBOXA1 has been checked.

    EDIT:
    OK, I’ve figured out how to do this, but it’s kind of messed up. Another one of those strange quirks about the Visual Studio Installer.

    Let’s assume that the folder we want to install if CHECKBOXA1 is checked is called ‘Folder1’, and we’ll put a sample file in Folder1 called test.txt.

    First, we need to create a containing folder that will never show up during the install, but we need it for the rest of this to work. So in your File System window, create a folder (I called mine ‘Container’). The Condition property should be set to CHEKCBOXA1=1 like we talked about, and the DefaultLocation property can be set to wherever you want, for example [ProgramFilesFolder]\MyApplication.
    Now here’s the important part. Make sure the DefaultLocation property for the ‘Container’ folder is NOT set to [ProgramFilesFolder]\MyApplication\Container, as that will ALWAYS create a ‘Container’ folder, regardless of the Condition property. OK, that takes care of the container folder. If this is done properly, when you install your application, you will never see the Container folder.

    Now, inside the Container folder in the File System window, create the actual folder you want, Folder1 in this example. Set its Condition property to CHECKBOXA1=1, and also make sure that any content in it has its Condition property also set to CHECKBOXA1=1.

    Now when you run your installation, Folder1 will only appear if CHECKBOXA1 is checked.

    I don’t understand why the Container folder is needed for this to function properly, but it works, so I use it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason, my visual studio 2008 installation doesn't have the Create Test Project
I have Visual Studio 2005 Professional ENU installed and want to create GUIDs using
I have a Visual Studio Setup Project that I use to install a fairly
I have Visual Studio web test attached nicely to a data source, but I
I have visual studio 2008 installed on my PC. Can anyone tell me what
I have Visual Studio 2008 Professional and I am having issues with expanding and
I have Visual Studio 2008 with SP1 installed and it is crashing when I'm
I have Visual Studio 2008 Express SP1 installed on my machine. I tried to
Is there a way to have Visual Studio 2008 automatically add heading information to
I have a Visual Studio (2008) solution consisting of several projects, not all in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.