1

I am trying to create an add-in.
I get an error.
I found a solution to the error - link.
To solve the error, the string HKEY_CURRENT_USER\Software\Microsoft\VSTA\Solutions\{GUID} is required.

Question: where can I get {GUID}?

enter image description here


Update-1

enter image description here


Updated-2

enter image description here


Updated-3

I seem to have found my add-on.
In my case, {GUID} = b037194d-afa5-4109-a7dd-36fbdd2d1610?
The address will look like this - HKEY_CURRENT_USER\Software\Microsoft\VSTA\Solutions\b037194d-afa5-4109-a7dd-36fbdd2d1610?

enter image description here

eusataf
  • 807
  • 1
  • 12
  • 24
  • Did you try looking in that path (or similar path) for the GUID? The Name of key will be the path to the .vsto file, and the Value of the key will be the GUID. – Rachel Hettinger Dec 06 '19 at 18:16
  • @RachelHettinger See Update-1. Sorry, I can’t understand you.   Could you try to formulate your decision differently. – eusataf Dec 06 '19 at 18:29
  • @RachelHettinger Do you mean to go to all the folders that are in the `Solutions` folder? And if there are files, then find files that will be related to my add-in? – eusataf Dec 06 '19 at 18:37
  • @RachelHettinger see `Update - 2`. Did I understand you correctly that I need to find my add-in in the way that I indicated in the picture? Then why is it necessary to do this at `HKEY_CURRENT_USER\Software\Microsoft\VSTO\SolutionMetadata\` , and not at `HKEY_CURRENT_USER\Software\Microsoft\VSTA\Solutions\{GUID}` – eusataf Dec 06 '19 at 18:52

1 Answers1

1

When you are publishing your addin using ClickOnce deployment in the options there is field called 'Product Name' which is added to the registry of your addin as 'String value'.

enter image description here

Here is the entry in the registry (HKEY_CURRENT_USER\Software\Microsoft\VSTA\Solutions)

enter image description here

In our deployment process we needed a post deployment action to set the icon of the application and the only way to find the GUID was registry seek in the Solution sub-path for entry with specific 'Product Name' - this is in case you need some automation.

vasil oreshenski
  • 2,788
  • 1
  • 14
  • 21
  • see `Update-3`. I seem to have found my add-on. In my case, {GUID} = `b037194d-afa5-4109-a7dd-36fbdd2d1610`? The address will look like this - `HKEY_CURRENT_USER\Software\Microsoft\VSTA\Solutions\b037194d-afa5-4109-a7dd-36fbdd2d1610`? – eusataf Dec 06 '19 at 19:14
  • @eusataf Yes, this is the registry key you need to remove. After you remove it, the office app (Word, Excel .. etc) will not try to load it. – vasil oreshenski Dec 07 '19 at 07:10