InstallMedia Command when media is removed

I can install an ebook (pdf) using the MDM InstallMediaCommand, and I can get this entry listed when running the ManagedMediaListCommand. Then I remove the ebook from the Books application (manually), and run ManagedMediaListCommand again. The ebook becomes ManagedButUninstalled.

From here, I cannot reinstall the ebook again. I have tried to remove the ebook using RemoveMediaCommand in which case the entry disappears from subsequent calls to ManagedMediaListCommand. Then I try to reinstall again, but the ebook is reinstalled with same ManagedButUninstalled state.

How can I force the reinstallation of the ebook once it has been removed manually from the device. The entry does no longer appear in the Books application and failed to be re-added through MDM.

InstallMedia Command when media is removed
 
 
Q