Hi Jean, the problem is Sims 2 is not compatible with Windows 10
Uninstall the expansion if it's already installed.
Then when you install it, instead of double clicking on the install file, right click that and choose 'Troubleshoot Compatibility'
Click 'Troubleshoot Program'
Follow the steps and when you get a chance, choose Windows 7 compatibility mode and that should then install . . .