May 28 2021 01:59 PM - edited Jun 04 2021 01:09 PM
Hello Team,
Issue: MSIX: Unable to update TargetDevice in Manifest file
Scenario:
Packaging Build machine version:1909
Test machine version: 1809 and 1803
Error: Unsupported version while deploying the package
MSIX package is captured on 1909 build. but while installing the package on the windows10-1809 version machine getting OS unsupported version error.
As per my understanding, the MinimumVersion of TargetDevice in Manifest.xml file is set to 1909 hence package is failing to install on the 1809 build machine
So fix this issue we are trying to update the Minimum version in the Manifest file but after updating TargetDevice in the package it is still pointing to the 1909 version after saving the package. we are using MSIX packaging tool to update the manifest.xml.
Is there any restriction of using the same build for packaging and for testing?
Could you please help us in fixing this issue? Let us know if you need more information on this.
Jun 01 2021 12:04 PM
Hi @shreedhar_ghare,
Thank you for reaching out, I'd be happy to help out.
Please provide some additional information:
Question: Is there any restriction of using the same build for packaging and for testing?
Jun 02 2021 11:38 AM
Thank you very much for your response!!!
Please find my comments below,
Can you confirm that the device you are failing to install on is Windows 10 1909.
Yes that is correct 1909(OS Build 18363.1556)
Please provide the steps you performed when updating the Min and tested versions of the Windows App in the AppXManifest.
Steps
old:<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.19025.0" MaxVersionTested="10.0.19041.1" />
new <TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.18363.1556" MaxVersionTested="10.0.19041.1" />
But when we check the Manifest file by extracting loose file it is still using old min version 10.0.19025.0
Q: What value were you attempting to set for the MinVersion, and TestVersion?
Packaging machine version 2004 (OS Build 19041.985)
Default value:
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.19025.0" MaxVersionTested="10.0.19041.1" />
Test machine version 1909(OS Build 18363.1556)
Expected value
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.18363.1556" MaxVersionTested="10.0.19041.1" />
Q: If you are using the Microsoft Packaging Tool to edit the AppXManifest, which version of the tool are you using?
MSIX Packaging Tool 1.2021.422.0
Just to update you we are providing an MSIX solution to our existing customer. they have an older build at their end.
Jun 03 2021 02:33 PM
Hi @shreedhar_ghare,
Thank you for the quick response!
Following the steps you provided (using a newer Operating System, but same version of MSIX Packaging Tool) in the reproduction of the issue, I was able to successfully update the version information to the values you've specified, as well as setting 10.0.0.0 for both the MaxVersionTested` and the MinVersion values. I wanted to confirm with you that after you updated the Manifest file, did you select File > Save from within Notepad?
After you've updated and closed the Windows App AppxManifest, re-open the file and verify that the setting changes you made were retained before saving and packaging your Windows App. Please let me know if the settings are updated to the values you've specified.
Jun 04 2021 07:52 AM
Jun 04 2021 07:54 AM
Jun 04 2021 12:14 PM
Hi @shreedhar_ghare,
While editing the Windows App using the MSIX Packaging Tool, can you please review the Services report section, and confirm if there are any Services included in your package. (See the following image for reference)
Please follow the instructions found in the Microsoft Docs | MSIX Packaging Tool Logs Article to retrieve the MSIX Packaging Tool logs. You can share these as a Private message to myself, or as an attachment to this post.
Thank you,
Roy
Jun 04 2021 12:31 PM
Jun 04 2021 01:02 PM
Jun 04 2021 01:49 PM - edited Jun 04 2021 01:50 PM
SolutionHi @shreedhar_ghare,
According to the Supported platforms - MSIX | Microsoft Docs article, the Windows Apps with Services is unsupported on your targeted client devices. As this functionality is only supported on Windows 10 2004 (and newer).
The MSIX Packaging Tool will automatically override the version settings to Windows 10 Insider Build (November 2019) version: 10.0.19025.0 if an App service is detected. Which explains why when you set your version to below this value, the tool will override it.
Apologies, I must have copied the link incorrectly. Thank you for sharing the log information in this post.
[Note]
If this comment has answered your question, please mark it as Best Answer and close out the post. If you have any other questions please feel free to reach out to us by creating a new post in our Tech Community :-).
Thanks,
Roy
Jun 16 2021 08:06 AM
Jun 16 2021 09:15 AM