c++ - How to give admin rights to another account for specific application -


i created driver setup using install shield.when install , communicate administrator, working fine.

but on customer site having limited access on system, driver not communicating expected. know how can provide admin privilege particular driver on account. because give admin rights applications limited account not suitable way.

so please guide me in appropriate way.

the proper way include manifest installer requests elevation. specifically, set requestedexecutionlevel requireadministrator (rather default, asinvoker):

<requestedexecutionlevel level="requireadministrator" uiaccess="false" /> 

this way, whenever user running without elevated privileges launches installer, windows knows installer requires administrative privileges , automatically asks user valid credentials.

if user can provide them, installer launched administrative privileges, leaving other applications unaffected.

if user cannot, installer fail launch (which fine, since fail anyway).

you can find more information on using manifests uac here microsoft.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -