MasterBash Posted September 11, 2013 Share Posted September 11, 2013 (edited) Hi,I am trying to add a reg file with some tweaks to my unattended installation. I am not sure how to do this, as I have both HKLM and HKCU. I have things such as disabling the first startup animation screen...So I wonder, would I have to put it under FirstLogonCommand in the oobeSystem pass? Also, I read that I am better with making a batch file, because of UAC or should just pointing straight to the reg file and how?One last thing, do I need to mount the install.wim to put the reg file or can I simply keep it in the root of my USB drive, as that is what I am using for the installation?Thanks! Edited September 11, 2013 by MasterBash Link to comment Share on other sites More sharing options...
MrJinje Posted September 11, 2013 Share Posted September 11, 2013 (edited) I'd use setupcomplete.cmd for the HKLM settings, it runs under 'local system' privileges. Put those .reg's in the same folder with the.cmd and they will be copied over to the C: drive during installation.DVD\Sources\$OEM$\$$\Setup\Scripts\SetupComplete.cmdRegedit /s %~dp0AUTOLOGIN.REGorRegedit /s C:\Windows\System32\Setup\Scripts\AUTOLOGIN.REGThe per user stuff cannot be done from SetupComplete.cmd, so run those settings with FirstLogonCommand's. Edited September 11, 2013 by MrJinje Link to comment Share on other sites More sharing options...
MasterBash Posted September 11, 2013 Author Share Posted September 11, 2013 Thanks a lot! So easy to do. As for the FirstLogonCommand, if I want to load a file I would have to set the command line to something similar to the above, correct? Regedit /s C:\somethingNow, where should the reg file be placed in order to be run from the FirstLogonCommand? Do I need to mount the install.wim and add it somewhere there? Link to comment Share on other sites More sharing options...
MrJinje Posted September 12, 2013 Share Posted September 12, 2013 I would actually call a different batch file for the first logon. Then put all your HKCU .reg files in the same location as the new.cmd file you create (same folder as setupcomplete.cmd should suffice).All these mods can be made from outside the install.wim, using the $OEM$ folders. This avoids having to mount the wim to make small changes. Link to comment Share on other sites More sharing options...
DosProbie Posted September 22, 2013 Share Posted September 22, 2013 You can use Autounattend.xml to add your reg files as well..DP Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now