Topic: Administrative Privileges

Hi MVD lovers, I greet you all

Is there a function such that on click MVD application will prompt to run with Administrative privileges?

Thank you in advance

Re: Administrative Privileges

Hello.



Please provide more details, what exactly do you mean?

Dmitry.

3 (edited by humblelion 2019-11-11 11:26:34)

Re: Administrative Privileges

DriveSoft wrote:

Hello.



Please provide more details, what exactly do you mean?

Thank you very much for your response

Some codes in my project will need administrative rights to work effectively. Eg.

if ping('google.com')

. I don't want the user to right click the exe file and choose "Run as Administrator" but instead on double click User Account Control will pop-up for the user to select YES before the application can run. In simple words, I want my application to run as administrator

Re: Administrative Privileges

humblelion wrote:
DriveSoft wrote:

Hello.



Please provide more details, what exactly do you mean?

Thank you very much for your response

Some codes in my project will need administrative rights to work effectively. Eg.

if ping('google.com')

. I don't want the user to right click the exe file and choose "Run as Administrator" but instead on double click User Account Control will pop-up for the user to select YES before the application can run. In simple words, I want my application to run as administrator

Hi Humblelion,

I believe that if you right-click on your application and go to the security tab you can set "run as admin" and hit apply.  This will make sure
that your application runs with administrative privileges.  Hope that solves your issue.

smile

Re: Administrative Privileges

"Compatibility" tab > "Run this program as an administrator"

Dmitry.

Re: Administrative Privileges

DriveSoft wrote:

"Compatibility" tab > "Run this program as an administrator"

Thanks for the correction Dmitry, that's what I was trying to communicate.

Re: Administrative Privileges

DriveSoft wrote:

"Compatibility" tab > "Run this program as an administrator"

Thanks Dmitry but I don't want to tell everyone i distribute the application to, to always run as administrator but at least something to prompt them to run as an Administrator first before use. A software like RUFUS can never run without running as an adminstrator

Re: Administrative Privileges

Hi Humblelion,

I believe that if you right-click on your application and go to the security tab you can set "run as admin" and hit apply.  This will make sure
that your application runs with administrative privileges.  Hope that solves your issue.

Thank you gonpublic2K, but not solved

Re: Administrative Privileges

May be you should use Installer for that, where you can tune privilege, example
http://myvisualdatabase.com/forum/viewtopic.php?id=3174

Dmitry.

10 (edited by humblelion 2019-11-11 15:36:00)

Re: Administrative Privileges

DriveSoft wrote:

May be you should use Installer for that, where you can tune privilege, example
http://myvisualdatabase.com/forum/viewtopic.php?id=3174

Thank you very much. I will give it a try.

I was equally reading through some articles online and it made suggestions to the use of  .manifest and .rc files that will help run the application as administrator. This was done using Delphi but I'm wondering if this could be implemented in MvD?

https://stackoverflow.com/questions/309 … pplication

Thank you once again Dmitry.

Re: Administrative Privileges

humblelion wrote:
DriveSoft wrote:

May be you should use Installer for that, where you can tune privilege, example
http://myvisualdatabase.com/forum/viewtopic.php?id=3174

Thank you very much. I will give it a try.

I was equally reading through some articles online and it made suggestions to the use of  .manifest and .rc files that will help run the application as administrator. This was done using Delphi but I'm wondering if this could be implemented in MvD?

https://stackoverflow.com/questions/309 … pplication

Thank you once again Dmitry.

Hi Humbielion,

Adding to what you said here's another resource that can help you with this task:

https://www.raymond.cc/blog/run-program … trl-shift/

Post's attachments

Attachment icon example.png 158.48 kb, 2 downloads since 2019-11-11 

Re: Administrative Privileges

humblelion wrote:
DriveSoft wrote:

May be you should use Installer for that, where you can tune privilege, example
http://myvisualdatabase.com/forum/viewtopic.php?id=3174

Thank you very much. I will give it a try.

I was equally reading through some articles online and it made suggestions to the use of  .manifest and .rc files that will help run the application as administrator. This was done using Delphi but I'm wondering if this could be implemented in MvD?

https://stackoverflow.com/questions/309 … pplication

Thank you once again Dmitry.

It isn't suitable way for MVD.

Dmitry.

Re: Administrative Privileges

Hi Humbielion,

Adding to what you said here's another resource that can help you with this task:

https://www.raymond.cc/blog/run-program … trl-shift/

Wow so powerful, this performed the magic. Thank you very much