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 }));
 }
Esempio 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);
     }
 }
Esempio 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 }));
 }
Esempio 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 }));
 }
Esempio 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));
        }
Esempio 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);
 }
Esempio n. 13
0
 public override void Unregister(RegistrationAttribute.RegistrationContext context)
 {
     context.RemoveKey("TasksPath");
 }
Esempio 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));
 }
Esempio n. 17
0
 public override void Unregister(RegistrationAttribute.RegistrationContext context)
 {
     context.RemoveKey(REG_KEY_CONNECTORS + "\\" + RegGuid.ToString("B"));
 }
Esempio n. 18
0
 public override void Unregister(RegistrationAttribute.RegistrationContext context)
 {
     context.RemoveKey("ProjectStructureType");
 }
Esempio n. 19
0
 public override void Unregister(RegistrationAttribute.RegistrationContext context)
 {
     context.RemoveKey(@"DataProviders\{" + GuidList.guidNpgsqlDdexProviderDataProviderString + @"}");
     context.RemoveKey(@"DataSources\{" + GuidList.guidNpgsqlDdexProviderDataSourceString + @"}");
 }
Esempio n. 20
0
 public override void Unregister(RegistrationAttribute.RegistrationContext context)
 {
     context.RemoveKey("Text Editor\\External Markers\\{" + GuidConstants.BaseMarkerGuid + "}");
 }
Esempio n. 21
0
 public override void Unregister(RegistrationAttribute.RegistrationContext context)
 {
     context.RemoveKey("Text Editor\\External Markers\\" + _markerGUID);
 }