Archive: How to restore the excution level?


How to restore the excution level?
Hi gurus,

I used 'RequestExecutionLevel admin' to retrive the administrator previlege to do some file coping to the sys folders and some modifications to the registry. It did all right for the whole installing procedure. But I need it to yield another process, with 'MUI_FINISHPAGE_RUN', by the end of the installation. And it came out that the process has an administrator previlege as well.

What can I do to set the excution level back to normal at the end of the installing, or change the previlege of the new process by any means?

Thanks!!


This is what the UAC plugin has been designed for. Let NSIS call a function instead of your app from the Finish page, then in that function call your app at user level.

http://nsis.sourceforge.net/UAC_plug-in


Sounds it's gonna work! Thanks!
I'll try it out.