Hello and welcome to the forum!
There are plenty of other ways to go about this, but only one way I'll recommend. Some may be easier but imho, this way is most effective and fool-proof.
That's to download and burn the .iso to cd of a Linux live disc called gparted -
Download GParted from SourceForge.net
Once burned, boot to the cd you just made. Once up and running, use it to format what you've called the D partition. (It will probably not have letters in this software.)
---------
Now to re-attempt Windows installation. I would recommend you look in the bios for a setting called Plug and Play OS. If it in fact does exists, set it to yes or enabled. Save. If it doesn't exist, don't worry about it.
I would create a USB installation key from the Windows DVD, to install Windows from. You'd have to set the bios to boot from the USB key now. In many instances, the bios sees the USB key as a hard drive. You might have to keep that in mind while looking for it while making this setting.
You can Google for how to create the Windows installation USB key. It isn't very difficult to do.
It is the most guaranteed way to install Windows for you, to have success, since you've already had issues.