Deploying XP SP2 and Windows 2000 Service Packs

Everyone, I am new to this product and would like some help in deploying Microsoft Service Packs.

My establishment has a mixtire of XP SP1 and Windows 2000 SP2 machines which I would like to update to SP2 and SP4 respectively.

I am currently having problems deploying SP2 as a patch where it will copy the file to the relevant folder but not install the service pack, although will reboot the workstation which is the last step in the script.