The best way to do this is to install the program from its original media. If you do not do this you can run in to issues. Such as you mentioned. Once the program is installed, you can then select a compatibility mode if necessary.
Run Older Programs on Windows XP