5
6
I have an application that updates software on the local machine. I need the software to be updated prior to user log on, and have read that running the application via the RunServicesOnce
registry key is probably the most appropriate to use for this purpose.
But I can't find this key using regedit
and it doesn't appear in the same location as the HKLM RunOnce key in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce
.
- Where is this key located? Same in Windows XP \ Vista \ 7 \ 8 \ 8.1 \ 10 ?
- How do I use it, are there any optional parameters?
- How do I determine the user that the application is run as? Is it run by the user that created the key? If a
LocalSystem
service creates the key, will it be run asLocalSystem
?
Same location in every version of Windows – Ramhound – 2016-01-29T02:57:51.727
@Ramhound thanks for your help - where in that document does it specify the location of the RunServicesOnce key? – khargoosh – 2016-01-29T02:59:39.633
Wrong...Support article....should have linked to this
– Ramhound – 2016-01-29T03:00:22.837More talk – Ramhound – 2016-01-29T03:03:09.160
@Ramhound thank you... I checked RegEdit and this key doesn't appear to be present. I created it manually and added a string value to run an app, which works under the RunOnce key however under the RunServiceOnce key it doesn't execute, and the key value is not removed. Any thoughts? – khargoosh – 2016-01-29T03:18:12.023
1@Ramhound your second link clearly states that it applies to "Windows 95, Windows 98, and Windows Millennium Edition" – Yisroel Tech – 2016-01-29T04:18:58.173