SOLVED

MSIX: Unable to update TargetDevice in Manifest XML file

Copper Contributor

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.

11 Replies

Hi @shreedhar_ghare,

 

Thank you for reaching out, I'd be happy to help out.

 

Please provide some additional information:

  • Can you confirm that the device you are failing to install on is Windows 10 1909.
  • Please provide the steps you performed when updating the Min and tested versions of the Windows App in the AppXManifest. 
  • What value were you attempting to set for the MinVersion, and TestVersion?
  • If you are using the Microsoft Packaging Tool to edit the AppXManifest, which version of the tool are you using?

 

Question: Is there any restriction of using the same build for packaging and for testing?  

  • Answer: The Windows 10 Build that you test on, should be reflective of the devices existing in your environment. Meaning if all of your Windows 10 devices are on Ver. 1909, you should be testing your Windows Apps on Ver. 1909. 

@Roy_MacLachlan 

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

  1. Select .MSIX file and right click to edit in MSIX packaging Tool
  2. From Package Editor select "Open File" under Manifest file section
  3. Manifest file will be open in notepad.exe the replace belo line

    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" />

  1. Click Save button then it will ask to increase Pakcage version select "Yes Increment"
  2. New MSIX file will be generated with new version AdobeAcrobatReaderDC21.001.20155_1.0.1.0_x64__8h66172c634n0_2.msix

 

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. 

 

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.

Hello Roy_MacLachlan

Thank you for your quick response!

As suggested by you we have tried the steps below,
1. Open MSIX file in Edit MSIX packaging Tool
2. Select "Open file" under Manifest section--> FIle opened in notepad.txt
3. Updated the MinVersion="10.0.18363.1556" Saved the notepad and closed
4 Again click the "Open file" option and observed that MinVersion still pointing to MinVersion="10.0.19025.0" old value.

That means settings are not getting updated with the "Open file" option. Please find the attached screenshot for more details.



Unable to attach the screenshot. Let me know if you needs any logs from my machine,

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)

 

Roy_MacLachlan_1-1622833986528.png


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

Hello @Roy_MacLachlan,

Yes, the application Adobe AcrobatReaderDC 21.001.20155 has Adobe ARM service (AdobeARMservice).
Is this service creating an issue?
The provided link is not opening at my end getting the error "about:blank#blocked"
I will try to get logs and share them with you.

Thank you,
Shreedhar Ghare
##############Log file ############################
[6/4/2021 7:51:40 PM] [Info] Microsoft (R) MsixPackagingTool Tool
[6/4/2021 7:51:40 PM] [Info] Copyright (C) 2020 Microsoft. All rights reserved.
[6/4/2021 7:51:40 PM] [Info] ************************************************************
[6/4/2021 7:51:40 PM] [Info] MSIX Packaging Tool Launch
[6/4/2021 7:51:40 PM] [Info] ************************************************************
[6/4/2021 7:51:40 PM] [Info] Log file is located under: %UserProfile%\AppData\Local\Packages\Microsoft.MsixPackagingTool_8wekyb3d8bbwe\LocalState\DiagOutputDir\Logs_22\Log.txt
[6/4/2021 7:51:40 PM] [Info] Tool Version: 1.2021.422.0
[6/4/2021 7:51:40 PM] [Info] Feedback logs are located under: %UserProfile%\AppData\Local\Packages\Microsoft.MsixPackagingTool_8wekyb3d8bbwe\LocalState\DiagOutputDir\FeedbackLogs\Logs_22
[6/4/2021 7:51:40 PM] [Debug] Attempting to read settings file: %UserProfile%\AppData\Local\Packages\Microsoft.MsixPackagingTool_8wekyb3d8bbwe\LocalState\settings.xml
[6/4/2021 7:51:40 PM] [Debug] Updating the settings file from version 1.2021.422.0 to a newer version.
[6/4/2021 7:51:40 PM] [Debug] Enabling Telemetry
[6/4/2021 7:51:40 PM] [Debug] Tool install location: C:\Program Files\WindowsApps\Microsoft.MsixPackagingTool_1.2021.422.0_x64__8wekyb3d8bbwe
[6/4/2021 7:51:40 PM] [Debug] Launching directly into Package editor with package %UserProfile%\Desktop\AdobeAcrobatReaderDC21.001.20155_1.0.0.0_x64__8h66172c634n0.msix
[6/4/2021 7:51:40 PM] [Debug] ************************************************************
[6/4/2021 7:51:40 PM] [Debug] OpenPackageScreen Workflow
[6/4/2021 7:51:40 PM] [Debug] ************************************************************
[6/4/2021 7:51:40 PM] [Debug] ************************************************************
[6/4/2021 7:51:40 PM] [Debug] PackageEditor
[6/4/2021 7:51:40 PM] [Debug] ************************************************************
[6/4/2021 7:51:40 PM] [Debug] Attempting to open the msix package.
[6/4/2021 7:51:40 PM] [Debug] Editing package:
[6/4/2021 7:51:40 PM] [Debug] packagePath: %UserProfile%\Desktop\AdobeAcrobatReaderDC21.001.20155_1.0.0.0_x64__8h66172c634n0.msix
[6/4/2021 7:51:40 PM] [Debug] manifestFile: ttvhjrsu.li3.Manifest
[6/4/2021 7:51:40 PM] [Debug] registryHiveFile: remlxson.tda.RegistryHive
[6/4/2021 7:51:41 PM] [Debug] IgnorableNamespaces attribute value is : uap uap2 uap3 uap10 desktop6 rescap com
[6/4/2021 7:51:41 PM] [Debug] Reading services under application element
[6/4/2021 7:51:41 PM] [Debug] AppID = ADOBEARMSERVICE
[6/4/2021 7:51:41 PM] [Debug] Executable = VFS\ProgramFilesCommonX86\Adobe\ARM\1.0\armsvc.exe
[6/4/2021 7:51:41 PM] [Debug] DisplayName = Adobe Acrobat Update Service
[6/4/2021 7:51:41 PM] [Debug] Description = Adobe Acrobat Updater keeps your Adobe software up to date.
[6/4/2021 7:51:41 PM] [Debug] Service name: AdobeARMservice
[6/4/2021 7:51:41 PM] [Debug] StartAccount = LocalSystem
[6/4/2021 7:51:41 PM] [Debug] StartType = Auto
[6/4/2021 7:51:41 PM] [Debug] ImagePath = VFS\ProgramFilesCommonX86\Adobe\ARM\1.0\armsvc.exe
[6/4/2021 7:51:41 PM] [Debug] Arguments =
[6/4/2021 7:51:41 PM] [Debug] Opened msix package successfully.
[6/4/2021 7:51:41 PM] [Debug] Populating the default signing information from settings
[6/4/2021 7:51:41 PM] [Debug] No accounts to sign out from.
[6/4/2021 7:51:41 PM] [Debug] No access token file exists.
[6/4/2021 7:51:47 PM] [Debug] Spawning background worker thread.
[6/4/2021 7:51:47 PM] [Debug] IgnorableNamespaces attribute value is : uap uap2 uap3 uap10 desktop6 rescap com
[6/4/2021 7:51:47 PM] [Debug] Adding Capability: localSystemServices
[6/4/2021 7:51:47 PM] [Debug] Adding Capability: packagedServices
[6/4/2021 7:51:47 PM] [Debug] Adding Capability: runFullTrust
[6/4/2021 7:51:47 PM] [Debug] Translating Packaged Services to Manifest
[6/4/2021 7:51:47 PM] [Debug] Adding new service application entry Adobe Acrobat Update Service to manifest
[6/4/2021 7:51:47 PM] [Debug] Mandatory Service Parameters:
ServiceName: AdobeARMservice
Executable: VFS\ProgramFilesCommonX86\Adobe\ARM\1.0\armsvc.exe
StartupType: auto
StartAccount: localSystem
[6/4/2021 7:51:47 PM] [Debug] IgnorableNamespaces attribute value is : uap uap2 uap3 uap10 desktop6 rescap com
[6/4/2021 7:51:47 PM] [Debug] File type associated with Manifest: C:\Windows\system32\NOTEPAD.EXE
[6/4/2021 7:52:27 PM] [Debug] Manifest Process Exited.
[6/4/2021 7:52:27 PM] [Debug] Attempting to read and validate the saved manifest file: %UserProfile%\AppData\Local\Packages\Microsoft.MsixPackagingTool_8wekyb3d8bbwe\LocalState\DiagOutputDir\Logs_22\rhjoxkx2.l4y.Manifest
[6/4/2021 7:52:27 PM] [Debug] IgnorableNamespaces attribute value is : uap uap2 uap3 uap10 desktop6 rescap com
[6/4/2021 7:52:27 PM] [Debug] Reading services under application element
[6/4/2021 7:52:27 PM] [Debug] AppID = ADOBEARMSERVICE
[6/4/2021 7:52:27 PM] [Debug] Executable = VFS\ProgramFilesCommonX86\Adobe\ARM\1.0\armsvc.exe
[6/4/2021 7:52:27 PM] [Debug] DisplayName = Adobe Acrobat Update Service
[6/4/2021 7:52:27 PM] [Debug] Description = Adobe Acrobat Updater keeps your Adobe software up to date.
[6/4/2021 7:52:27 PM] [Debug] Service name: AdobeARMservice
[6/4/2021 7:52:27 PM] [Debug] StartAccount = LocalSystem
[6/4/2021 7:52:27 PM] [Debug] StartType = Auto
[6/4/2021 7:52:27 PM] [Debug] ImagePath = VFS\ProgramFilesCommonX86\Adobe\ARM\1.0\armsvc.exe
[6/4/2021 7:52:27 PM] [Debug] Arguments =
[6/4/2021 7:52:27 PM] [Debug] Opened and validated manifest successfully.
[6/4/2021 7:52:27 PM] [Debug] Manifest parsing succeeded.
[6/4/2021 7:52:27 PM] [Debug] Updating view models with the input from manifest.
[6/4/2021 7:52:27 PM] [Debug] Returning back to Package Editor view.
[6/4/2021 7:52:30 PM] [Debug] Spawning background worker thread.
[6/4/2021 7:52:30 PM] [Debug] IgnorableNamespaces attribute value is : uap uap2 uap3 uap10 desktop6 rescap com
[6/4/2021 7:52:30 PM] [Debug] Adding Capability: localSystemServices
[6/4/2021 7:52:30 PM] [Debug] Adding Capability: packagedServices
[6/4/2021 7:52:30 PM] [Debug] Adding Capability: runFullTrust
[6/4/2021 7:52:30 PM] [Debug] Translating Packaged Services to Manifest
[6/4/2021 7:52:30 PM] [Debug] Adding new service application entry Adobe Acrobat Update Service to manifest
[6/4/2021 7:52:30 PM] [Debug] Mandatory Service Parameters:
ServiceName: AdobeARMservice
Executable: VFS\ProgramFilesCommonX86\Adobe\ARM\1.0\armsvc.exe
StartupType: auto
StartAccount: localSystem
[6/4/2021 7:52:30 PM] [Debug] TargetDevice Minimum Version updated to 10.0.19025.0 due to including a service.
[6/4/2021 7:52:30 PM] [Debug] IgnorableNamespaces attribute value is : uap uap2 uap3 uap10 desktop6 rescap com
[6/4/2021 7:52:30 PM] [Debug] File type associated with Manifest: C:\Windows\system32\NOTEPAD.EXE
[6/4/2021 7:52:33 PM] [Debug] Manifest Process Exited.
[6/4/2021 7:52:33 PM] [Debug] Attempting to read and validate the saved manifest file: %UserProfile%\AppData\Local\Packages\Microsoft.MsixPackagingTool_8wekyb3d8bbwe\LocalState\DiagOutputDir\Logs_22\rhjoxkx2.l4y.Manifest
[6/4/2021 7:52:33 PM] [Debug] IgnorableNamespaces attribute value is : uap uap2 uap3 uap10 desktop6 rescap com
[6/4/2021 7:52:33 PM] [Debug] Reading services under application element
[6/4/2021 7:52:33 PM] [Debug] AppID = ADOBEARMSERVICE
[6/4/2021 7:52:33 PM] [Debug] Executable = VFS\ProgramFilesCommonX86\Adobe\ARM\1.0\armsvc.exe
[6/4/2021 7:52:33 PM] [Debug] DisplayName = Adobe Acrobat Update Service
[6/4/2021 7:52:33 PM] [Debug] Description = Adobe Acrobat Updater keeps your Adobe software up to date.
[6/4/2021 7:52:33 PM] [Debug] Service name: AdobeARMservice
[6/4/2021 7:52:33 PM] [Debug] StartAccount = LocalSystem
[6/4/2021 7:52:33 PM] [Debug] StartType = Auto
[6/4/2021 7:52:33 PM] [Debug] ImagePath = VFS\ProgramFilesCommonX86\Adobe\ARM\1.0\armsvc.exe
[6/4/2021 7:52:33 PM] [Debug] Arguments =
[6/4/2021 7:52:33 PM] [Debug] Opened and validated manifest successfully.
[6/4/2021 7:52:33 PM] [Debug] Manifest parsing succeeded.
[6/4/2021 7:52:33 PM] [Debug] Updating view models with the input from manifest.
[6/4/2021 7:52:33 PM] [Debug] Returning back to Package Editor view.
[6/4/2021 7:52:56 PM] [Debug] Spawning background worker thread.
[6/4/2021 7:52:56 PM] [Debug] IgnorableNamespaces attribute value is : uap uap2 uap3 uap10 desktop6 rescap com
[6/4/2021 7:52:56 PM] [Debug] Adding Capability: localSystemServices
[6/4/2021 7:52:56 PM] [Debug] Adding Capability: packagedServices
[6/4/2021 7:52:56 PM] [Debug] Adding Capability: runFullTrust
[6/4/2021 7:52:56 PM] [Debug] Translating Packaged Services to Manifest
[6/4/2021 7:52:56 PM] [Debug] Adding new service application entry Adobe Acrobat Update Service to manifest
[6/4/2021 7:52:56 PM] [Debug] Mandatory Service Parameters:
ServiceName: AdobeARMservice
Executable: VFS\ProgramFilesCommonX86\Adobe\ARM\1.0\armsvc.exe
StartupType: auto
StartAccount: localSystem
[6/4/2021 7:52:56 PM] [Debug] TargetDevice Minimum Version updated to 10.0.19025.0 due to including a service.
[6/4/2021 7:52:56 PM] [Debug] IgnorableNamespaces attribute value is : uap uap2 uap3 uap10 desktop6 rescap com
[6/4/2021 7:52:56 PM] [Debug] File type associated with Manifest: C:\Windows\system32\NOTEPAD.EXE
[6/4/2021 7:52:59 PM] [Debug] Manifest Process Exited.
[6/4/2021 7:52:59 PM] [Debug] Attempting to read and validate the saved manifest file: %UserProfile%\AppData\Local\Packages\Microsoft.MsixPackagingTool_8wekyb3d8bbwe\LocalState\DiagOutputDir\Logs_22\rhjoxkx2.l4y.Manifest
[6/4/2021 7:52:59 PM] [Debug] IgnorableNamespaces attribute value is : uap uap2 uap3 uap10 desktop6 rescap com
[6/4/2021 7:52:59 PM] [Debug] Reading services under application element
[6/4/2021 7:52:59 PM] [Debug] AppID = ADOBEARMSERVICE
[6/4/2021 7:52:59 PM] [Debug] Executable = VFS\ProgramFilesCommonX86\Adobe\ARM\1.0\armsvc.exe
[6/4/2021 7:52:59 PM] [Debug] DisplayName = Adobe Acrobat Update Service
[6/4/2021 7:52:59 PM] [Debug] Description = Adobe Acrobat Updater keeps your Adobe software up to date.
[6/4/2021 7:52:59 PM] [Debug] Service name: AdobeARMservice
[6/4/2021 7:52:59 PM] [Debug] StartAccount = LocalSystem
[6/4/2021 7:52:59 PM] [Debug] StartType = Auto
[6/4/2021 7:52:59 PM] [Debug] ImagePath = VFS\ProgramFilesCommonX86\Adobe\ARM\1.0\armsvc.exe
[6/4/2021 7:52:59 PM] [Debug] Arguments =
[6/4/2021 7:52:59 PM] [Debug] Opened and validated manifest successfully.
[6/4/2021 7:52:59 PM] [Debug] Manifest parsing succeeded.
[6/4/2021 7:52:59 PM] [Debug] Updating view models with the input from manifest.
[6/4/2021 7:52:59 PM] [Debug] Returning back to Package Editor view.
best response confirmed by shreedhar_ghare (Copper Contributor)
Solution

Hi @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

Hello Roy_MacLachlan,
Thank you for helping me in resolving this issue. We excluded the services and the application started working as expected!!!
Thank you very much once again for your help and support
It was no problem at all. I'm happy that we were able to resolve the challenges you were experiencing.
1 best response

Accepted Solutions
best response confirmed by shreedhar_ghare (Copper Contributor)
Solution

Hi @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

View solution in original post