Skip to content

How to make changing MSI install folder work in WiX? #6828

Answered by yanpeng
yanpeng asked this question in Questions
Discussion options

You must be logged in to vote

I try out this solution:

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  <Fragment>
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="INSTALLFOLDER">
        <Directory Id="Libs32Folder" Name="Libs32">
          <Directory Id="LocalesFolder" Name="locales" />
          <Directory Id="SwiftShaderFolder" Name="swiftshader" />
        </Directory>
      </Directory>
    </Directory>
  </Fragment>
</Wix>

change the INSTALLFOLDER in burn

<Variable Name="InstallFolder" Type="string" Value="[AppDataFolder]xxxx\yyyy"/>
....
<MsiPackage
      Cache="no"
      Compressed="yes"
      SourceFile="Packages\wordalpha.msi">
      <MsiPr…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yanpeng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant