i dont think IF EXIST would work in a .reg file but you do have a good thery if maybe you where to set that @ the start of the .reg file instead of doing like you have, may it would work i will look up in the Windows XP Registry book to see about varibles.