Link to home
Start Free TrialLog in
Avatar of Stef Merlijn
Stef MerlijnFlag for Netherlands

asked on

Run application only with full administrator-rights in Windows Vista

Hi,

How can I force Windows Vista to execute (run) my application as a user with full Administrator-rights?
Currently Vista will user a Virtual Store to allow user that don't have full Administrator-rights to perform Ā read/write actions on files in protected areas.
F.e.:
When a database is stored in folder "C:\Program files\MyAppFolder\", Vista will 'copy' the database to the virtual store and data-updates will be done there.
When the user does have full Administrator-rights, Vista will use the intended database in "C:\Program files\MyAppFolder\".
I've read something about a XML-manifest that would grant full Administrator-rights to a user for a certain application.

Can anybody please give me a detailed description on:
1. How to check if full administrator-rights is set for my application from within my Delphi-application
2. How to create the manifest for Vista
3. How to executed the manifest within my Delphi-application

Regards,
Stef
ASKER CERTIFIED SOLUTION
Avatar of Johnjces
Johnjces
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Stef Merlijn

ASKER

Can you also tell me how Vista will act when a limited user starts this application?
Will Vista ask for a Administrator password or something of the kind?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Another question.
Will it also ask for administrator access when I run this application in Windows XP (or will it skip the embedded manifest as it is for Vista only)?
Do I need to add something to only run the manifest when application is running on Vista?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
And another.
If the application is started without the full administrator-rights and the user allows the application to run as administrator (when excepting the prompt triggered by the mainfest). Will the user need to grant access every time he/she starts the application or will the "run as administrator"-flag be set and saved the first time the application is started?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
And last... (maybe)
Which files should be distributed to the client-pc with my application?
administrator.manifest
administrator.rc
administrator.res
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you very much for your help.
Maybe you also have an answer to my other question:
https://www.experts-exchange.com/questions/22871310/How-to-bypass-Vista-asking-for-permission-to-run-my-application.html

Regards,
Stef