Okay,

Per your suggestions Lonkero I have modified the code again.

Hope this looks a little better. Af far as the backup and regsrv32. I don't want to waste my time regging if the copy failed. This is not bullet-proof, but should hopefully work for most systems.