using Microsoft.Win32; RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Installer\Assemblies"); string regfilepath=""; if (key!=null) // Make sure there are Assemblies { foreach(string Keyname in key.GetSubKeyNames()) { if (Keyname.IndexOf("YOUR_EXE_FILE.EXE")>0) { regfilepath=Keyname; break; } } } string fullpath=""; for (int a=0;a<regfilepath.Length;a++) { if (regfilepath.IndexOf("|",a,1)>0) fullpath+="\\"; else fullpath+=regfilepath.Substring(a,1); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)