C# 查询注册表,判断本机是否安装Office2003,2007,2010,2013,2016和WPS
publicvoidCheck_OfficeAndWps(){//是否安装OfficeboolisOfficeInstall=false;//是否安装WpsboolisWpsInstall=false;//Office版本intofficeVersion=0;//32位RegistryKeylocalMachine32=Registry.LocalMachine;RegistryKeyakey03