windows services - How to get runonce to run, without having to have an administrator login -


is there way force update of software using runonce, without having administrator log in, if there service running administrator running in background?

edit: main thing want able run when runonce does, i.e. before explorer starts. need able install things, without booting administrator account.

i'm not sure understand question. let me try:

the service mention, yours? if so, can add code imitate windows: service, examine runonce value , launch executable specifies. can use createprocessasuser() api launch in context of arbitrary user. after launching process, delete runonce entry.

or have misunderstood question?

edit: service not depend on user being logged in. can start update process service service starts, happen before real user logs in computer.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -