Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Reset the Unsigned Add-in security warning

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
EATREVITPOOPCAD
1942 Views, 7 Replies

Reset the Unsigned Add-in security warning

Hello

 

Does anyone know how to reset the security warning Revit gives you when loading unsigned add-ins and after you click Always Load and you ever see it again? Let's say I pressed Always Load but then changed my mind and would like to keep saying that message...

 

I suspect it is hidden somewhere in the registry. 

 

EATREVITPOOPCAD_0-1649342423527.png

 

 

 

 

The definition of insanity is doing the same thing over and over again and expecting different results
7 REPLIES 7
Message 2 of 8

I found it in the registry!

 

Here is how to reset code signing warnings:

 

  • Go to START and enter REGEDIT
  • Go to the following directory:
    • HKEY_CURRENT_USER\SOFTWARE\Autodesk\Revit\Autodesk Revit 2022\CodeSigning
  • You will see a bunch of GUID value names with value data of 0 or 1. Each one is for a different plugin you codesigned. Select them all and delete them! This is for Revit 2022 so for other versions of Revit go up a folder and go to Revit version you would like to clear code signing entries 
The definition of insanity is doing the same thing over and over again and expecting different results
Message 3 of 8

Brilliant! Thank you for sharing this!

 

I added it to the latest blog post, a couple of days after publishing, since I just noticed that it fits well with the other topic already being discussed:

  

https://thebuildingcoder.typepad.com/blog/2022/06/parameters-snippets-batch-mode-and-self-signing.ht...

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 4 of 8

Thank you for letting me know! This is actually exciting since the blog is one of my heavily used resources and I hope to be able to provide more fun stuff in future 🙂

The definition of insanity is doing the same thing over and over again and expecting different results
Message 5 of 8

If you want to completely remove the code signing certificate, you can follow these steps:

  1. From a cmd prompt run MMC. (You may also type MMC after bringing up the Windows ‘Start’ menu.) MMC = Microsoft Management Console.
  2. File > Add/Remove Snap-in… > Certificates > Add > My user account > Okay.
  3. Navigate to Certificates - Current User > Trusted Publishers > Certificates.
  4. You should now see a list of signatures.
  5. Proceed with extreme caution.
  6. To delete a certificate, just right-click > Delete.
  7. To close the console: File > Close > No.

Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?
Message 6 of 8

Cool. This is becoming quite a fount of knowledge. I went ahead and added that as well, for completeness:

  

https://thebuildingcoder.typepad.com/blog/2022/06/parameters-snippets-batch-mode-and-self-signing.ht...

  

Thank you, Matt!

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 7 of 8

Got a question that is sort of related to this.  I have had a few addons that, despite clicking "Always Load", continually create this popup every time Revit opens.  This is occurring only in R2020.  I tried starting it as Administrator and it these settings still don't stick.  I opened up the registry and, as expected, no additional GUID's appear in this section.  Any thoughts on what might be causing this?

Message 8 of 8

Sounds like something is misfiring in that Revit install. Maybe something got corrupt ¯\_(ツ)_/¯

One thing you could do is reinstall that version of Revit.

 

Now if you don't want to reinstall, you can try doing the opposite of what this post says to re-enable that warning, which would disable it... (I think this gets into the gray area of 'hacking' Revit lol... I'm glad I didn't know about this before going down the rabbit hole of getting my own digital signing certificate because I probably would not have gotten it as it was a pain to get...)

 

Here are the steps:

  • You need to find the plugin's GUID #, which is saved in an .addin file
  • Open the .addin file for the plugin and look for a line that looks similar to the following:
    • <ClientId>5D293560-095C-4433-B79F-6DE592355E64</ClientId>
  • 5D293560-095C-4433-B79F-6DE592355E64 is the GUID # in this example
  • Go to START and enter REGEDIT 
  • In the registry editor go to the following location (assuming Revit 2020 is the issue):
    • Computer\HKEY_CURRENT_USER\SOFTWARE\Autodesk\Revit\Autodesk Revit 2020\CodeSigning
  • In the menu bar click Edit -> New -> DWORD (32-Bit Value)
  • Name this entry with the GUID you found in .addin file in previous steps
  • Double click the newly created key entry
  • Put 1 for Value data and hit ok

 

Let me know if this works for you, I am genuinely curious. I tried this with plugins that I had previously clicked always load on and then after deleted the keys. (There is a chance it may not work because I remember Revit asking me to Always Load updated plugins that used the same GUID that I previously already clicked always load on) Try it though 😉

 

The definition of insanity is doing the same thing over and over again and expecting different results

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report