Hi, I am Dave, I will help you with this.
It is very unlikely you will be able to play those games/CD's on Windows 10 or 11, the old games used an encryption on the game disks that is not supported in Windows 10/11 and most likely the disks also use Macromedia Flash for the animations, which was removed from all versions of Windows a couple of years ago due to more modern technologies being used for animation.
You can try installing DirectX 9 from the link below, then restart your PC and try installing the games by right clicking the installer and choose to run it in Windows XP compatibility Mode, if that fails, the games are too old.