[REQ] $OEM$ Folder w/Scripts for Auto-activation / OEM Branding with User Choice

Discussion in 'Scripting' started by Mr.X, Nov 21, 2014.

  1. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,104
    24,378
    340
    Needed to edit ... copy again now to be sure.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,575
    15,646
    270
    Going to test it and feedback later on, ok dude? :worthy:
     
  3. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,104
    24,378
    340
    Yep, that was the plan, as it generally works here. OEM Branding needs to be tested.

    A version check can be added to skip Loader and .Net install on Win 8/8.1 automatically and check for OA 3.O (MSDM table) license ans install key if found. Also reg entries and other changes/installs can be added, according to the found system. it then only needs to maintain one folder not 2 or 3.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,575
    15,646
    270
    In the Loader line this switch is missing "/preactivate" I suppose there's no need for that, right?
     
  5. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,104
    24,378
    340
    Yep, afaik it's needed when processed directly from setupcomplete.cmd. In my tests it activated that way without problems.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,104
    24,378
    340
    BTW: Don't forget to delete oobe.cmd in the scripts folder, as it's now part of boottask.cmd, so to say superseded :nsa:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,575
    15,646
    270
    #27 Mr.X, Nov 21, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Can I change language in this lines?
    Code:
    %file% "BootTask" "¿ Aplicar OEM Branding ?" 4 
    %file% "BootTask" "¿ Activar usando Daz Loader ?" 4 
    %file% "BootTask" "¿ Instalar .Net Framework ?" 4
    %file% "BootTask" "¿ Reiniciar (mandatorio para el Daz Loader) ?" 4
    
     
  8. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,104
    24,378
    340
    #28 s1ave77, Nov 21, 2014
    Last edited by a moderator: Apr 20, 2017
    Yep, see no problems as long as the quotes persist as they are.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,104
    24,378
    340
    #29 s1ave77, Nov 21, 2014
    Last edited by a moderator: Apr 20, 2017
    Realized that we should add one line after @echo off:

    Code:
    ::OEM Branding part by cerberus8855
    Credits ftw :cool2:.


    EDIT: Forgot to mention that it needs all files used by cerberus solution to be present in scripts folder :doh:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,575
    15,646
    270
    #30 Mr.X, Nov 21, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Including oobe.cmd?
     
  11. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,104
    24,378
    340
    Excluding it, as said it's part of boottask already and if present as extra file it would still be processed automatically by Windows Setup.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,104
    24,378
    340
    One idea i got: We could implement an SKU check to avoid installing the Loader on Enterprise, not sure if needed :g:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,575
    15,646
    270
    It would be great!!!

    Still running some tests...
     
  14. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,104
    24,378
    340
    Was thinking about offering the option to install KMS activation stuff in my own solution. Only needs the correct CMD language expressions :cool2:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,575
    15,646
    270
    #35 Mr.X, Nov 22, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Sorry for being so slow but I don't own a high-end hardware :D
    Something's wrong it doesn't work s1ave77.
    Structure:
    Code:
    Certificates <folder>
    OEM's <folder>
    boottask.cmd
    Keys.ini
    MultiMonitorTool.exe
    net4install.exe
    oemscan.ini
    Rw.exe
    Windows Loader.exe
    
    I've been trying all this time with the original project and with my old files (setupcomplete.cmd, old boottask.cmd, etc.) and it does work.
     
  16. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,104
    24,378
    340
    #36 s1ave77, Nov 22, 2014
    Last edited by a moderator: Apr 20, 2017
    What exactly fails? Does it prompt the choice(s)? I tested the script without the OEM part (used a dummy echo command) and it worked for the Loader install.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,575
    15,646
    270
    Everything, the oem branding the daz loader the net4install not a single user option appears. It looks like there's no $oem$ folder within the iso.
     
  18. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,104
    24,378
    340
    #38 s1ave77, Nov 22, 2014
    Last edited by a moderator: Apr 20, 2017
    Yeah, now i see ... one file is missing in the scripts folder ... :

    Setupcomplete.cmd:
    Code:
    @echo off
    setlocal ENABLEDELAYEDEXPANSION
    pushd "%~dp0"
    cd %~dp0
    ::===============================================================================================================
    Reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx" /v Title /t REG_SZ /d BootTask /f
    Reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx" /v Flags /t REG_DWORD /d 2 /f
    Reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\0001"  /v MyScript /t REG_SZ /d "C:\Windows\Setup\Scripts\boottask.cmd"  /f
    
    :Exit
    ENDLOCAL
    exit
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,575
    15,646
    270
    #39 Mr.X, Nov 22, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
    LOL If I had told you before I hadn't wasted a lot of time testing, hahahaha. But I didn't wanted to nag you until be pretty sure...
     
  20. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,104
    24,378
    340
    Would say: next time better ask, to avoid useless testing :D.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...