Add detection code MS Office

Add detection code for MS Office XP, 2003, 2007, 2010, and 2012.

[SeeRM #8413]
Make sure i var is local
Land #2527, addonsdetect