I've recently tried to install the game after deleting it from my PC a while back. I originally bought it back in 2011 and had to migrate my account to a Microsoft account. Now when I try to install and launch the launcher, I get this message:
Minecraft Launcher is currently not available in your account. Make sure you are signed in to the Store and try again. Hereโs the error code, in case you need it: 0x803F8001
Linked issues
Comments 2

Thank you for your report!
We're tracking this issue in MCL-19984, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
๐ Bug Tracker Guidelines โ ๐ฌ Community Support โ ๐ง Mojang Support
๐ Project Summary โ โ๏ธ Feedback and Suggestions โ ๐ Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.
Duplicatesย MCL-19984