title: Issue with .INF file for registering ActiveX
body: <p>I have made an INF file, its contents are as follows</p>
  
  <pre><code>[version]
  Signature="$CHICAGO$"
  AdvancedINF=2.0
  
  [Add.Code]
  MyControl.dll=MyControl.dll
  
  
  ; Now installing the ActiveX
  [MyControl.dll]
  file-win32-x86=thiscab
  clsid={05B7BC83-FCA1-452d-9D33-193784FEC637}
  FileVersion=1,0,0,1
  RegisterServer=yes
  </code></pre>
  
  <p>but the Control is not registered after Internet Explorer has finished installation, and each time I press F5 to refresh the webpage, my browser shows the Installation prompt.?? which means that it is not installed in my machine. And when I run <code>regasm /tlb /codebase MyControl.dll</code> command it starts working fine... I have written my ActiveX control in C# and here are registering function</p>
  
  <pre><code>[ComRegisterFunction()]
          public static void RegisterClass ( string key )
          {
              // Strip off HKEY_CLASSES_ROOT\ from the passed key as I don't need it
              StringBuilder   sb = new StringBuilder ( key ) ;
  
              sb.Replace(@"HKEY_CLASSES_ROOT\","") ;
              // Open the CLSID\{guid} key for write access
              RegistryKey k   = Registry.ClassesRoot.OpenSubKey(sb.ToString(),true);
  
              // And create   the 'Control' key - this allows it to show up in
              // the ActiveX control container
              RegistryKey ctrl = k.CreateSubKey   ( "Control" ) ;
              ctrl.Close ( ) ;
  
              // Next create the CodeBase entry   - needed if not string named and GACced.
              RegistryKey inprocServer32 = k.OpenSubKey   ( "InprocServer32" , true ) ;
              inprocServer32.SetValue (   "CodeBase" , Assembly.GetExecutingAssembly().CodeBase ) ;
              inprocServer32.Close ( ) ;
                  // Finally close the main   key
              k.Close (   ) ;
              //MessageBox.Show("Registered");
          }
  </code></pre>
  
  <p>Please help me out that why <code>RegisterServer=yes</code> is not calling this function, and I have to call it manually using <code>regasm /tlb /codebase MyControl.dll</code> command?</p>