That's the same exact issue i was having. I wish i knew how i fixed it. that's the only thing i did differently. I did reinstall java before doing that process, but i don't think that would have made a difference.
I can open the curse forge launcher, but when I try to open a modpack i have downloaded all I get is: this app can't run on your pc to find a version for your pc check with the software publisher. I have tried almost everything and all I wanna do is play Minecraft