public override void Unregister(RegistrationAttribute.RegistrationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     if (string.IsNullOrEmpty(this.Name))
     {
         throw new ArgumentNullException("Name");
     }
     if (string.IsNullOrEmpty(this.Extension))
     {
         throw new ArgumentNullException("Extension");
     }
     if (string.IsNullOrEmpty(this.ProjectSystemPackage))
     {
         throw new ArgumentNullException("ProjectSystemPackage");
     }
     if (string.IsNullOrEmpty(this.ProjectSystem))
     {
         throw new ArgumentNullException("ProjectSystem");
     }
     context.RemoveKey(@"Generators\" + this.ProjectSystem + @"\" + this.Extension);
     if (StringComparer.OrdinalIgnoreCase.Compare(this.ProjectSystem, "{E24C65DC-7377-472b-9ABA-BC803B73C61A}") == 0)
     {
         context.RemoveKey(string.Format(CultureInfo.InvariantCulture, @"Projects\\\{{0}\}\\FileExtensions\\{1}", new object[] { this.ProjectSystem, this.Extension }));
     }
     context.Log.WriteLine(string.Format(CultureInfo.CurrentCulture, Microsoft.VisualStudio.TextTemplating.VSHost.Resources.ProvideCodeGeneratorExtensionAttributeUnregisterLog, new object[] { this.Name, this.Extension }));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Delete our specified keys
 /// </summary>
 /// <param name="context">The context that this registration attribute is being used in</param>
 public override void Unregister(RegistrationAttribute.RegistrationContext context)
 {
     context.RemoveKey(@"Generators\" + this.ProjectSystem + @"\" + this.Name);
     context.RemoveKey(@"CLSID\{" + this.Type.GUID + @"}");
     context.Log.WriteLine(string.Format(
                               CultureInfo.CurrentCulture,
                               Resources.ProvideCodeGeneratorAttribute_UnregisterLog,
                               this.Name,
                               this.Type.GUID));
 }
 public override void Unregister(RegistrationAttribute.RegistrationContext context)
 {
     try
     {
         context.Log.Write("Unregistering Configuration Section Designer Generator... ");
         context.RemoveKey(@"CLSID\" + _generatorClsid);
         context.RemoveKey(@"Generators\" + CSharpGeneratorsGuid + @"\CsdFileGenerator");
         context.RemoveKey(@"Generators\" + VBGeneratorsGuid + @"\CsdFileGenerator");
         context.RemoveKey(@"Projects\" + CSharpProjectGuid + @"\FileExtensions\.csd");
         context.RemoveKey(@"Projects\" + VBProjectGuid + @"\FileExtensions\.csd");
         context.Log.WriteLine("Success.");
     }
     catch (Exception e)
     {
         context.Log.WriteLine("Failure: " + e);
     }
 }
Ejemplo n.º 4
0
 public override void Unregister(RegistrationAttribute.RegistrationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     context.RemoveKey(@"AutomationProperties\" + this.Category + @"\" + this.Subcategory);
     context.Log.WriteLine(string.Format(CultureInfo.CurrentCulture, Microsoft.VisualStudio.TextTemplating.VSHost.Resources.ProvideAutomationPropertiesLogUnregistered, new object[] { this.Category, this.Subcategory }));
 }
Ejemplo n.º 5
0
 public override void Unregister(RegistrationAttribute.RegistrationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     context.RemoveKey(@"SolutionPersistence\" + this.Name);
     context.Log.WriteLine(string.Format(CultureInfo.CurrentCulture, Microsoft.VisualStudio.TextTemplating.VSHost.Resources.ProvideSolutionPersistenceLogUnregistered, new object[] { this.Name }));
 }
Ejemplo n.º 6
0
 public override void Unregister(RegistrationAttribute.RegistrationContext context)
 {
     if (context != null)
     {
         context.RemoveKey(String.Format(CultureInfo.InvariantCulture, "{0}\\{1}",
                                         ToolboxControlsInstallerPath,
                                         context.ComponentType.AssemblyQualifiedName));
     }
 }
 public override void Unregister(RegistrationAttribute.RegistrationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     context.RemoveKey(@"TextTemplating\DirectiveProcessors\" + this.Name);
     context.Log.WriteLine(string.Format(CultureInfo.CurrentCulture, Microsoft.VisualStudio.TextTemplating.VSHost.Resources.ProvideDirectiveProcessorLogUnregistered, new object[] { this.Type.FullName, this.Name, this.Description }));
 }
        public override void Unregister(RegistrationAttribute.RegistrationContext context)
        {
            try
            {
                context.Log.Write(string.Format("Unregistering {0} ... ", Const.FILEGENERATOR_NAME));

                context.RemoveKey(@"CLSID\" + _generatorClsid);
                context.RemoveKey(@"Generators\" + CSharpGeneratorsGuid + @"\" + Const.FILEGENERATOR_IDENT);
                context.RemoveKey(@"Generators\" + VBGeneratorsGuid + @"\" + Const.FILEGENERATOR_IDENT);
                context.RemoveKey(@"Projects\" + CSharpProjectGuid + @"\FileExtensions\" + Const.DESIGNER_FILE_EXT);
                context.RemoveKey(@"Projects\" + VBProjectGuid + @"\FileExtensions\" + Const.DESIGNER_FILE_EXT);
                context.Log.WriteLine("Success.");
            }
            catch (Exception e)
            {
                context.Log.WriteLine("Failure: " + e);
            }
        }
        /// <summary>Removes registration information about a VSPackage when called by an external registration tool such as regpkg.exe.</summary>
        /// <param name="context">A registration context provided by an external registration tool. The context can be used to remove registry keys, log registration activity, and obtain information about the component being registered. </param>
        public override void Unregister(RegistrationAttribute.RegistrationContext context)
        {
            if (context == null)
            {
                return;
            }
#if DEBUG
            Console.WriteLine("Unregistering AsmHighlighter Expression Evaluator");
#endif
            context.RemoveKey(string.Format("AD7Metrics\\ExpressionEvaluator\\{0:B}\\{1:B}", languageGuid, vendorGuid));
            context.RemoveKeyIfEmpty(string.Format("AD7Metrics\\ExpressionEvaluator\\{0:B}", languageGuid));
        }
Ejemplo n.º 10
0
 public override void Unregister(RegistrationAttribute.RegistrationContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     if (this.Type == null)
     {
         throw new ArgumentNullException("Type");
     }
     if (string.IsNullOrEmpty(this.Name))
     {
         throw new ArgumentNullException("Name");
     }
     if (string.IsNullOrEmpty(this.ProjectSystem))
     {
         throw new ArgumentNullException("ProjectSystem");
     }
     context.RemoveKey(@"Generators\" + this.ProjectSystem + @"\" + this.Name);
     context.RemoveKey(@"CLSID\{" + this.Type.GUID + "}");
     context.Log.WriteLine(string.Format(CultureInfo.CurrentCulture, Microsoft.VisualStudio.TextTemplating.VSHost.Resources.ProvideCodeGeneratorAttributeUnregisterLog, new object[] { this.Name, this.Type.GUID.ToString() }));
 }
 public override void Unregister(RegistrationAttribute.RegistrationContext context)
 {
     context.RemoveKey("BizTalkBindingToolDb");
 }
 public override void Unregister(RegistrationAttribute.RegistrationContext context)
 {
     context.RemoveKey(pageRegKey);
 }
Ejemplo n.º 13
0
 public override void Unregister(RegistrationAttribute.RegistrationContext context)
 {
     context.RemoveKey("TasksPath");
 }
Ejemplo n.º 14
0
 public override void Unregister(RegistrationAttribute.RegistrationContext context)
 {
     context.RemoveKey(GetKey(_key));
 }
 // Token: 0x060001BF RID: 447 RVA: 0x00006904 File Offset: 0x00004B04
 private void UnregisterSoft(RegistrationAttribute.RegistrationContext context)
 {
     context.RemoveKey(string.Format("AD7Metrics\\Engine\\{0}", this.EngineGuid));
     context.RemoveKey(string.Format("CLSID\\{0}", this.EngineClassGuid));
 }
 // Token: 0x060001BD RID: 445 RVA: 0x00006754 File Offset: 0x00004954
 private void UnregisterCommon(RegistrationAttribute.RegistrationContext context)
 {
     context.RemoveKey(string.Format("AD7Metrics\\PortSupplier\\{0}", this.PortSupplierGuid));
     context.RemoveKey(string.Format("CLSID\\{0}", this.PortSupplierClassGuid));
 }
Ejemplo n.º 17
0
 public override void Unregister(RegistrationAttribute.RegistrationContext context)
 {
     context.RemoveKey(REG_KEY_CONNECTORS + "\\" + RegGuid.ToString("B"));
 }
Ejemplo n.º 18
0
 public override void Unregister(RegistrationAttribute.RegistrationContext context)
 {
     context.RemoveKey("ProjectStructureType");
 }
Ejemplo n.º 19
0
 public override void Unregister(RegistrationAttribute.RegistrationContext context)
 {
     context.RemoveKey(@"DataProviders\{" + GuidList.guidNpgsqlDdexProviderDataProviderString + @"}");
     context.RemoveKey(@"DataSources\{" + GuidList.guidNpgsqlDdexProviderDataSourceString + @"}");
 }
Ejemplo n.º 20
0
 public override void Unregister(RegistrationAttribute.RegistrationContext context)
 {
     context.RemoveKey("Text Editor\\External Markers\\{" + GuidConstants.BaseMarkerGuid + "}");
 }
Ejemplo n.º 21
0
 public override void Unregister(RegistrationAttribute.RegistrationContext context)
 {
     context.RemoveKey("Text Editor\\External Markers\\" + _markerGUID);
 }