0

I'm making my USB bootable Windows 7 install, and I'd like to put my license key on the install media. I've looked online but can't seem to find anything on this, and on my own I don't even know where to begin.

How can I make my install automatically input my license key during the install?

corsiKa
  • 981

2 Answers2

2

DISM Image Management Command-Line Options

DISM Windows Edition-Servicing Command-Line Options

Set the Windows key with DISM, you will be creating a new install.wim which exists in your current windows install cd/dvd/usb iso.

  1. Extract the install.wim from your windows iso
  2. Create a folder and mount the install.wim
  3. Open command prompt (as admin) and and mount the install.wim

NOTE: "/INDEX:1" might be different on your WIM depending on how many Window editions that are available on your cd/dvd. Keys will be different for each Windows edition.

DISM /MOUNT-WIM /WIMFILE:c:\INSTALL.WIM /INDEX:1 /MOUNTDIR:c:\temp

  • Set the Windows product key

DISM /IMAGE:c:\temp /Set-ProductKey:Bxxx-Pxxx-Pxxx-Qxxxx-FxxxR

  • Commit the changes to the install.wim

DISM /UNMOUNT-WIM /MOUNTDIR:c:\temp /COMMIT

  • Replace the install.wim in the .iso with the one you just created.
Logman
  • 3,660
0

If I understand correctly you want to create an unattended install? Ie, Windows installation which needs little to no input from anyone?

If I am right, a nice app I have used before (easy to use with a GUI, not all command line), is nlite. You can enter serial, name, location etc info into nlite, it then creates an ISO for a CD/DVD/USB which should install Windows completely automatically.

Jonny Wright
  • 991
  • 5
  • 16
  • 36