Archive: Revert to %USERNAME% after ranas (admin)


Revert to %USERNAME% after ranas (admin)
To install my app, users can use "Runas" and then an admin ID. I would like to use then MUI_FINISHPAGE_RUN command to automatically run the app after install, but under the local user profile not the "runas" admin id (so as not to create their documents etc under the wrong user name).

Or am I missing something....


i can't think of any solution for this one yet, as nsis just has the rights of the admin account and runs any programm/instruction with those rights.

maybe another runas command will do the trick, so the installer needs to run the application with the runas of the current user.