Donor-acceptor polyenes and carotenoids of defined and increasing length, bearing electron-donating ferrocene or julolidine moieties, and formyl or dicyanovinyl electron-withdrawing end groups have been prepared in order to achieve enhanced quadratic optical nonlinearities. The variation of their quadratic hyperpolarizability beta in solution was investigated using the electric field induced second harmonic (EFISH) generation technique, and was compared to the behavior of two series of soluble push-pull diphenylpolyenes. The chainlength behavior for each series of homologous compounds can be modeled by mu beta(0) = kn(a) relationships with respect to the number n of double bonds in the polyenic chain, the exponent value a depending markedly on the end groups. Steeper increases were observed with the ferrocene donor moiety as compared to the strong julolidine donor group, and with the stronger dicyanovinyl acceptor (a = 2.4 and 1.45), as compared to the weak formyl acceptor (a = 1.6 and 1.3). In contrast, the series of push-pull diphenylpolyenes display the weakest dependencies, and show very little influence of the terminal acceptor substituents on the length behavior (a approximate to 1).