This is a coding question, not actually code to review, but I thought this was the best place to ask. Obviously VBScript can be used to manipulate the Windows Registry using RegRead, RegWrite and RegDelete, but it is possible to test for the existence of a key before reading it? I am trying to detect the service pack level of a windows install but if the user is running Windows XP without SP1, it simply does not have the key CSDVersion under HKLM\Software\Microsoft\Windows NT\Current Version and this causes my script to crash. Does anyone have any idea how I can get around this? Thanks!

-Al