Graphics card not detected

Hello, I recently installed a 32bit OS on a 64bit OS laptop. But the problem is it doesn't detect any video card at all. even the integrated one. (Intel Graphics HD family)

So I reformatted my laptop to factory settings,It worked and it's back to 64bit but my only problem is it isn't detecting the dedicated graphics card. (geforce gt 520m)

When I try to install drivers from nvidia the installer only says "this graphics driver could not find compatible graphics software" and tried looking at device manager and the graphics card is not there.