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
  • 971
  • 2
  • 10
  • 27
  • I noticed there's a close vote for "unclear what you're asking" - i'm not sure where this comes from, but if there's anything unclear about this question please let me know. I want to make my windows 7 install on my usb drive automatically input my license key. – corsiKa Sep 07 '14 at 18:50
  • there is only one vote to close, so I wouldn't worry much about it at this point. It's clear what you are asking, but the title could use improvement – Canadian Luke Sep 07 '14 at 21:19

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,640
  • 1
  • 19
  • 30
  • So it's nothing to do with the media (usb/dvd) but rather editing the ISO itself? – corsiKa Sep 07 '14 at 18:45
  • media has nothing to do with it. Installing/upgrading by cd/dvd is the slowest method of installing. LArge companies would be over burdened if they had to do installations/upgrades by cd/dvd. Having to input a key/serial at each desktop? nightmare. – Logman Sep 07 '14 at 18:53
  • Well I know at work we use a fancy program with preinstalled apps and all that jazz, and then they have software delivery tools on top of that. But this is just for at home and I don't want to spend thousands of dollars on such tools. I'll try this out and see how it goes. Thanks! – corsiKa Sep 07 '14 at 19:18
  • do you expect to install windows 7 a lot? it usually isn't worth the trouble for home user. – Logman Sep 07 '14 at 19:23
  • I don't expect to install it a lot, but I will be doing my install on stream and do not want to enter it on the stream (for obvious reasons). I'm not sure what the camera angles will be so it will probably be hidden anyway, but just the time to enter that being saved will be nice. I'm willing to invest the time now to make that time less. – corsiKa Sep 07 '14 at 19:28
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
  • 952
  • 4
  • 15
  • 35