Windows 7, Vista, Server 2008, UAC is activated
Program must be stated with admin rights to make some installation actions. After that I want my program to continue work with non-admin rights.
How can I restart it with not administrative rights?
P.S.
My program reinstall itself. I don’t want distribute any additional programs for it. So my steps are:
- Download new version in temp dir
- Restart itself under admin rights
- Rename old exe-file and copy new exe-file from temp dir
- Restart itself under non-admin rights
Thanx to Kate Gregory for help.
There is a working code on Delphi: