We calculate rapidity and transverse momentum distributions for different vector mesons in purely exclusive $(pp \to ppV)$ and semiexclusive $(pp \to pXV)$ processes with the electromagnetic dissociation of a proton. The cross section for exclusive production depends on the wave function of the vector mesons and unintegrated gluon distribution function. The cross section for the electromagnetic dissociation is expressed through electro-magnetic structure functions of the proton. We include the transverse momentum distribution of initial photons in the associated flux. Contributions of the exclusive and semiexclusive processes are compared for different vector mesons $(V = \phi, J/\psi, \Upsilon)$. We show the ratio of semiexclusive to exclusive contributions and compare for different mesons as a function of different variables $(y, p_{t})$.