I’m an admin charged with installing software to a small LAN of PCs. The software had to be installed in separate stages (three different executable setup packages).
The sales muppets supplied the stages in the wrong order, and since they were installed in the wrong order, registry keys weren’t correctly generated.
So I need to make an HKCU entry in the registry for each existing user on each PC.
The registry key I need to install is
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\AcmeSoft\AcmeApp]
"InstallLocation"="C:\\Program Files (x86)\\AcmeApp"
@=""
I’d like to write a script (language is unimportant, I’m familiar with C++ and python though) that I can run once per PC to deploy this new registry key to the HKCU\Software\AcmeSoft\AcmeApp hive.
Regedit shows a hive called HKEY_USERS, which I suspect may contain entries for all users on the PC.
Can I somehow iterate HKEY_USERS and check for the aforementioned key and install it if its missing?
Thanks.
If you’re not against using a simple batch script, you can use this:
You can even add a computername before HKU (like so: \Computer\HKU) if you like so you can run it remotely. You have to run it as admin (elevated)