
C:\Users\XXXX\AppData\Roaming\.minecraft
Move/backup or Delete your .minecraft folder.
Then run the minecraft installer, and see if that works.
https://www.curseforge.com/download/appYou can also try using the Curseforge app, and install minecraft that way, and it should help you fix/repair the issue.
Also triple check you don't have an antivirus like McCafe , blocking your system from installers ect.
Worse case Scenario, Install a fresh copy of windows.
https://www.microsoft.com/en-us/software-download/windows11https://www.terabox.com/if you have decent internet, Upload your Capcut projects to an online cloud.