Make sure that
(1) Your Computer is free of Viruses otherwise get a good anti virus update it and check and clean your computer.
(2) Take a good Registry cleaning software like RegCure, Registry booster etc and use it to clean the registry of your computer with bad links and other corrupt information of your Operating System.
These registry software are very basic and easy to use and I recommend it to be a must of all client PCs.
If you have problems in buying one try this freeware Registry cleaner.http://www.wisecleaner.com/
(3)If this does not help then change your printer setup file it must be corrupt. You should attain a setup file for your printer from a different source or try your setup file which is giving an error, take it and try to install it on another computer if there is a similar error than the problem is definitely with the setup file.
On the contrary time if there is no error and setup installs smoothly on the other computer then your computer especially the Operating system(Like Windows XP, Vista and 7) require special attention your PC should be free of Viruses your Registry should be extremely neat and clean and you should be using good Registry software. There will many errors in your registry needed to be fixed by registry software but if your registry does not have the problem which the registry software will tell you.
In the most extreme cases upgrading or reinstalling your Operating System will dramatically show good results provided the setup file is not corrupt.