Pablo Galiano : Registering a VSX Package programmatically

Subscriptions

<July 2010>
SuMoTuWeThFrSa
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567

News

Subscribe to Pablo Galiano by Email

Post Categories

Registering a VSX Package programmatically

The regpkg utility located under %VSSDK_InstallDir%\%Version_Number%\VisualStudioIntegration\Tools\Bin\ is a managed assembly and provides the necessary API to do the common operations with VSX Packages that you usually do from the command line.

The RegPkg class is the one that exposes the API to deal with VSX Packages and it has the following useful methods signatures:

  • Register(string fileName, string regRoot, RegistrationMethod registrationMethod)
  • Unregister(string fileName, string regRoot, RegistrationMethod registrationMethod)
  • CreateReg(string fileName, string regRoot, RegistrationMethod registrationMethod)
  • CreateWix(string fileName, string regRoot, RegistrationMethod registrationMethod)

One important thing is that the regpkg utility isn't redistributable via the VS SDK license agreement, because of that this only apply to scenarios with the VS SDK installed.

There are a couple of *design-time scenarios* where this could be really useful, for example VSSDK Assist uses this approach to register/unregister a VSX package

Pablo

posted on Tuesday, July 03, 2007 10:29 AM by pga