最近在用进程启动Inventor的时候,发现启动的Inventor程序很很诡异,干脆一不做二不休,直接启动可执行程序!
var localMachine = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry64);
var key = localMachine.OpenSubKey(@"SOFTWARE\Autodesk\Inventor\RegistryVersion24.0", false);
object Result = key.GetValue("InventorLocation");
Process process = new Process();
process.StartInfo.FileName = Result.ToString() + @"\Inventor.exe";
process.Start();