Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Implementing program invocation functionality in Confluence

daihaiyang August 10, 2023

I would like to set up a button on a Confluence page that, when clicked, invokes an executable (.exe) file. What are the possible solutions for this?

2 answers

1 vote
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 10, 2023

I won't repeat what @Radek Dostál already said - this is a security nightmare, an absolutely terrible practice.

I will say you can technically do it, if you have Scriptrunner for Confluence.

You can inject a button that makes a call to an executable.  On your Confluence server.  Where your server admins are (hopefully) never going to let you install any dodgy executables.

If you mean you want a button that causes something to execute on the end user's machine, then you have to assume that they have the .exe installed, and their browser set up to understand what needs doing, and then you can have the button create a link that causes their browser to run the executable.  I use this several times a day - buttons or links that take my browser to a page that then opens the Zoom executable to start a meeting.

1 vote
Radek Dostál
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 10, 2023

None, the question is ludicrous and a rule number 1 of getting infected - don't run executables you don't trust.

You want the user to download and automatically run an executable file. Sounds like a jackpot malware. While you can force a download on someone, you cannot force them to run it, the browser doesn't have that kind of power (not a proper one), and the idea of making someone automatically run an .exe is malicious at very least. Don't forget user access control and other windows protections which will prevent you from evening running an .exe depending on several other factors.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events