SetupComplete.Cmd Replacement

Discussion in 'Windows 8' started by AnarethoS, Nov 21, 2012.

  1. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,109
    1,176
    60
    Hi all!

    In Windows 7, I was used to use SetupComplete.cmd to install applications automatically at the end of the OOBE process/before the first logon.

    In Windows 8, it seems this method does not work anymore when you specify a OEM key. When a retail key or no key at all is specified, SetupComplete is used.

    Since this method is unrelliable, I don't know what to do.

    Which method would be the best to install software during the OOBE process?

    Thanks for your help!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Mr Been

    Mr Been MDL Member

    Feb 24, 2008
    217
    58
    10
    #2 Mr Been, Nov 21, 2012
    Last edited: Nov 21, 2012
    I'm using the Windows 8 KMS GVLK Client Setup Key for Win8 Enterprise x86
    and all my Progs in Setupcomplete.cmd are installed
     
  3. calpol

    calpol MDL Junior Member

    Dec 5, 2009
    98
    5
    0
    @Mr Been

    Did you place Setupcomplete.cmd in Sources\$OEM$\$$\Setup\Scripts, right ?
    if I backup token.dat from store folder, how can I write a command line to overwrite the new one as I have a fresh installation and where to place token.dat ?

    Thanks in advance

     
  4. HALIKUS

    HALIKUS MDL Addicted

    Jul 29, 2009
    527
    369
    30
    #4 HALIKUS, Nov 21, 2012
    Last edited by a moderator: Apr 20, 2017
  5. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,109
    1,176
    60
    @HALIKUS

    I am already using an AutoUnattend.Xml file to create the partition and put the computer in AUDIT mode.

    Then, when ready, I use a Sysprep.Xml to generalize the computer while keeping the drivers. Should I add the FirstLogonCommands in the AutoUnattend.xml file or the Sysprep.xml file in that case?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,109
    1,176
    60
    Like I said, when using an OEM key, setupcomplete is disabled. GLVK keys, upgrade key or retail key are not affected.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Mr Been

    Mr Been MDL Member

    Feb 24, 2008
    217
    58
    10
    #7 Mr Been, Nov 21, 2012
    Last edited: Nov 21, 2012
    I'll send you my Autounattend.xml and Setupcomplete.cmd which are working with my new installation of Win 8 Enterprise
    KMS GLVK Vol. Lic. x86,
    and everything is installed very well

    I also used these 2 files to install my Win7 OEM with Slic modified Bios

    for Win8 OEM I don't know what to do?? Now I have my KMS server

    check your P.M.

    for other questions, please ask me
     
  8. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,109
    1,176
    60
    Thanks, I already have a set of working script for Windows 7 and Windows 8 (when no key is entered or using GLVK) keys. But they don't works with OEM key under Windows 8.

    I will have to use a FirstLogonCommand to start them. *sight*
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. sezz

    sezz MDL Novice

    Apr 20, 2009
    24
    1
    0
    #9 sezz, Nov 21, 2012
    Last edited by a moderator: Apr 20, 2017
    you can also just put your tokens.dat in this folder:

    Code:
    $OEM$\$$\System32\spp\store
    worked for me some months ago (i also added data.dat + cache folder, no idea if they're needed)
     
  10. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,109
    1,176
    60
    #10 AnarethoS, Nov 22, 2012
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...