StartupFileList regkey error

The code I posted (above) seems to work pretty consistently here. Have you captured the contents of the Registry before and after running the script? What are the differences?