Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Adding reg file to Win 8.1


  • Please log in to reply
4 replies to this topic

#1
MasterBash

MasterBash
  • Member
  • 5 posts
  • OS:Windows 8 x64
  • Country: Country Flag

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 by MasterBash, 11 September 2013 - 10:09 AM.



How to remove advertisement from MSFN

#2
MrJinje

MrJinje

    Tool™ Developer

  • Developer
  • 1,038 posts
  • OS:none specified
  • Country: Country Flag

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.cmd

Regedit /s %~dp0AUTOLOGIN.REG

or

Regedit /s C:\Windows\System32\Setup\Scripts\AUTOLOGIN.REG

The per user stuff cannot be done from SetupComplete.cmd, so run those settings with FirstLogonCommand's.


Edited by MrJinje, 11 September 2013 - 11:19 AM.


#3
MasterBash

MasterBash
  • Member
  • 5 posts
  • OS:Windows 8 x64
  • Country: Country Flag

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:\something

 

Now, 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?



#4
MrJinje

MrJinje

    Tool™ Developer

  • Developer
  • 1,038 posts
  • OS:none specified
  • Country: Country Flag

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.



#5
DosProbie

DosProbie

    Friend of MSFN

  • MSFN Sponsor
  • 737 posts
  • OS:Windows 8.1 x64
  • Country: Country Flag

Donator

You can use Autounattend.xml to add your reg files as well..DP :thumbup






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN