We revise the model for the origin of the HD 45364 exoplanetary system proposed by Rein et al. (2010, A&A, 510, A4), which is currently known to host two planets close to the 3/2 mean-motion resonance (MMR). We show that due to the high surface density of the protoplanetary disk needed for type III migration, this model can only lead to planets in a quasi-resonant regime of motion and thus is not consistent with the resonant configuration obtained by Correia et al. (2009, A&A, 496, 521). Although both resonant and quasi-resonant solutions are statistically indistinguishable with respect to radial velocity measurements, their distinct dynamical behavior is intriguing. We used the semi-analytical model to confirm the quantitative difference between two configurations. To form a system that evolves inside the 3/2 resonance, we developed a different model. Our scenario includes an interaction between different (but slower) planetary migration types, planet growth, and gap formation in the protoplanetary disk. The evolutionary path was chosen due to a detailed analysis of the phase space structure in the vicinity of the 3/2 MMR that employed dynamical mapping techniques. The outcomes of our simulations are able to very closely reproduce the 3/2 resonant dynamics obtained from the best fit presented by Correia et al. In addition, by varying the strength of the eccentricity damping, we can also simulate the quasi-resonant configuration similar to that reported in Rein et al. We furthermore show that our scenario is reliable with respect to the physical parameters involved in the resonance-trapping process. However, our scenario can only be confirmed with additional radial velocities measurements.