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

  • SEARCH
  • Home
  • 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 6717533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:51:50+00:00 2026-05-26T08:51:50+00:00

I want to exclude 2 folders by default, unless a component is checked. I

  • 0

I want to exclude 2 folders by default, unless a component is checked. I don’t have all the files individually listed in the [Files] section, as some of them might be added/removed in the future, but there are 2 folders that I need to control.

Here’s the code I have:

Source: "source\*"; DestDir: {app}; Excludes: "\plugins\api,\plugins\shared memory"; Flags: ignoreversion recursesubdirs createallsubdirs;
Source: "source\plugins\api\*"; DestDir: {app}; Flags: recursesubdirs createallsubdirs; 
Source: "source\plugins\shared memory\*"; DestDir: {app}; Components: plugins_api;  Flags: recursesubdirs createallsubdirs; 

What I want:

  • Those subfolders (api and shared memory) should only be copied if
    plugins_api is selected.
  • If the component plugins_api is not
    checked, they should not be copied.
  • I’d rather avoid including
    every file in the .iss file. It is not an option.

What I get with this code:

  • If the component is not checked, the folders are not copied. Ok.
  • If the component was checked, the folders are not copied. Not ok.

So it seems the exclude in the first line affects the other 2 lines. How can I avoid this?

  • 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-26T08:51:50+00:00Added an answer on May 26, 2026 at 8:51 am

    2 points:

    1) You only have the Components entry on one of the special folders.

    2) The special folders, as you have them will be installing their contents direct into the {app} folder.
    If you follow the folders in use:

    Source: "source\plugins\api\*"; DestDir: {app};
    

    Put contents of source\plugins\api\ in {app}

    I expect you want something like:

    Source: "source\plugins\api\*"; DestDir: {app}\plugins\api\; Components: plugins_api; Flags: recursesubdirs createallsubdirs;
    Source: "source\plugins\shared memory\*"; DestDir: {app}\plugins\shared memory\; Components: plugins_api; Flags: recursesubdirs createallsubdirs;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have svn repository where I have scheduled some files and folders to be
How to disable .htaccess for some folders? Example I want exclude htaccess for my
I have the below line in the unix shell script. I want to exclude
we want to have the second biggest element. We first use ANY to exclude
I want to display contents as (not existing) sub-folders. All those sub-folder strings should
I have a dir with files and dirs in it. What I want is
I have a lot of a files in one of my folders that I
Say I want to copy the contents of a directory excluding files and folders
The features I want: 1. compress files and folders into archive. 2. password protect
Is it possible to exclude hidden files and folders from the readdir() function? I

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.