Is RunOnceServices still supported in Win10?

0

I found few references that Windows 10 should support RunOnceServices registry key on path

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServicesOnce

this should work in similar way as Run or RunOnce. What I'm trying to achieve is to schedule upgrade of .NET on next startup before user perform logon so my registry is REG_SZ with value

"C:\MyFolder\ndp48-x86-x64-allos-enu.exe /q /forcerestart"

It does not make change whether I wrap my command with " or not.

There are some reference on internet and in book(s) that this should be supported

Windows Inside eBook

Questions from others

MSDN

I'm looking for either something I'm doing in wrong way or some tip about where to look for more information. Now it seems that command is not executed at all, no errors in EventLog or anywhere else.

Jaroslav Kadlec

Posted 2019-09-05T10:44:26.130

Reputation: 101

Answers

0

RunServicesOnce was once available under:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce  
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce

To my knowledge this does not exist any more and dates to Windows NT, although it is still being listed today along with other Windows NT and even Windows 3.1 registry entries.

If you want to test if some startup registry entry still exists, use regedit to verify that point.

I suggest to use RunOnce instead.

harrymc

Posted 2019-09-05T10:44:26.130

Reputation: 306 093