Installation codes for Command & Conquer: Generals – Zero Hour are printed on the disc case or in the manual, so if the leaflet has gone missing, start by checking the case itself and any sleeve the disc came in.
Failing that, contact the publisher's support team with proof of purchase. They can sometimes verify ownership and help you out, though for a title this old the realistic answer is often to buy a legitimate digital copy, which is inexpensive and comes with a key attached to an account rather than a scrap of paper.
Posting a request for someone else's code will not work in any case — these keys are single use and tied to the copy they shipped with.