Mar 01 2023 05:58 AM
Hi,
I am trying to create MSIX App Attach using the PowerShell cmdlet Windows Server 2019 virtual machine hosted on Hyper-V.
I am seeing the attached error while running the cmdlet of expand MSIX using unpack switch:
The MSIX package unpackaging here is signed and also certificate is installed in the machine.
I suspected that it could be related to Hyper-V role on the machine. But, it seems to be all good. Here is the screenshot of what I see on my machine.
Enabled Hyper-V feature using the following PowerShell cmdlet:
Install-WindowsFeature -Name Hyper-V -IncludeManagementTools -Restart
I see the same command is working on other VMs on the same Hyper-V for example Windows 10 VM.
Any help here will be greatly appreciated.
Thanks,
Yojana
Mar 10 2023 12:11 AM
Your screenshot shows "failed to load applyacls.dll".
This error comes when ApplyACLs.dll is not present next to msixmgr.exe. In order for -applyacls argument to work, powershell or cmd should be opened in "Administrator" mode and the "ApplyACLs.dll" should be present next to msixmgr.exe.
Mar 11 2023 01:14 PM
Solution
The applyacls.dll is part of the msmgr distribution and should be in the same folder as the msmgr.exe.
However, unless some things have changed, I think that you will find that you can't use a dynamic VHD and need to use a fixed one. We typically triple the size of the MSIX file as a guess (as the compression in the MSIX file tends to run about 2.5 to 1), and adjust up if needed.
Apr 10 2023 01:01 AM
Mar 11 2023 01:14 PM
Solution
The applyacls.dll is part of the msmgr distribution and should be in the same folder as the msmgr.exe.
However, unless some things have changed, I think that you will find that you can't use a dynamic VHD and need to use a fixed one. We typically triple the size of the MSIX file as a guess (as the compression in the MSIX file tends to run about 2.5 to 1), and adjust up if needed.