Hi,
first off, a PC that is shipped with Windows 7 is probably not able to upgrade to Windows 11.
If it isn't compatible, the installation will show a message explaining that the PC does not meet the minimum requirements.
To try to install Windows 11 if you can't upgrade, I would suggest you create an installation media for Windows 11 (probably a USB stick) on another PC, and then boot the PC from that.
However, installing from that will wipe the harddrive in the process deleting all data and apps on the PC.
I am also unsure whether you can directly upgrade from 7 to 11, or if you need to go to Windows 10 first.
Remember to make a backup of any data before you make big system changes like this.
Regards,
LightJack