Install it in order, base game first. Double Deluxe is a bundle, and the installer expects the original Sims to already be on the machine before the Deluxe content goes on top.
The practical sequence is: install The Sims, then run the Deluxe disc, and let each finish completely before starting the next. If you have the discs in front of you, the installers are usually numbered or labelled, which removes the guesswork. The one thing to avoid is starting with the expansion — that is what leaves people with a half-installed game.