Skip the file-sharing links. Copies of Mega Man X7 passed around on torrent trackers and random download mirrors are unlicensed, frequently bundled with malware, and no way to support the people who made the game.
Your realistic options are the official re-releases. Capcom has compiled the X series into collections such as Mega Man X Legacy Collection, which includes X7 alongside the other mainline entries and is sold through Steam and console stores. If you specifically want the original standalone release, secondhand physical copies for consoles are the legitimate route.