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 8431123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:46:19+00:00 2026-06-10T05:46:19+00:00

Pretty simple question, suppose my app will be installed as myApp +– bin +–

  • 0

Pretty simple question, suppose my app will be installed as

myApp
 +-- bin
 +-- lib

I’d like to rename “lib” to “plugins” after installation, how can i do that?

There is a MoveFiles Element that might help, but no idea how to use it.

EDIT:

The problem here is, in my case, source files could be installed into different paths, this scenario described in here.

The only way I can figure out is to create two component groups and install them conditionally. However, using heat to harvest same subdir twice will cause ID conflicting, so I’m thinking to use different paths(e.g. lib and another-lib), and then rename one of the path back after installation, so this question arised…

  • 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-06-10T05:46:20+00:00Added an answer on June 10, 2026 at 5:46 am

    I finally wrote a C++ program to extend heat generated wxs with another directory structure. So we can decide which path to install under different situations. It worked just like changing name during installation.

    Here is the wxs file patched by my program. Basically it creates another directory WEBIDR and different subdirs, then adds another component group webGroup for later reference by condition element.

    You can do the same thing manually, but if there are thousands of files awaiting, and if they are frequently updating, maybe a program(or script) is a better choice.

    <Fragment>
        <DirectoryRef Id="INSTALLDIR">
            <Directory Id="dirA5528701EE26FFBF346CCE20EE8ACE99" Name="bin">
                <Component Id="cmpEBA9C2A32D81BA8646BD1A64DBB39DB1" Guid="{142C531A-C71C-4890-9318-0FC42026C8FC}">
                    <File Id="filDB56E052EC783676CEF361C0C5AA71F3" KeyPath="yes" Source="$(var.runDir)\bin\boost_date_time-vc100-mt-1_47.dll" />
                </Component>
            </Directory>
            <Directory Id="dir3279BEF4E08D9A00D2F205F325F00A81" Name="modules">
                <Component Id="cmpDECCAE13F8937500E4AC367A8EAC95F4" Guid="{85CC0C94-1BFB-4062-BC4E-FBF143921301}">
                    <File Id="filDD3B40D68D0437B18B1108FBA49ABC1B" KeyPath="yes" Source="$(var.runDir)\modules\HelloAPI.dll" />
                </Component>
            </Directory>
        </DirectoryRef>
        <DirectoryRef Id="WEBDIR">
            <Component Id="webcmpEBA9C2A32D81BA8646BD1A64DBB39DB1" Guid="{fec110c5-a1a0-4b07-8a35-50f1af84001a}">
                <File Id="webfilDB56E052EC783676CEF361C0C5AA71F3" KeyPath="yes" Source="$(var.runDir)\bin\boost_date_time-vc100-mt-1_47.dll" />
            </Component>
            <Directory Id="webdirpluginF4E08D9A00D2F205F325F00A81" Name="plugins">
                <Component Id="webcmpDECCAE13F8937500E4AC367A8EAC95F4" Guid="{3ef79a47-7681-4991-9726-02db38c22f6d}">
                    <File Id="webfilDD3B40D68D0437B18B1108FBA49ABC1B" KeyPath="yes" Source="$(var.runDir)\modules\HelloAPI.dll" />
                </Component>
            </Directory>
        </DirectoryRef>
    </Fragment>
    <Fragment>
        <ComponentGroup Id="runGroup">
            <ComponentRef Id="cmpEBA9C2A32D81BA8646BD1A64DBB39DB1" />
            <ComponentRef Id="cmpDECCAE13F8937500E4AC367A8EAC95F4" />
        </ComponentGroup>
        <ComponentGroup Id="webGroup">
            <ComponentRef Id="webcmpEBA9C2A32D81BA8646BD1A64DBB39DB1" />
            <ComponentRef Id="webcmpDECCAE13F8937500E4AC367A8EAC95F4" />
        </ComponentGroup>
    </Fragment>
    

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

Sidebar

Related Questions

This is seems like a pretty simple question, but I'm not sure if there's
Pretty simple question: will the result of b2Body::GetLinearVelocity tell me if an object is
Pretty simple question - I have an attribute that I would like to have
Pretty simple question. I'm quite certain I have the Class, method, codebehind, etc linked
Pretty simple question. I have a few ASP RequiredFieldValdators checking some text boxes. Out
Pretty simple question. I've got some Polygons and GroundOverlays defined in KML. Is there
This is a pretty simple question but I'm somewhat stumped. I am capturing sections
I have a pretty simple question which perhaps someone familiar with Server/Client design &
i have pretty simple simple question (i hope so). How do i change the
hopefully a pretty simple question this time. I have a Select method in a

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.