DrEmpiricism/Optimize-Offline

Question About Registry Templates

KedarWolf opened this issue · 3 comments

Is your feature request related to a problem? Please describe.
My registry template to stop drivers from installing does not work.

Question: Are registry templates applied before the first boot of a Windows install or do we need to reboot once to make sure they are applied?

My '1.reg' file put in the D:\Optimize-Offline-4.0.1.7\Optimize-Offline-4.0.1.7\Content\Additional\RegistryTemplates is not being applied, even though it says it's been added in the Optimise Offline log file.

Here is the '1.reg' file.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata]
"PreventDeviceMetadataFromNetwork"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DriverSearching]
"DriverUpdateWizardWuSearchEnabled"=dword:00000000
"SearchOrderConfig"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]
"ExcludeWUDriversInQualityUpdate"=dword:00000001

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CloudContent]
"DisableWindowsConsumerFeatures"=dword:00000001


However, if I had the same entries into the Additional Tweaks.reg file, the entries do get applied.

Now, to see if I need to reboot right after I log into Windows or if my registry entries applied during the Windows install are already active.

Maybe this should have been a Bug Report but originally it was merely a question if registry entries were already active on first boot of an install.

It only became a bug when I found out the 1.reg file I put in the RegistryTemplates folder was not actually being applied.

And I found out, no, you don't need to reboot on the first boot for registry changes to be applied.

Just need to add your registry addictions to the Additional Tweaks.reg file, doesn't seem to be applying .reg files added to the RegistryTemplates folder.