#region 注册3D组件
RegistryKey rkTest = Registry.ClassesRoot.OpenSubKey("CLSID\\{69C20AA8-0B78-44d9-AC4D-B82358C2F14E}\\");
if (rkTest == null)
{
string dll_filepath = Path.Combine(FileService.RootPath, "3DViewer\\ICSViewerCtrl.dll");
Process p = new Process();
p.StartInfo.FileName = "Regsvr32.exe";
p.StartInfo.Arguments = " /s \"" + dll_filepath + "\"";//路径中不能有空格
p.Start();
//p.Close();
}
#endregion