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

Dark exception when extracting a bundle with detached containers #6298

Closed
nirbar opened this issue Dec 14, 2020 · 5 comments
Closed

Dark exception when extracting a bundle with detached containers #6298

nirbar opened this issue Dec 14, 2020 · 5 comments
Labels

Comments

@nirbar
Copy link

nirbar commented Dec 14, 2020

  • Which version of WiX are you building with?
    3.11.2.4516

  • Which version of Visual Studio are you building with (if any)?
    VS 2019 v6.8.1

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

  • Which version of .NET are you building with?
    .NET Framework 4.8

  • Describe the problem and the steps to reproduce it.
    Create a bootstrapper project with detached containers.
    Execute dark.exe to extract the packages
    Getting an exception:
    dark.exe : error DARK0001 : Could not find file 'D:\Projects\Tests\Bootstrapper-Detached-Container\Bootstrapper-Detached-Container\bin\Debug\Bootstrapper_Detached_Container\AttachedContainer\a0'.

Exception Type: System.IO.FileNotFoundException

Stack Trace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalMove(String sourceFileName, String destFileName, Boolean checkHost)
at Microsoft.Tools.WindowsInstallerXml.BurnReader.ExtractAttachedContainer(String outputDirectory, String tempDirectory)
at Microsoft.Tools.WindowsInstallerXml.Unbinder.UnbindBundle(String bundleFile, String exportBasePath)
at Microsoft.Tools.WindowsInstallerXml.Unbinder.Unbind(String file, OutputType outputType, String exportBasePath)
at Microsoft.Tools.WindowsInstallerXml.Tools.Dark.Run(String[] args)

(Be as specific as you can and err on the side of providing too much information, including code, error messages, command lines you used to invoke the build, and so forth.)

  • Describe the behavior you expected and how it differed from the actual behavior.
    Dark successfully extracts the detached cabinets

See attached solution that demonstrates the issue
Bootstrapper-Detached-Container.zip

@rseanhall
Copy link
Contributor

Is there any chance you can add a failing test for this in https://github.com/wixtoolset/Core?

@nirbar
Copy link
Author

nirbar commented Dec 20, 2020

I'm not familiar with the new code structure...
Where's dark?

@rseanhall
Copy link
Contributor

dark is now wix.exe decompile. You can see some decompiling tests in DecompileFixture. For the MSI's, we've been checking them in because most of them can't be created by WiX. For bundles, I would prefer that the test build the bundle and then decompile it since we don't have to deal with bundles created by third party software.

nirbar added a commit to nirbar/Core that referenced this issue Dec 21, 2020
@nirbar
Copy link
Author

nirbar commented Dec 21, 2020

Added the test- wixtoolset/Core#204

@rseanhall
Copy link
Contributor

dark doesn't support extracting detached containers, this only happens in your fork of WiX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants