staticpublic bool ExistsWINRAR() { try { RegistryKey the_Reg = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Win11RAR.exe"); return!string.IsNullOrEmpty(the_Reg.GetValue("").ToString()); } catch { returnfalse; } }
原文地址:http://blog.csdn.net/chao88552828/article/details/43527655