Use the Minecraft Launcher to create a new installation and run vanilla Minecraft 1.12.2 first at least up till you get game loaded screen. Then exit out, and edit the game configuration to run Forge 1.12.2. Then run that until you get to the game loaded screen. Then you can exit out of the Launcher and add mods to the mod directory that forge created for you in the working directory.