There so much code there... hard to tell if there are more but here is one mis-matched quote. Really no need for the quote around the 1.

 Code:
		'Writing NeedCommonFiles "A": '
		$=WriteValue('HKEY_CURRENT_USER\Software\Lotus\Notes\8.0', 'NeedCommonFiles', 1, 'Reg_DWord')