I recently got error 1 in the launcher, so I restarted the .minecraft.
After restarting it, I can't get the Forge 1.19.2 - 43.1.1 installer to run, I tried other versions and I get the same result, it opens a black box that closes instantly and nothing happens.
I already tried to restart my pc, minecraft, update and reinstall java, run vanilla 1.19.2 and more recent versions of the game, disable Windows Firewall and antivirus and I still haven't solved it.
Many times I installed forge and never ran into this problem.
If I could receive assistance I would be very grateful.
[EDIT] In case someone runs into the same problem, I was able to fix it by running jarfix.