Here are the steps to install Windows 7:
Insert the Windows 7 installation disc into your computer's CD/DVD drive.
Restart your computer and press the appropriate key to enter the BIOS setup. This is usually F2 or Delete, but it may vary depending on your computer's manufacturer.
In the BIOS setup, change the boot order so that the CD/DVD drive is the first boot device.
Save the changes and exit the BIOS setup.
Your computer should now boot from the Windows 7 installation disc.
Select your language and other preferences, and then click "Install now".
Enter your product key, which is usually located on the Windows 7 packaging or on a sticker on your computer.
Accept the license terms and click "Next".
Select "Custom (advanced)" installation.
Partition your hard drive as desired. You can create a new partition or install Windows 7 on an existing partition.
Select the partition on which you want to install Windows 7, and then click "Next".
Windows 7 will now install. This process may take several minutes to an hour, depending on your computer's speed.
After installation is complete, Windows 7 will restart your computer.
Follow the on-screen instructions to set up Windows 7, including setting up user accounts and selecting your language and time zone.
Install any necessary drivers for your hardware, such as video and sound drivers.
Install any necessary software, such as antivirus and office suites.
That's it! Your computer should now be running Windows 7. Note that you may need to activate your copy of Windows 7 by going to "Control Panel" > "System and Security" > "System" and clicking "Activate Windows now".