MATLAB: Always “Run as administrator” attribute on Matlab compiled executables

adminadministrator previlegesadministrator rightscompileddeployedexecutablefile attributerun as administrator

I would like my compiled executable files (under Windows) to have the "Always run as Administrator" attribute as default and preferably for all users and not just admins. Can this be set programatically in Matlab? The manual way is: Right click on .exe file –> Properties –> Compatibility –> etc.
Thanks!

Best Answer

You can invoke regedit to alter the registry for that one program, on the machine it is being run on. See http://www.codeproject.com/Tips/795876/Run-Windows-Applications-as-Administrator-by-Defau
The appropriate settings do not appear to be a property of the contents of the file: they are in the registry, so you cannot just set some bits in the executable and have the effect of those bits in effect to where-ever you copy the executable to.