Editing file requiring admin privileges - Forum

Forum Navigation
You need to log in to create posts and topics.

Editing file requiring admin privileges

Does anyone know of a way to programmatically edit a file in or copy a file to a folder that requires admin privileges? If I right click on the pub .exe and select 'run as administrator' it works fine. I think I need some code or a plugin to do it.

 

None

The application will be compiled without a Vista manifest. Windows Vista (and higher) will protect the computer by restricting access to sensitive areas of the file system and registry, while allowing the application to believe that it has access to these areas - this is called virtualization. (This option appears to work well for auto-run CDs and installers.)

As Invoker

The application runs with the same access privileges as the parent process. Microsoft recommends this option for standard applications.

Highest Available

The application runs with the highest access privileges the current user can obtain.

Require Administrator

The application can only be used by users with administrator level access privileges.

https://winhelp.visualneo.com/General.html

 

Vadim has reacted to this post.
Vadim

Thanks Mishem! I completely forgot about those settings. Setting it to Highest Available did the trick.

I recently found that with these settings, the system was blocking the plugin from working. You need to check it in compiled mode.