Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anonymous Directory Ids Inconsistent #7861

Open
chrpai opened this issue Nov 15, 2023 · 0 comments
Open

Anonymous Directory Ids Inconsistent #7861

chrpai opened this issue Nov 15, 2023 · 0 comments
Assignees
Labels
Milestone

Comments

@chrpai
Copy link

chrpai commented Nov 15, 2023

If this issue is a bug:

4.0.3

  • Which version of Visual Studio are you building with (if any)?

17.8.0

  • Which version of the WiX Toolset Visual Studio Extension are you building with (if any)?

1.0.2

  • Which version of .NET are you building with?

N/A

  • Describe the problem and the steps to reproduce it.

Consider the following fragment. If I omit RemoveFolder elements for 1 and 1\2 I get an error from ICE64 because only 3 is in the table. However if I add them I still get an error from ICE64 but I see 1 2 and 3 in the table. However the Directory table now has 5 entries. 1 and 2 are duplicated with different Ids and 3 exists only once.

<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
  <?define SourceDir="..\Deploy"?>
  <Fragment>
    <ComponentGroup Id="AppFiles">
      <Component Directory="INSTALLLOCATION">
        <File Source="$(var.SourceDir)\app.exe" KeyPath="yes">
          <Shortcut Id="sc1" Name="App" Directory="DesktopFolder" Subdirectory="1\2\3" Advertise="yes" />
        </File>
        <RemoveFolder Id="rf1" Directory="DesktopFolder" Subdirectory="1" On="uninstall" />
        <RemoveFolder Id="rf2" Directory="DesktopFolder" Subdirectory="1\2" On="uninstall" />
        <RemoveFolder Id="rf3" Directory="DesktopFolder" Subdirectory="1\2\3" On="uninstall" />
      </Component>
    </ComponentGroup>
  </Fragment>
</Wix>

  • Describe the behavior you expected and how it differed from the actual behavior.

The anonymous ids generated by the component element and the removefolder elements should match resulting in the 2 extra entries from not being in the MSI and ICE64 passing because there are no additional elements in the directory table.

@chrpai chrpai added the triage label Nov 15, 2023
@barnson barnson added compiler and removed triage labels Nov 28, 2023
@barnson barnson added this to the v5.0.0-preview.1 milestone Nov 28, 2023
@robmen robmen modified the milestones: v5.0.0-rc.1, v.Future Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants