Melody's VSTA Blog

Get the latest and greatest information on VSTA here! Find new samples, workarounds, and inside tips in our downloads and blogs. Get your questions answered quickly in our forums or search our site for a FAQ. We're here to help- just ask.

Registry and Registry Settings Changes in VSTA v 2

VSTA v 2 host configuration registry entries are similar to VSTA v 1’s- there are a few new entries and a change in how they are organized.

Two of the most noticeable differences are the “2.0” subkey and “VSTAVersion” entry.  VSTA v 2 entries are stored in the “2.0” subkey, which resides beneath the host subkey in the VSTAHostConfig hive.  The VSTAVersion entry with a value of “9.0” is a required entry; without it the vsta setup command will not work (see Note 1).  In the VSTAHost hive, VSTA v 2 entries are stored in the “9.0” subkey beneath the host subkey while VSTA v 1 entries are stored in the “8.0” subkey.  This setup allows a host to be registered both under VSTA v 1 and VSTA v 2.

Other new entries for the configuration hive include “UpgradeFrom” and “UpgradeHelper” which are used to migrate existing VSTA v 1 add-ins, “HelpNamespace” which is used to register custom help files, and “VSItemTemplatesLocation” which is similar to the “VSV#ProjectTemplateLocation” entries.

As in VSTA v 1, the VSTAHost hive must be deleted and regenerated with vsta setup to reflect most changes in the VSTAHostConfig registry.  To avoid causing any problems with a host registered under both VSTA v 1 and VSTA v2, delete the VSTAHost\<HostID>\9.0 subkey instead of the host’s key prior to running setup.

In-Process Host Registry Entries
Unlike VSTA v 1, where In-Process Host (IPH) registry entries had to be added directly to the VSTAHost hive, VSTA v 2 stores these entries in the VSTAHostConfig hive.  To register an IPH, add the “VSTA” then “InProcHost” subkeys beneath the “2.0” subkey beneath the host’s key in the VSTAHostConfig hive.  Then delete the “9.0” key beneath the host’s key in the VSTAHost hive and run vsta setup.

Note 1:  The “VSTAVersion” entry requires the value “9.0”.  If this entry with this value is not found when vsta setup is run an error will occur.  The error message will state that one or more components cannot be found and the application needs to be re-installed.  To avoid this message, register the host using a value of “9.0” in the “VSTAVersion” registry entry.

Published Tuesday, February 19, 2008 8:15 AM by Melody

Comments

  • From the specs of the N96, this is one phone that I would definitely love to have. It looks like an Iphone, it now has a built- in memory like the N95 8GB and an external memory slot like the classic N95. With all the features it have, I just hope that

    June 20, 2008 10:02 AM
  • A Wrench In The Works Entertainment is proud to present five of the most talented Indian stand up comedians in North America, taped live, in High Definition, before a sold out audience in Hollywood, California.

    June 20, 2008 5:17 PM
  • Never mind the money…. From what I’ ve heard about Windows Vista’ s intrusive qualities, I don’ t understand why anyone would upgrade to it… I’ ve heard that it’ s built in risk assessments will automatically delete components it deems risky- whether

    June 21, 2008 4:19 AM
  • Send a message Subscribe to RSS feed Tell a friend Add to My MSN Add to Live.

    June 21, 2008 6:18 AM
  • Even before the wreckage of the plane had been found, the media was saturated with news stories declaring the weather to have been very hazy (the weather was VFR conditions, and 8 mile visibility, plus weather radar and witnesses on Martha’ s Vineyard

    June 21, 2008 7:19 AM
  • To download it, head on over to the Windows Live Dev Connect page on Microsoft Connect , go to the download page and download it.

    June 21, 2008 8:04 AM
  • They also point to a few things that don’ t give speed improvements, like everybody’ s favorite: repairing permissions. Most of the list is common sense for those who’ ve been around the block a couple of times, but if you’ re looking for a concise, clear

    June 21, 2008 8:58 AM
  • In C, allocate even uninitialized global variables in the data section of the object file, rather than generating them as common blocks. This has the effect that if the same variable is declared (without extern) in two different compilations, you will get

    June 25, 2008 8:26 PM
  • John Heasman of Next Generation Security Software (NGS) has reported that StarOffice versions 6, 7 and 8 are affected too and there is a fix available. Blog entry updated.

    June 28, 2008 12:02 PM
  • Copyright slow style All Rights Reserved.

    June 29, 2008 11:01 AM
Anonymous comments are disabled