Ask a questionAsk a question
 

AnswerHow to disable option pages of existing packages

  • Tuesday, November 03, 2009 3:34 PMHenry2323 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello,

    when I disable packages using .pkgundef then toolbars, menu entries etc. are not loaded but the option pages under Tools->Options... are still available. How can I disable them too?

    For example: Disable the Web Specific Packages
    [$RootKey$\Packages\{1B437D20-F8FE-11D2-A6AE-00104BCC7269}] // Visual Studio HTM Editor Package
    [$RootKey$\Packages\{349C5850-65DF-11DA-9384-00065B846F21}] // Microsoft.VisualStudio.Web.Application.WAPackage
    [$RootKey$\Packages\{39c9c826-8ef8-4079-8c95-428f5b1c323f}] // Visual Web Developer Project System Package
    [$RootKey$\Packages\{8FF02D1A-C177-4ac8-A62F-88FC6EA65F57}] // Visual Web Developer Project Persistance Package
    [$RootKey$\Packages\{A764E895-518D-11d2-9A89-00C04F79EFC3}] // Visual Studio CSS Editing Package
    [$RootKey$\Packages\{BFCC0C3C-6F87-4285-A6C8-BB616061800D}] // Visual Web Developer HTML Source Editor Package
    [$RootKey$\Packages\{DC7F691A-91FC-4F7b-923E-FE829C3A18DC}] // Visual Web Developer Web Application Upgrade Package
    [$RootKey$\Packages\{e7f851c8-6267-4794-b0fe-7bcab6dacbb4}] // Visual Web Developer Web Package

    Then look at the option pages:
    HTML Designer
    - General
    - CSS
    - CSS Styling
    - Ruler and Grid
    - View

    They all display "An error occurred loading this property page"

    Thanks
    Henry

Answers

  • Tuesday, November 03, 2009 5:20 PMAaron MartenMSFT, OwnerUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     AnswerHas Code
    Hi Henry,

    I think you need to add pkgundef entries for the various options pages you don't want to appear under ToolsOptionsPages. For the HTML Designer page(s) this would be:

    [$RootKey$\ToolsOptionsPages\HTML Designer]
    Thanks,
    Aaron
    http://blogs.msdn.com/aaronmar

All Replies

  • Tuesday, November 03, 2009 5:20 PMAaron MartenMSFT, OwnerUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     AnswerHas Code
    Hi Henry,

    I think you need to add pkgundef entries for the various options pages you don't want to appear under ToolsOptionsPages. For the HTML Designer page(s) this would be:

    [$RootKey$\ToolsOptionsPages\HTML Designer]
    Thanks,
    Aaron
    http://blogs.msdn.com/aaronmar