Cytrix and code signing

Cytrix and code signing

Anonymous
Not applicable
690 Views
11 Replies
Message 1 of 12

Cytrix and code signing

Anonymous
Not applicable

Hi there,

 

As we all know since Revit 2017 we have to code sign our add-ins. At first startup you get a message concerning the signing and one can click "Always Load" to never see this message again. HOWEVER, on Cytrix this message keeps coming, so the "Always Load" doesn't seem to work. 

 

So the question is, is there an option to Automatically choose "Always Load" or to suppress this warning ?

 

 

0 Likes
Accepted solutions (2)
691 Views
11 Replies
Replies (11)
Message 2 of 12

jeremytammik
Autodesk
Autodesk
Accepted solution

Dear Remy,

 

Thank you for your query.

 

You can adapt and use the JtClicker to automatically click any button you like in any dialogue you like using the pure Windows API:

 

http://thebuildingcoder.typepad.com/blog/2009/10/dismiss-dialogue-using-windows-api.html

 

https://github.com/jeremytammik/JtClicker

 

I hope this helps.

 

Please let us know how it goes, and submit a pull request to the repo if you see anything to fix or improve.

 

Thank you!

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 12

matthew_taylor
Advisor
Advisor
Accepted solution

Hi @Anonymous,

Congratulations on your 500th post!

 

I think it depends how much control you have over the Citrix system. If you have control of it, you should be able to manually (or programmatically) add a code signing certificate to the store. If you don't have control, then Jeremy's suggestion would be the way to go.

 

Cheers,

 

-Matt


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?
0 Likes
Message 4 of 12

Anonymous
Not applicable

Thank you jeremy and matt, both methods seem doable.

 

I will try the cytrix option first.

 

 

0 Likes
Message 5 of 12

Revitalizer
Advisor
Advisor

Hi Jeremy,

 

in this case, the clicker approach will not function.

The addin code will be executed after the addin has been loaded, but before loading it, the dialog needs to be clicked first 🙂

 

 

Cheers,

Rudi




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes
Message 6 of 12

matthew_taylor
Advisor
Advisor

Hi @Revitalizer

It may work at operating system level though. A small worker program doing it as a background operation?

 

Cheers,

 

-Matt


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?
0 Likes
Message 7 of 12

Revitalizer
Advisor
Advisor

Hi Matt,

 

first, thank you for all the help you give the community!

 

To the topic of this thread:

Yes, one could install such a program during the add-in's installation process.

 

But I see legal problems doing so.

The clicker prevents the user from making his own decision by keeping warnings back from him.

I the worst case, the clicker allows a malicious add-in to execute its code.

The user won't even notice the add-in's name.

Who can be made responsible for the consequences ?

 

It's like auto-clicking an EULA or any other sort of treaty.

 

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





Message 8 of 12

jeremytammik
Autodesk
Autodesk

Hi Rudi,

 

Add-in?

 

What add-in?

 

JtClicker is a Windows console app.

 

It has nothing to do with Revit.

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 9 of 12

jeremytammik
Autodesk
Autodesk

Assuming that the clicker app can read the full text of the message, it can be set up only to click on 'Load' for one very specific add-in, and do nothing in all other cases.



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 10 of 12

matthew_taylor
Advisor
Advisor

Hi @Revitalizer,

Thank *you*. And thanks for the flow of kudo. 🙂

It's fun to be here. Stimulus!

 

I agree with you. It comes down to my original answer; how much control does Remy have over the Citrix system? If he has full control, and it's for his company/service, then he can do what he chooses. Otherwise, there are a lot of questions to answer.

Jeremy's point (about particular apps only) would be the way I would approach the setup also.

 

Cheers,

 

-Matt


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?
0 Likes
Message 11 of 12

Anonymous
Not applicable

Well,we don't have the cytrix enviroment ourselfs, so it's a custommer who reported this problem. So I guess his system manager has the rights to make changes to the environment in order to hide this message.

0 Likes
Message 12 of 12

Revitalizer
Advisor
Advisor

Hi Matt, hi Jeremy,

 

I totally agree with you.

I think Jeremy's suggestion could minimize the problem, by just auto-allowing your own add-in.

Recognized by its name.

 

 

Cheers,

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes