appx/appinstaller RequestAddPackageByAppInstallerFileAsync problems

%3CLINGO-SUB%20id%3D%22lingo-sub-2789567%22%20slang%3D%22en-US%22%3Eappx%2Fappinstaller%20RequestAddPackageByAppInstallerFileAsync%20problems%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2789567%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20this%20the%20right%20place%20to%20ask%20about%20RequestAddPackageByAppInstallerFileAsync%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20its%20called%20from%20the%20application%20to%20schedule%20an%20update%2C%20it%20fails%20with%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20package%20could%20not%20be%20installed%20because%20resources%20it%20modifies%20are%20currently%20in%20use.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWell%2C%20that's%20the%20part%20of%20the%20purpose%20of%20the%20api%20isn't%20it%2C%20to%20update%20itself%3F%26nbsp%3B%20If%20not%20how%20do%20you%20schedule%20an%20update%20on%20restart%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Is this the right place to ask about RequestAddPackageByAppInstallerFileAsync ?

 

When its called from the application to schedule an update, it fails with

 

The package could not be installed because resources it modifies are currently in use.

 

Well, that's the part of the purpose of the api isn't it, to update itself?  If not how do you schedule an update on restart?

1 Reply
This is the right place to ask these questions. Do you also get the same issue if it is triggered with via PowerShell? Can you please provide us more details (logs) via Feedback Hub?