Forum Discussion
e2bLou
Dec 13, 2022Copper Contributor
Error "Error in parsing the app package." when running .appinstaller from a folder.
Greetings, Bear with me as I am new to MSIX. I have an application that has one assembly and one winform exe application that uses the assembly. I added a MSIX installer project to the sol...
Dec 14, 2022
If there is nothing in those logs, it never got the MSIX package opened. If the .appinstaller file was OK and a permissions issue, I would expect your error to appear differently.
You didn't specify how you were installing with the file. I assume PowerShell and you used the Add-AppXPackage with the -AppInstaller argument. I don't remember the minimum OS version for that, manye 21H1, but if the cmdlet doesn't have the -AppInstaller argument then that is your issue.
Otherwise, the error looks like a syntax error in the .appinstaller file.
You didn't specify how you were installing with the file. I assume PowerShell and you used the Add-AppXPackage with the -AppInstaller argument. I don't remember the minimum OS version for that, manye 21H1, but if the cmdlet doesn't have the -AppInstaller argument then that is your issue.
Otherwise, the error looks like a syntax error in the .appinstaller file.
e2bLou
Dec 14, 2022Copper Contributor
I am running the .appinstaller directly from Windows Explorer simply by double clicking on it. It was created using the Windows Application Packaging Project in VS 2022. During publishing I am creating an App Package with Sideloading. I made sure not to use AnyCPU but specific CPU's to avoid that issue. The target version is Windows 10, version 2004(10.0; Build 19401) with a Minimum version of Windows 10, version 1903(10.0; Build 18362).
As I mentioned before if I set the start up project of the solution to this installer it runs fine in VS2022 in Debug mode. When I change to release, I build everything separately, and then I publish\build the backage for the installer. If it was a syntax error, I would think I would see it somewhere during this process... Also, I have a simple solution that is just a form with a label, and following the same steps as above, that installer works fine. The solution having issues is a WInform EXE and a custom assembly both of which are using NuGet packages..
As I mentioned before if I set the start up project of the solution to this installer it runs fine in VS2022 in Debug mode. When I change to release, I build everything separately, and then I publish\build the backage for the installer. If it was a syntax error, I would think I would see it somewhere during this process... Also, I have a simple solution that is just a form with a label, and following the same steps as above, that installer works fine. The solution having issues is a WInform EXE and a custom assembly both of which are using NuGet packages..
- Dec 14, 2022Yeah, I think AppInstaller needs 21H1 as the minimum. Try on a newer OS to confirm.