Downloading Office Mac 2004 onto iMac

I recently traded my 2007 MacBook with Office Mac 2004 for an iMac. I have the original disc for Office Mac 2004 including the product keys but when I insert the disc I received an error message. How do I do I proceed as I don't want to have to repurchase the office mac software. Thanks for your help.