Upgraded MB and processor now can't play game

I upgraded from I3 processor and Z 170 MB to the new Z690 A MB running I5 intel processor. I also installed the new win 11 pro clean install on a SSD. Now I can not run the game from my old hard drive using the new operating system. How do I get it to run now? I built the computer all myself but am not as good with all the software. Thanks