Why is Minecraft not working in Windows 10 Home Edition?

I just bought and setup my new gaming laptop with Windoes 10. When i tried to install minecraft it said it was downloading and installing runtime or something like that. Then it said its setting up runtime. Then i get this error that says, "Unable to start the Minecraft Runtime Enviroment. This is most likely caused by a corruption. Please try to reinstall Minecraft". The only option is to hit "ok". And i've already tried reinstalling minecraft and it gives me this same thing every time. What should i do to fix this?

First thing I would do is uninstall Minecraft and delete any remaining MC-related files, and then install Java, and then install Minecraft: https://www.java.com/.../download/

If that doesn't work, you can try to run the MinecraftLauncher.exe found at "C:\Program Files (x86)\Minecraft\" as Administrator.