Insert oemslpkey

Discussion in 'Windows 7' started by tcntad, Apr 17, 2010.

  1. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,488
    1,506
    150
    Ofcourse im mounting it first:)
    I just didnt copy the mountcommand but believe me, it mounts and dismounts perfectly.

    Yes basically i have a script which mounts an edition and then you can decide what you want to integrate, updates, lp's to both install.wim and boot.wom or just install.wim, integrating updates wallpapers, drivers and "now" slp key.

    Everything is working good but masterdisaster code but if i manually copy the key (using my code) it works fine ofcourse..

    MD's code, picks right key and shows what key i picked but doesnt inject it:/.
     
  2. Phazor

    Phazor MDL Expert

    Sep 1, 2009
    1,144
    518
    60
    Ah...OK...now it makes sense. :)


    Will take a closer look later in case you still need help...have to take care of some other things now but i should be back shortly...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,488
    1,506
    150
    That'd be great, thanks man :)
     
  4. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,488
    1,506
    150
    Hm no success yet im afraid:/

    Good thing copying the damn key works but not what i want..
     
  5. MasterDisaster

    MasterDisaster MDL Expert

    Aug 29, 2009
    1,256
    674
    60
    #25 MasterDisaster, Apr 18, 2010
    Last edited by a moderator: Apr 20, 2017
    I found the error in the code, it is actually this line. You need to loose the quotes after Set-ProductKey
    Code:
    "%WAIK%\Tools\%cpu%\Servicing\dism.exe" /Image:"%work%\mount" /Set-ProductKey:"%productkey%"
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,488
    1,506
    150
    #26 tcntad, Apr 18, 2010
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Ofcourse.. what an idiot i am.
    If that works i love you man lol.

    Seems to work fine, thanks alot, i owe you one:D

    Can i make it hide the chosen productkey ? so it only shows the selection i made ?
     
  7. MasterDisaster

    MasterDisaster MDL Expert

    Aug 29, 2009
    1,256
    674
    60
    #27 MasterDisaster, Apr 18, 2010
    Last edited by a moderator: Apr 20, 2017
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,488
    1,506
    150
    Lol, never used opatool tho so i cant tell for sure :p

    Just made a script thats able to integrate few things to windows 7 and added this feature today(now) with help from MasterDisaster.
     
  9. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,488
    1,506
    150
    #29 tcntad, Apr 18, 2010
    Last edited: Apr 18, 2010
    (OP)
    Another small question :)

    Maybe im just being stupid now but what to do if i want to integrate a custom key ?
    Not one of the listed ones.

    And how abut oem info ?
    Havent got any further on that point:/
    I know i can integrate multiple oem brands info (logos etc) to the \system32\oem folder but can i after install have a file check what oembrand bios has and delete all the others?

    Example: i have hp, asus, lenovo oem in \system32\oem\multioem
    and after install on HP machine i want it to move hp info to \oem and delete the rest

    Id like to integrate it all instead of having it on the dvd:p
     
  10. wyte

    wyte MDL Novice

    Jun 28, 2010
    3
    0
    0
    #31 wyte, Jun 28, 2010
    Last edited by a moderator: Apr 20, 2017
  11. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,488
    1,506
    150
    #32 tcntad, Jun 28, 2010
    Last edited by a moderator: Apr 20, 2017
    (OP)