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

Shortcut using Anonymous Subdirectory generates ICE64 error #7846

Open
chrpai opened this issue Nov 8, 2023 · 1 comment
Open

Shortcut using Anonymous Subdirectory generates ICE64 error #7846

chrpai opened this issue Nov 8, 2023 · 1 comment
Labels
up for grabs No one volunteered to fix the issue. If you are interested, comment with "I want to fix this issue"

Comments

@chrpai
Copy link

chrpai commented Nov 8, 2023

Bugs

  • Which version of WiX are you building with?

4.0.2

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

17.7.6

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

Heatwave 1.0.2

  • Which version of .NET are you building with?

.NET 4.8

  • Describe the problem and the steps to reproduce it.

Author a fragment like such and consume it a Package:

  <Fragment>
    <ComponentGroup Id="HeatUIFiles">
      <Component Directory="INSTALLLOCATION">
        <File Source="$(var.SourceDir)\HeatUI.exe" KeyPath="yes">
          <Shortcut Id="shortcut" Name="HeatUI" Directory="ProgramMenuFolder" Subdirectory="IsWiX" Advertise="yes" />
        </File>
      </Component>
    </ComponentGroup>
  </Fragment>

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

I expected the built MSI to pass validation. Instead I get the error message:

ICE64 ERROR The directory dOzQ.Wc6BCc8xI7HkgS3Ashl4LrM is in the user profile but is not listed in the RemoveFile table.

As I didn't author the anonymous directory, I'm not sure how to fix this other then disabling ICE64 validation. If I remove the Subdirectory attribute the error goes away.

Is this just a case of ICE being wrong? Should anonymous directories author RemoveFile table entries? Should I be authoring my WiX in a different way?

@chrpai chrpai added the triage label Nov 8, 2023
@barnson barnson added up for grabs No one volunteered to fix the issue. If you are interested, comment with "I want to fix this issue" and removed triage labels Nov 14, 2023
@barnson
Copy link
Member

barnson commented Nov 14, 2023

Could automate creation of component/RemoveFile dance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
up for grabs No one volunteered to fix the issue. If you are interested, comment with "I want to fix this issue"
Projects
None yet
Development

No branches or pull requests

2 participants