Page 1 of 1

Run Program as Admin

PostPosted: Mon May 11, 2015 11:22 pm
by Horst Helfen
Hello,

I want to distribute the installation file for the Acrobat Reader of Adobe. When I run it on my computer directly there will open a dialog if I really want to run this program.
When I start it from within my compiled NeoBook application it will not start but in debug mode I see the warning that this operation requires higher permissions. How can I run a program from within NeoBook as Administrator?

Re: Run Program as Admin

PostPosted: Tue May 12, 2015 10:16 am
by Neosoft Support
I think the only way to do that would be to run your NeoBook program as an administrator. If your program has admin rights then I think any programs you launch will also. You can set your NeoBook pub to require admin rights, by selecting Book Properties > General Tab > Version Info. Then select "Require Administrator".

Re: Run Program as Admin

PostPosted: Thu May 14, 2015 2:25 am
by Horst Helfen
Thanks for your suggestion.Unfortunately that didn't work.

Re: Run Program as Admin

PostPosted: Thu May 14, 2015 10:41 am
by Neosoft Support
You could try using a batch file to launch the installer in admin mode. Here's an article that might be helpful:

http://www.techgainer.com/create-batch-file-automatically-run-administrator/