We investigate nucleosynthesis inside both a gamma-ray burst accretion disk and a wind launched from an inner region of the disk using one-dimensional models of the disk and wind and a nuclear reaction network. Far from a central black hole, the composition of accreting gas is taken to be that of an O-rich layer of a massive star before core collapse. We find that the disk consists of five layers characterized by dominant elements: O-16, Si-28, Fe-54 (and Ni-56), He-4, and nucleons, and the individual layers shift inward with keeping the overall profiles of compositions as the accretion rate decreases. 56Ni are abundantly ejected through the wind from the inner region of the disk with the electron fraction similar or equal to 0.5. In addition to iron group, elements heavier than Cu, in particular Cu-63 and (64)Zu, are massively produced through the wind. Various neutron-rich nuclei can be also produced in the wind from neutron-rich regions of the disk, though the estimated yields have large uncertainties.