I've just downloaded minecraft java edition and when i load the launcher it says that the game might be corrupt and to reinstall and however many times i do it, it doesn't fix it. even the repair function in the setup doesn't do anything.
Have you tried downloading a new copy of the installer?
I've tried everything multiple times: new installers, restarting computer, reinstalling.
Someone I know had the same problem but forgot how he fixed it.