I am writing a program that downloads exe file, which is created with innosetup, from remote server and runs this exe file to update my application automatically. Due to not having any signed certificate, my OS(Windows 11) is warning me by User Account Control window.
In that window, there are two options which are Yes and No. How can I get the clicked option from this prompt?
I tried to get the return value using
Runtime.getRuntime().exec().waitFor()
However both Yes and No options returns same value.