-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Bundle installers fail to install, "0x80070001 - Incorrect function" #3742
Comments
Reproduces for me too. Also:
Important-seeming bits of the logs:
(The MSI isn't successfully extracted and started, so the bundle log is the only one.) Reproduces on earlier builds too, e.g. x86 and x64 WD installer outputs from https://dev.azure.com/dnceng/internal/_build/results?buildId=320694. Opening up the bundle in BurnBundleReader, I can take out the MSI fine, and it's the right size and has the same checksum as what's listed in @joeloff do you have any ideas what's going on? I'm going to try to find the cutoff point for this issue in build outputs. |
Last OK 3.0-preview9: dotnet-runtime-3.0.0-preview9-19419-06-win-x64.exe |
Looks like the changes to introduce the WD bundle caused the MSIs inside the bundle to no longer get signed. I don't know how to solidly connect that to the error--I checked because of wixtoolset/issues#5716 (comment). I do know they should be signed, though. |
Looks like a typo in the item type that the MSI signing proj is meant to depend on, causing it to run too early and miss the runtime MSIs. Trying out a fix. |
Was the bundle engine signed? Typically the signing process is to sign the MSIs, build the bundle. Then use Insignia to extract the bundle engine, sign that EXE, attach the engine back to the bundle with insignia and then sign the bundle EXE |
Not sure how to tell for sure, extracting the engine from the good and bad bundles give me unsigned EXEs. (But it would make some sense if the cert weren't extracted by the tool, since usually the engine is extracted in order to sign it anyway.) I poked through the logs to try to check that way, and it looks like there are a few issues there too--attaching not finding the right project files, and the WindowsDesktop extract/attach using |
This is very likely an issue with not signing the bundle engine, e.g. http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Burn-3-8-1128-Error-0x80070001-Failed-to-extract-all-files-from-container-erf-1-2-0-td7593695.html |
I think you're right, signing the MSIs alone doesn't cause the error to change. (I kicked off a validation build with only this change before I spotted more issues.) The build log shows that the reattachment target doesn't actually run, so yeah, although I don't know how to see it from the end results, the engine isn't signed. I have a build running that should have this fixed to test out. |
dotnet/core-setup#7820 fixes this, installers from validation build are signed, contain signed MSIs, and install properly. |
The fix is now merged in all the affected branches, and the 3.0 latest download links give me working installers now. Thanks for trying out the installers and reporting this, @mscrivo. 😄 |
Steps to reproduce
Download the WindowsDesktop installers from:
https://dotnetcli.blob.core.windows.net/dotnet/Runtime/release/3.0/windowsdesktop-runtime-latest-win-x64.exe
https://dotnetcli.blob.core.windows.net/dotnet/Runtime/release/3.0/windowsdesktop-runtime-latest-win-x86.exe
and run them
Expected behavior
Installer should install successfully
Actual behavior
Error during installation:
Environment data
Microsoft_Windows_Desktop_Runtime_-3.0.0(x64)_20190823100101.log
The text was updated successfully, but these errors were encountered: