Archive: RegTool in RunOnce


RegTool in RunOnce
Is this a bug?
If Admin install for restricted user with RunAs command and reboot is needed (files were occupied), after the reboot - restricted user is logging in (and not the installing admin).
it looks like RegTool command under RunOnce registry can't be executed (which is a problem), and also this Reg value is not deleted.


The administrator must login again to complete the setup. The RegTool set in the RunOnce key must be run under an administrator account.


@kichik: Is there another way to get RegTool run at start up (best would be _before_logon - running as SYSTEM)?

(besides setting up a system service ...)


Not that I know of.


so, isn't this a problem?
how can I force the user to logon as the admin who install?
do you have any solution for this problem?


It is a problem, but the solution in place is the best solution. You can't force a user to logon with an administrative account, but you can ask him to do so in the finish page.


OK, thanks...