Uninstall package with service

%3CLINGO-SUB%20id%3D%22lingo-sub-1687908%22%20slang%3D%22en-US%22%3EUninstall%20package%20with%20service%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1687908%22%20slang%3D%22en-US%22%3E%3CP%3ESince%20installing%20an%20MSIX%20package%20containing%20a%20service%20requires%20elevation%2C%20why%20doesn't%20the%20uninstall%20require%20the%20same%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOf%20concern%20will%20be%20%22common%22%20services%20like%20the%20Flexnet%20Licensing%20Service%20that%20might%20be%20in%20several%20packages.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1766214%22%20slang%3D%22en-US%22%3ERE%3A%20Uninstall%20package%20with%20service%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1766214%22%20slang%3D%22en-US%22%3EAgreed%20-%20this%20struck%20me%20as%20odd%20as%20well.%20Independent%20of%20the%20multiple%20package%20scenario%2C%20it%20seems%20odd%20a%20user%20with%20limited%20rights%20can%20uninstall%20a%20package%20that%20required%20admin%20rights%20to%20install.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1834295%22%20slang%3D%22en-US%22%3ERE%3A%20Uninstall%20package%20with%20service%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1834295%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F809707%22%20target%3D%22_blank%22%3E%40nanvik%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt's%20something%20that%20we%20chatted%20with%20customers%20about%20in%20the%20initial%20design.%26nbsp%3B%20When%20the%20app%20is%20uninstalled%20and%20ref%20counted%20to%20zero%2C%20it%20does%20a%20clean%20up.%26nbsp%3B%20That%20was%20the%20preferred%20ask%20from%20a%20customer%20standpoint.%26nbsp%3B%20If%20there%20is%20a%20demand%20for%20a%20toggle%20on%20this%2C%20I%20recommend%20adding%20it%20to%20the%20ideas%20section%20of%20the%20tech%20community.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EJohn%20Vintzel%20(%40jvintzel)%3CBR%20%2F%3EPM%20Lead%2C%20MSIX%3C%2FP%3E%3C%2FLINGO-BODY%3E
MVP

Since installing an MSIX package containing a service requires elevation, why doesn't the uninstall require the same?

 

Of concern will be "common" services like the Flexnet Licensing Service that might be in several packages.

3 Replies
Agreed - this struck me as odd as well. Independent of the multiple package scenario, it seems odd a user with limited rights can uninstall a package that required admin rights to install.

@nanvik 

 

It's something that we chatted with customers about in the initial design.  When the app is uninstalled and ref counted to zero, it does a clean up.  That was the preferred ask from a customer standpoint.  If there is a demand for a toggle on this, I recommend adding it to the ideas section of the tech community.

 

John Vintzel (@jvintzel)
PM Lead, MSIX

@John Vintzel Let me see if I have this correct.  In which case I have questions...

 

When packages with services are installed there is some sort of check to see if the service is already installed, and instead of installing the service again a reference count is incremented. Then uninstalls use that count as described.

 

  • What criteria is used to determine "already installed"?  Is this by service name?  File hash? It certainly can't be by the file path since the path is different for each package.
  • The windows registration of the service would be using file path of the "first" package installed.  Is the scenario covered where this package is uninstalled first?  Does the path of the registered service change when this happens?