I am running Windows 10 and this problem showed up when I tried to uninstall the Beta version of Minecraft and I uninstalled the entire installation folder for it and then I tried to re-install it and it gave me the error.
User contributions licensed under CC BY-SA 3.0