0
    <Fragment>
        <StandardDirectory Id="ProgramFilesFolder">
            <Directory Id="INSTALLDIR" Name="FurooAccountantSync" />
        </StandardDirectory>
    </Fragment>

    <Fragment>
        <StandardDirectory Id="ProgramFilesFolder">
            <Directory Id="ACCOUNTSYNCDIR" Name="Sync" />
        </StandardDirectory>
    </Fragment>

The problem here is that INSTALLDIR is set to the expected value, but that ACCOUNTSYNCDIR stays empty.

When checking their contents in my dialog with

<Control Id="QueryLabel" Type="Text" X="48" Y="140" Width="220" Height="15" Text="#[INSTALLDIR]#[ACCOUNTSYNCDIR]#" />

this is the result I get:

enter image description here

The problem I am trying to solve is that at installation time (and perhaps also when repairing/patching) the user should be able to select a path to a directory where data will be downloaded. This value should be saved into a local configuration file.

To complete, this is with Wix 6 (well, I did install the latest HeatWave extension in VS2022).

1
  • I might have found the solution, but I need more time testing. I will provide the answer when my installer works completely. Commented May 15 at 8:00

1 Answer 1

1
    <Fragment>
        <StandardDirectory Id="ProgramFilesFolder">
            <Directory Id="INSTALLDIR" Name="FurooAccountantSync" />
            <Directory Id="ACCOUNTSYNCDIR" Name="Sync" />
        </StandardDirectory>
    </Fragment>

This is the solution to my problem, there should apparently not be two fragments for directories.

Sign up to request clarification or add additional context in comments.

1 Comment

This should probably be something that the Candle should catch during the compile. @rob-mensching

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.