Forum Discussion
MSIX Hero - access to the path is denied
MSIX Hero uses internally msixmgr.exe, and the error is actually coming originally from it. This is some rare scenario, including this report I heard of only one another user (albeit on an earlier version of Windows) reporting this.
The relevant part in source code is here
You can try to start msixmgr directly, MSIX Hero should use the following arguments:
-packagePath <path-to-msix> -destination <destination> -vhdSize <calculated-vhd-size> -applyacls -create
Could you also open an issue in GitHub?
https://github.com/marcinotorowski/MSIX-Hero/issues/new
I never got this problem until today and still couldn't find a solution.
Using MSIX 3.0 or the latest version of msixmgr I can no longer create VHD or VHDX images. When I try the msixmgr command line I get this error that leads me nowhere:
Successfully created virtual disk
Stopping the Shell Hardware Detection service
Stopping dependent services if necessary.
Successfully initialized and partitioned the disk.
Formatting the disk.
Formatting the disk failed with error code: 12
Visit https://docs.microsoft.com/en-us/previous-versions/windows/desktop/vdswmi/format-method-in-class-win32-volume to translate error code
Starting the Shell Hardware Detection service
Successfully started the Shell Hardware Detection Service
Creating the VHD(X) file C:\Users\B...\Your Application-x64.vhd failed with HRESULT 0x80004005
Best-effort attempt to delete the incomplete VHD(X) file C:\Users\...\Your Application-x64.vhd succeeded.
I have plenty of available space on my machine and this is a small 1 MB package that I am testing for the conversion.