SOLVED

MSIX AppAttach - Register App - Administrative rights needed

Copper Contributor

Hi everyone,

i am trying to register applications via PowerShell on a per user basis. Staging as admin works fine.

 

Registering per user fails with the following message:

  • Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF6, Package could not be registered.
  • AppxManifest.xml(23,9584): error 0x80073D28: Cannot register the GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6 package. Administrator privileges required to install packaged service
  • NOTE: For additional information, look for [ActivityId] a7377816-941e-0000-25f7-7609e61bd701 in the Event Log or use the command line Get-AppPackageLog -ActivityID a7377816-941e-0000-25f7-7609e61bd701

The log gives the following information:

  • 3/18/2021 11:56:29 AM 573 Setting Sync Enabled status, package family name GoogleChrome_74vyvr5aw93s6, enabled false.
  • 3/18/2021 11:56:29 AM 10000 About to service package GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6. Setting the package state to disabled returned with 0x0.
  • 3/18/2021 11:56:29 AM 10000 About to service package GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6. Setting the package state to disabled returned with 0x0.
  • 3/18/2021 11:56:29 AM 9626 AppxManifest.xml(23,9584): PackagedServiceDEH successfully parsed manifest for package GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6 install
  • 3/18/2021 11:56:29 AM 9626 AppxManifest.xml(23,8619): PackagedServiceDEH successfully parsed manifest for package GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6 install
  • 3/18/2021 11:56:29 AM 9626 AppxManifest.xml(23,7415): PackagedServiceDEH successfully parsed manifest for package GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6 install
  • 3/18/2021 11:56:29 AM 9621 AppxManifest.xml(23,9584): error 0x80073D28: Cannot register the GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6 package. Administrator privileges required to install packaged service
  • 3/18/2021 11:56:29 AM 303 error 0x80073D28: While preparing to process the request, the system failed to register the windows.service extension due to the following error: The package installation failed because administrator privileges are required. Please contact an administrator to install this package.
  • 3/18/2021 11:56:29 AM 300 error 0x80073D28: Cannot register the GoogleChrome_74vyvr5aw93s6 package due to the following error: The package installation failed because administrator privileges are required. Please contact an administrator to install this package.
  • 3/18/2021 11:56:29 AM 605 The last successful state reached was ResolvedDeferredRegistrations. Failure occurred before reaching the next state SingletonRegisterAdd. hr: 0x80073CF6
  • 3/18/2021 11:56:29 AM 10001 Finished servicing package GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6. Setting the package state to enabled returned with 0x0.
  • 3/18/2021 11:56:29 AM 10001 Finished servicing package GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6. Setting the package state to enabled returned with 0x0.
  • 3/18/2021 11:56:29 AM 401 Deployment Register operation with target volume C: on Package GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6 from: (AppxManifest.xml) failed with error 0x80073CF6. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
  • 3/18/2021 11:56:29 AM 404 AppX Deployment operation failed for package GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6 with error 0x80073CF6. The specific error text for this failure is: AppxManifest.xml(23,9584): error 0x80073D28: Cannot register the GoogleChrome_68.46.66.0_x64__74vyvr5aw93s6 package. Administrator privileges required to install packaged service

Here is the command, i am trying to use:

Add-AppxPackage -Path $path -DisableDevelopmentMode -Register

 

Environment

- WVD ARM

- W10 2004 Single Session and Multi Session

- Recent Updates and Patches

 

Added Recommendations

  • reg add HKLM\Software\Policies\Microsoft\WindowsStore /v AutoDownload /t REG_DWORD /d 0 /f
  • Schtasks /Change /Tn "\Microsoft\Windows\WindowsUpdate\Scheduled Start" /Disable
  • reg add HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager /v PreInstalledAppsEnabled /t REG_DWORD /d 0 /f
  • reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\Debug /v ContentDeliveryAllowedOverride /t REG_DWORD /d 0x2 /f
  • "Perform volume maintenance tasks" set in GPO

 

Any ideas are highly appreciated!

 

4 Replies
best response confirmed by jansvensenDT (Copper Contributor)
Solution
Your use of the word "staging" makes me think that this is an MSIX App Attach Scenario. As Google Chrome normally includes a service to perform updates, this is likely the cause.

Under MSIX, such an updater is unable to update the contents within the package anyway, and I would normally want to disable the the service for App-V packaging. Although services work in MSIX outside of App Attach, they are currently an issue with App Attach due to the need for elevation.

My advice would be to remove the service for this particular app from the package when packaging under MSIX with or without App Attach.
Hi Timothy,
thank you for reading through my not to clearly described post!

You are very right. I am trying to use MSIX App Attach in my WVD environment. The VHDs i am trying to attach have been downloaded from MS. Scripts and procedure are according to this blogpost: https://wvdlogix.net/containerize-applications

I'll definitely look for any services in those packages. Very good point. Thank you! I'll post an update here.
Hi again,
Timothy, you were absolutely right. I created new packages without services and everything is working fine now.

Thanks heaps!
Great to hear your success!
1 best response

Accepted Solutions
best response confirmed by jansvensenDT (Copper Contributor)
Solution
Your use of the word "staging" makes me think that this is an MSIX App Attach Scenario. As Google Chrome normally includes a service to perform updates, this is likely the cause.

Under MSIX, such an updater is unable to update the contents within the package anyway, and I would normally want to disable the the service for App-V packaging. Although services work in MSIX outside of App Attach, they are currently an issue with App Attach due to the need for elevation.

My advice would be to remove the service for this particular app from the package when packaging under MSIX with or without App Attach.

View solution in original post