Source language: Translate to:

Run Program as Admin

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Run Program as Admin

Postby Horst Helfen » Mon May 11, 2015 11:22 pm

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?
Horst Helfen

Programmers don't die, they just GOSUB without RETURN.
User avatar
Horst Helfen
 
Posts: 100
Joined: Thu May 05, 2005 4:11 am
Location: Hamburg, Germany

Re: Run Program as Admin

Postby Neosoft Support » Tue May 12, 2015 10:16 am

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".
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5605
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Re: Run Program as Admin

Postby Horst Helfen » Thu May 14, 2015 2:25 am

Thanks for your suggestion.Unfortunately that didn't work.
Horst Helfen

Programmers don't die, they just GOSUB without RETURN.
User avatar
Horst Helfen
 
Posts: 100
Joined: Thu May 05, 2005 4:11 am
Location: Hamburg, Germany

Re: Run Program as Admin

Postby Neosoft Support » Thu May 14, 2015 10:41 am

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/
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5605
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 1 guest

cron