I feel fairly certain that either the exclamation in the path caused the problem or the launcher isn't installed correctly. Try repairing the installation. If that does not work, then remove the exclamation in the path.
Just delete the version from .minecraft/versions and download a Fresh copy of Forge 1.12 for Windows and install as usual. Show screenshots if that does not work.