Package Name case sensitivity and "ghost packages"

MVP

Attached are two snapshots from get-appxpackage taken of the same package that has been installed on two different systems.  There is a difference in the display of the Name field of the package (although no difference the PackageFamilyName).  This raises the question on uniqueness of package names and how the system (and various tools including various Microsoft third party deployment tools) should handle it.

 

Here is how this (probably) happened.

 

A first version of a package was created using the name "TestApp-Spc-App1".  It was installed on the System 1 only.  Then the package was removed and package file deleted.  A completely new package was then created with the name "TestApp-SPC-App1".   This new package was installed (via appinstaller) on both systems.  It is System 1 that shows the old name.

 

I know from seeing some logging message that when a package is removed the files are not immediately deleted but seem to be moved temporarily to a different hidden folder under WindowsApps called Deleted.  I am guessing that information about the prior removed package must have been gleamed from there when the new package was installed.  I even tried uninstalling, rebooting, and installing the app again on System 1 and had the same result.  Perhaps there is a need to wait a more significant amount of time before attempting the new install?

 

It seems that one or more of the following might be necessary:

  • Guidance is needed in regard to uniqueness and case sensitivity.  There may be separate guidance to package creators and to tooling vendors needed.
  • There may be a flaw in the AppInstaller installation software to be fixed as it seems that information was picked up from the prior package and there seems to be no good reason for this.
  • Assuming that I am correct in guessing that there is a background cleanup performed long after a package is removed, is there any way for deployment tooling to determine this is still pending? 

 

1 Reply
Thanks for posting this we are looking into the issue.