Skip to content
⌘ NSIS Forum Archive

RegTool in RunOnce

7 posts

tlalit#

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.
kichik#
The administrator must login again to complete the setup. The RegTool set in the RunOnce key must be run under an administrator account.
stb#
@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 ...)
tlalit#
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?
kichik#
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.