Hello! My name is*****I am a certified computer professional who will assist you.
To confirm, did your Lenovo G510 computer come with Linux or Windows pre-installed? Also, do you have a Windows installation disk?
If there are some drivers missing, you can download them from the official Lenovo web page, but you can install the drivers only if you can access the Windows 7 desktop.
At which point the installation fails exactly?