Skip to content

Conversation

bricelam
Copy link

Fixes #673

@bricelam bricelam requested a review from a team as a code owner May 13, 2025 20:14
@bricelam
Copy link
Author

bricelam commented May 14, 2025

Note, there's still an embedded CAB file inside the MSI that doesn't get signed. But AFAICT, it never gets laid out on disk, and its container--the MSI--gets signed anyway, so integrity is still guaranteed.

<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
<!-- TODO: Mirror WixToolset.Dtf.WindowsInstaller.Package and dependencies -->
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be resolved before this PR is merged.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are the instructions for mirroring a package. Also be sure to revert this file.

@bricelam
Copy link
Author

I wasn't sure what to do about testing here. I've tested it manually, of course. But generating an MSI in the tests felt like overkill and would require significant new dependencies. I also considered checking in a test MSI, but wasn't sure you guys would go for that. Let me know if (and how) you want me to add more tests.

@bricelam
Copy link
Author

Fixing this will probably make #647 and #775 more urgent for some users.

@Foda
Copy link
Member

Foda commented Jun 5, 2025

@bricelam I was able to verify this manually, but this only works if the .cab your .msi uses is embedded. It causes a regression with .msi installers with non-embedded .cab files (ie: #875). It throws in the wixtoolset code and appears as a "file not found" error in a temp folder.

@Foda
Copy link
Member

Foda commented Jun 10, 2025

@bricelam I was able to verify this manually, but this only works if the .cab your .msi uses is embedded. It causes a regression with .msi installers with non-embedded .cab files (ie: #875). It throws in the wixtoolset code and appears as a "file not found" error in a temp folder.

Just a follow-up: it's probably OK for this regression as long as it doesn't roll out in a release. We'd like to add a new flag that doesn't recurse into file containers to go along with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sign all unsigned assemblies in a .msi

3 participants