1

I have a WiX v4 project which uses a bootstrapper, declared in a <Bundle>. I want to set the default InstallFolder based on the program files folder, so I've structured it like this:

<Wix ...>
    <Bundle ...>

        <Variable Name="InstallFolder" Type="string" Value="[ProgramFilesFolder]MyProduct" />
        
        <BootstrapperApplication>
            <bal:WixStandardBootstrapperApplication Theme="hyperlinkLicense" LicenseUrl="" />
        </BootstrapperApplication>

        <Chain>
            ...
        </Chain>

    </Bundle>
</Wix>

However the [ProgramFilesFolder] doesn't resolve, and all I see is this:

Install folder selection

I've seen a couple of examples online suggesting this is how it's done (and no obvious documentation from wix toolset showing how to resolve variables in a bundle). What am I doing wrong?

1 Answer 1

1

Change your variable Type="string" to Type="formatted" and the variable [ProgramFilesFolder] will be resolved

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

1 Comment

Yes, just tried it and it works - thanks!

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.