Yeah I am doing more or less the same thing and it works like a charm.
I absolutely hate how by default WU installs those screwed up drivers for everything before you remember to check what's going on in the background. Usually the bloody thing gladly overwrites drivers you install during unattended setup!
I am a bit lost with something else atm though. I am playing around with some cosmetic nonsenses. Right now I am trying to set an icon for the standard windows.delete shell command, but there's permissions problem of some sort. I've always sucked at understanding this part of Windows, unfortunately.
What I want to do is mount an image, load registry, and change some values. 99% of things work well, but for (I assume) security reasons some keys are kind of protected or locked.
This is what I'm trying to import into the mounted registry:
[HKEY_LOCAL_MACHINE\Wim_Software\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Windows.delete]
"Icon"="imageres.dll,-89"
I just can't change this value at all. Digging into it a little I realized the local administrator account I am running under only has read permissions! Wth! I eventually managed to take ownership and change it, but it's pain in the a**, and naturally this is supposed to be part of what a batch file does. How should I go around this specific thing?
This post has been edited by TheWalrus: 28 September 2012 - 11:28 AM