Package deletes itself when users sign out windows server 2019

Copper Contributor

When I install the program via powershell, it will be installed for the user and they can use it just fine.  Once they sign out however, the app disappears entirely.  It has to be completely re-installed every time they sign out. 

 

 

Based on the logs, it almost looks like that it's removing itself when a user signs out:

 

  1. Started deployment Remove operation on a package with main parameter 4e989c28-5c94-4544-b51a-49d47e7626b2_1.0.50.0_x86__f8ay7k6ts89ge and Options 0 and 65536. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.

 

  1. Creating Resiliency File C:\ProgramData\Microsoft\Windows\AppRepository\e08d9ac2-4d74-4b48-b065-c6dc2e6c3180_S-1-5-18_1.rslc for Remove Operation on Package 4e989c28-5c94-4544-b51a-49d47e7626b2_1.0.50.0_x86__f8ay7k6ts89ge.
  2. Deployment Remove operation on package 4e989c28-5c94-4544-b51a-49d47e7626b2_1.0.50.0_x86__f8ay7k6ts89ge has been de-queued and is running for user SID S-1-5-21-648172219-3726287130-1056499097-6193.
  3. Started deployment Remove operation on a package with main parameter Microsoft.AAD.BrokerPlugin_1000.17763.1.0_neutral_neutral_cw5n1h2txyewy and Options 0 and 65536. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
  4. Creating Resiliency File C:\ProgramData\Microsoft\Windows\AppRepository\e08d9ac2-4d74-4b48-b065-c6dc2e6c3180_S-1-5-18_2.rslc for Remove Operation on Package Microsoft.AAD.BrokerPlugin_1000.17763.1.0_neutral_neutral_cw5n1h2txyewy.
  5. Started deployment Remove operation on a package with main parameter Microsoft.Windows.CloudExperienceHost_10.0.17763.1_neutral_neutral_cw5n1h2txyewy and Options 0 and 65536. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
  6. The current impersonation for windows.stateExtension(RunAsSystem:false) is invalid, we will correct it.
  7. The current impersonation for windows.repositoryExtension(RunAsSystem:false) is invalid, we will correct it.
  8. NULL : C:\Program Files\WindowsApps\4e989c28-5c94-4544-b51a-49d47e7626b2_1.0.50.0_neutral_split.scale-100_f8ay7k6ts89ge\microsoft.system.package.metadata\S-1-5-21-648172219-3726287130-1056499097-6193-MergedResources-*.pri : No user-specific merged files found
  9. Deployment Remove operation with target volume C: on Package 4e989c28-5c94-4544-b51a-49d47e7626b2_1.0.50.0_x86__f8ay7k6ts89ge from:  (4e989c28-5c94-4544-b51a-49d47e7626b2_1.0.50.0_x86__f8ay7k6ts89ge)  finished successfully.
  10. Moving package folder \\?\C:\Program Files\WindowsApps\4e989c28-5c94-4544-b51a-49d47e7626b2_1.0.50.0_x86__f8ay7k6ts89ge to \\?\C:\Program Files\WindowsApps\Deleted\4e989c28-5c94-4544-b51a-49d47e7626b2_1.0.50.0_x86__f8ay7k6ts89gebdbae26b-bdb6-4aae-a6e4-b2a2ed8b318c. Result: 0x0.

 

Why is this happening and how can I fix it?

3 Replies

Hi @chris-evans thank you for writing.  Which apps are missing? Are there other users on the machine? It would help us if you can send us feedback via the feedback hub. Also any logs would help us as well.  

@Dian Hartono 

 

If you run Get-Package there are definitely other apps on the machine.  There are however no apps installed in the location c:\Program Files\WindowsApps other than the ones I have created (about 3 or so).  Any supporting dependencies also get deleted, such as Xaml.UI.  When I install the app it goes to that location stated above, and then when I sign out all the packages in that folder are deleted.  We have found out that it's only our RDS server that does this.  Other 2019 servers don't seem to have this issue, which makes it even more strange.

 

Additionally, when the app is installed, it doesn't show up in the start menu as "Recently Added".  You have to go to shell:Appsfolder to find it.  It acts like maybe it's not being installed all the way?  

 

And maybe I misunderstand what this site is for, but should I be using the feedback hub for getting support on issues like these or this site?

 

Attached is a document outlining the issue in detail with screenshots.

Here are some of the logs.  These came from the event viewer via Windows/Microsoft/Appxdeploymentserver/operational:

 

  1. Started deployment Remove operation on a package with main parameter 4e989c28-5c94-4544-b51a-49d47e7626b2_1.0.50.0_x86__f8ay7k6ts89ge and Options 0 and 65536. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.

 

  1. Creating Resiliency File C:\ProgramData\Microsoft\Windows\AppRepository\e08d9ac2-4d74-4b48-b065-c6dc2e6c3180_S-1-5-18_1.rslc for Remove Operation on Package 4e989c28-5c94-4544-b51a-49d47e7626b2_1.0.50.0_x86__f8ay7k6ts89ge.
  2. Deployment Remove operation on package 4e989c28-5c94-4544-b51a-49d47e7626b2_1.0.50.0_x86__f8ay7k6ts89ge has been de-queued and is running for user SID S-1-5-21-648172219-3726287130-1056499097-6193.
  3. Started deployment Remove operation on a package with main parameter Microsoft.AAD.BrokerPlugin_1000.17763.1.0_neutral_neutral_cw5n1h2txyewy and Options 0 and 65536. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
  4. Creating Resiliency File C:\ProgramData\Microsoft\Windows\AppRepository\e08d9ac2-4d74-4b48-b065-c6dc2e6c3180_S-1-5-18_2.rslc for Remove Operation on Package Microsoft.AAD.BrokerPlugin_1000.17763.1.0_neutral_neutral_cw5n1h2txyewy.
  5. Started deployment Remove operation on a package with main parameter Microsoft.Windows.CloudExperienceHost_10.0.17763.1_neutral_neutral_cw5n1h2txyewy and Options 0 and 65536. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
  6. The current impersonation for windows.stateExtension(RunAsSystem:false) is invalid, we will correct it.
  7. The current impersonation for windows.repositoryExtension(RunAsSystem:false) is invalid, we will correct it.
  8. NULL : C:\Program Files\WindowsApps\4e989c28-5c94-4544-b51a-49d47e7626b2_1.0.50.0_neutral_split.scale-100_f8ay7k6ts89ge\microsoft.system.package.metadata\S-1-5-21-648172219-3726287130-1056499097-6193-MergedResources-*.pri : No user-specific merged files found
  9. Deployment Remove operation with target volume C: on Package 4e989c28-5c94-4544-b51a-49d47e7626b2_1.0.50.0_x86__f8ay7k6ts89ge from:  (4e989c28-5c94-4544-b51a-49d47e7626b2_1.0.50.0_x86__f8ay7k6ts89ge)  finished successfully.
  10. Moving package folder \\?\C:\Program Files\WindowsApps\4e989c28-5c94-4544-b51a-49d47e7626b2_1.0.50.0_x86__f8ay7k6ts89ge to \\?\C:\Program Files\WindowsApps\Deleted\4e989c28-5c94-4544-b51a-49d47e7626b2_1.0.50.0_x86__f8ay7k6ts89gebdbae26b-bdb6-4aae-a6e4-b2a2ed8b318c. Result: 0x0.

 

@chris-evans Thank you for this information. 

 

The reason why I ask you to file feedback through Feedback hub is that it allows us to collect additional telemetry to help the investigation. It is still a good idea to post here with issues if folks in the community have run into the same issue, they can also step in and help. In addition, you can keep track of the current issue and get status updates. When you do file feedback please write back with the title of the feedback so that we can filter and find it.