S-M-R-T Setupcomplete Pack v.0.99.9 / Media Wizard v.0.00.0,999

Discussion in 'MDL Projects and Applications' started by s1ave77, Dec 15, 2014.

  1. s1ave77

    s1ave77 MDL Guide Dog/Dev

    Aug 15, 2012
    15,065
    20,290
    340
    #1 s1ave77, Dec 15, 2014
    Last edited by a moderator: Apr 20, 2017
    ©BLIND GUIDE DOG PRODUCTION & Mr.X® PROUDLY PRESENT:

    ************

    S-M-R-T Setupcomplete Pack v.0.99.9


    ************

    featuring

    S-M-R-T Media Wizard v.0.0.1,666

    ************


    HINT:

    This is a framework which can be easily extended with new or personal features. Feel free to ask in the thread. Neither Mr.X nor even guide doggie will bite you.


    CREDITS:


    • Idea/Motivation/Bellypainting: Mr.X,
    • Code: cerberus8855 (OEM Branding), s1ave77 (rest) [forums.mydigitallife.net]
    • Credits go further to: Daz for the AMAZING(ly flexible) Loader, nononsence for WindSLIC tool





    GOOD TO KNOW:

    #001
    While reading through the forums i repeatedly noticed problems with WindSLIC tool on certain (but rare) species of hardware.
    The error implies defect hardware in first sight as the darn Secure Boot Routine Failed on the installed Loader :doh:.
    !!! DON'T PANIC !!!
    You can boot into WinPE/RE/SE from DVD/USB and delete the Loader or Perform a StartUpRepair.

    Another solution is to unplug the HDD(s)/SDD(s) and boot the system, it should show UEFI now (piuh).

    #002
    Although it might be an idea to use firstlogon.cmd in that case, it's more flexible the way it's offerd since you can simply add stuff to setupcomplete.cmd if needed and still have the firstlogon stage part afterwards. Some stuff needs the later firstlogon one due to user folders are not present at setupcomplete stage of the Setup.


    HOW-TO-USE:



    Windows Setup Media Integration:



    Using included MediaWizard v.0.0.0,666:


    • [*=1]Start mediawizard.cmd and follow instructions.
      [*=1]Tool will recognize Setup files in Workfolder, else it will ask to copy from DVD/Mounted ISO one points to
      [*=1]Check the install.wim/esd
      [*=1]Copy pack files (general one and OEM Project [skippable]) to Workfolder
      [*=1]Offer to create ei.cfg
      [*=1]Offer to add generic tokens to all ProfessionalWMC indices (Win 8/8.1) with wimlib-imagex (included)
      [*=1]Create BIOS/UEFI ISO [skippable] with oscdimg.exe (included)


    Using any ISO-TOOL:



    • [*=1]Open your Windows Setup ISO with an ISO-Tool (i.e. UltraISO).
      [*=1]Copy the content of cerberus' pack to the ISO ($OEM$\$$\Setup\Scripts\) and delete OOBE.cmd (it's not needed here since integrated to boottask.cmd).
      [*=1]Copy the content of boottask.zip to the same folder (boottask.cmd, Setupcomplete.cmd and files folder).
      [*=1]Re-build ISO.


    DONE!

    Run on Windows directly:




    • Unpack Content of boottask.zip to any folder (boottask.cmd and files folder).
    • Unpack the cerberus pack and copy content of $OEM$\$$\Setup\Scripts\ to same folder, except OOBE.cmd
    • Run the boottask cmd
    • Take a number ... or two/three.

    DONE!



    HASHES:


    Code:
    Windows Loader.exe 3.76 MB
    MD5: 3976BD5FCBB7CD13F0C12BB69AFC2ADC
    SHA-1: 3B6BDCA414A53DF7C8C5096B953C4DF87A1091C7
    SHA-256: BF5070EF8CF03A11D25460B3E09A479183CC0FA03D0EA32E4499998F509B1A40
    
    KMS Server Service x64.exe 243 kB
    MD5: 2399D35AE123607625ED278475B3605C
    SHA-1: B5D778D9BFE77755093007C2EE3A266F8B4B1DFC
    SHA-256: 1E33EC85E4F877F9F4AF14342ED1A15AFD277D2F7671C860844CEAC5FA5E5AAB
    
    KMS Server Service x86.exe 207 kB
    MD5: 1FE4528C1D6C9A303094C1A48EFCB193
    SHA-1: F0D8AC5473E155CBD0D0DE19134387743A387EA5
    SHA-256: 0DD1F361D0D7B521B214CE3E17086863F06B7073D7763128749D76F765066E93
    
    Installer_EFI_gui.exe 187 kB
    MD5: EA94D4F3CA40D3B113CE76EF407B8FD2
    SHA-1: 08DAF88756D9DF73D4A1610160F5BA361AACA076
    SHA-256: 84EBE5B435E2E8863F1CC278DDE7F0A84C4839D9A5E9718EDDB268408947EAF4
    
    KMS-QADhooker.exe (x64) 3 KB
    MD5: 6B2870D268828B8DB59D013A8111F8CF
    SHA-1: A9D18C56DE0373B444BBD1D49A5B0B1CCF2D1F2A
    SHA-256: A715DF664F7478F464E12D766876A6E1EEE7BB60E4D729C2D28094C5A0F69093
    
    KMS-QADhooker.exe (x86) 3 KB
    MD5: 5C973B759AEC8E053189359832EA1A28
    SHA-1: B0646B97530456561A8FBB0211A302EAC4DE9558
    SHA-256: F6A791EE28E220FE017BB996F5D67389AA2C6347E888EA1A40B538EB84179265
    boottask.cmd 41 kB
    MD5: F6A02F7709DECCB7D5E446006DD775D0
    SHA-1: CDDCFA9520C6660C7C157C7BEAF93B9B6A62E2E3
    SHA-256: E1DC21367A059AE97ACE43A8A72A9D06AB3BF2FC396AB34B3EAA77F9439EBBD2
    
    mediawizard.cmd 12 kB
    MD5: A19BF8B4D02A69C066BE89D0DAFA8AEC
    SHA-1: 03A6863B1960A89247DD524BE6F6C6AC42D9BD98
    SHA-256: E411AC3A42CAD9892DC548500142671DD6D62E745C3532BE30E3804FD86596CE





    CHANGELOG:




    Media Wizard v.0.00.0,999 released
    Made it more flexible to add personal file to the ISO and skip all copy processes if wished

    v.0.99.9
    Script reworked.
    Should cover nearly all possible challenges one throws at.
    All needed files added to the package.
    Added an optional MediaWizzard to create the ISO.


    v.0.01-0.99.9
    some pre-alpha/beta versions to warm-up the brain







    DOWNLOAD:


    REMOVED. NEEDS MORE TESTING. STAY TUNED. WE'LL BE BACK.



    Media Wizzard v.0.00.1,666 (no pass): View attachment mediawizard.7z

    NOTE: ATM only x64 support available for the wizard, next version will offer the x86 creation likewise.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    5,855
    13,398
    180
    lol Love the ©BLIND GUIDE DOG PRODUCTION® & Mr.X PROUDLY PRESENT part :hug2:
     
  3. s1ave77

    s1ave77 MDL Guide Dog/Dev

    Aug 15, 2012
    15,065
    20,290
    340
    As always ... credits to whom they belong ;). It's growing nicely. Should be extended with basic reg teaks, and other stuff.

    Btw ... were you able to check it :g:?

    Media Wizard will be updated later. Generalized it a bit to serve other purposes :cool2:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. s1ave77

    s1ave77 MDL Guide Dog/Dev

    Aug 15, 2012
    15,065
    20,290
    340
    #4 s1ave77, Dec 16, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
    That's my default reg tweaks for Win 8.1 during install:

    Code:
    :: MAKE HIDDEN VISIBLE
        Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Hidden /t REG_DWORD /d 1 /f
        Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t REG_DWORD /d 0 /f
        Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSuperHidden /t REG_DWORD /d 1 /f
        Reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoDriveTypeAutoRun /t REG_DWORD /d 255 /f
        Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /v Sidebar /t REG_SZ /d "C:\Program Files\Windows Sidebar\sidebar.exe /autoRun" /f
    :: SINGLE CLICK
        reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "ShellState" /t REG_BINARY /d "240000001720000000000000000000000000000001000000120000000000000022000000" /f
        reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v "IconUnderline" /t REG_DWORD /d "2" /f
        reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "AutoCheckSelect" /t REG_DWORD /d "0" /f
    :: VERBOSE ON
        reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "VerboseStatus" /t REG_DWORD /d "1" /f
    :: WINDOWS TWEAKS
        reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "DisablePagingExecutive" /t REG_DWORD /d "1" /f
        reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "LargeSystemCache" /t REG_DWORD /d "1" /f
    :: -------------------------------------------------------------------------------------------------------------------------------------------------
        reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "NoNewAppAlert" /t REG_DWORD /d "1" /f
    :: -------------------------------------------------------------------------------------------------------------------------------------------------
        reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore" /v "DisableConfig" /t REG_DWORD /d "1" /f
        reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore" /v "DisableSR" /t REG_DWORD /d "1" /f
    ::  -------------------------------------------------------------------------------------------------------------------------------------------------
    :: WINDOWS 8/8.1    
            reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v "HiberbootEnabled" /t REG_DWORD /d "0" /f
    :: -------------------------------------------------------------------------------------------------------------------------------------------------
            reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v "EnableBackupForWin8Apps" /t REG_DWORD /d "0" /f
    :: -------------------------------------------------------------------------------------------------------------------------------------------------
            reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "FilterAdministratorToken" /t REG_DWORD /d "1" /f
    :: -------------------------------------------------------------------------------------------------------------------------------------------------
            reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StartPage" /v "MakeAllAppsDefault" /t REG_DWORD /d "1" /f
    :: -------------------------------------------------------------------------------------------------------------------------------------------------
            reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\SkyDriveOptIn" /v "Brand" /t REG_DWORD /d "1" /f
    :: -------------------------------------------------------------------------------------------------------------------------------------------------
            reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Accent" /v "MotionAccentId_v1.00" /t REG_DWORD /d "219" /f
    :: -------------------------------------------------------------------------------------------------------------------------------------------------
            reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" /f
    :: -------------------------------------------------------------------------------------------------------------------------------------------------
            reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}" /f
    :: -------------------------------------------------------------------------------------------------------------------------------------------------
            reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{374DE290-123F-4565-9164-39C4925E467B}" /f
    :: -------------------------------------------------------------------------------------------------------------------------------------------------
            reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}" /f
    :: -------------------------------------------------------------------------------------------------------------------------------------------------
            reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}" /f
    :: -------------------------------------------------------------------------------------------------------------------------------------------------
            reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}" /f
    
    
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    5,855
    13,398
    180
    Gonna start testing it tomorrow, I promise. :worthy:
     
  6. s1ave77

    s1ave77 MDL Guide Dog/Dev

    Aug 15, 2012
    15,065
    20,290
    340
    No force implied :D. Only reworked the complete framework and made some tests ... but as know should know, that means nothing :cool2:.

    Check the Media Wizard, thought it might be a good idea to offer some comfort ;).
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. s1ave77

    s1ave77 MDL Guide Dog/Dev

    Aug 15, 2012
    15,065
    20,290
    340
    Huih ... completely forgot the CREDITS part in OP :doh:. Added it know, good we talked about :cool2:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. s1ave77

    s1ave77 MDL Guide Dog/Dev

    Aug 15, 2012
    15,065
    20,290
    340
    Added a 'GOOD TO KNOW' section to hint on some slight challenges with WindSLIC Tool in regards of nasty/darn Secure Boot """Feature""".
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. hypedave

    hypedave MDL Member

    Oct 14, 2014
    129
    30
    10
    Wow this is great. I was just today looking at my setupcomplete and figuring out how I wanted to rebuild it from scratch. I have a few ideas I would like to contribute with this by using a script for automatic application installs using runonce.

    I currently use MDT to take care of my post application installs. I have a few satellite sites where MDT is not an option so I have to revert back to batch files and some PowerShell scripts. Maybe swing those ideas to this one. I could provide the powershell command used for auto installing applications no matter if it's an exe or msi.
     
  10. s1ave77

    s1ave77 MDL Guide Dog/Dev

    Aug 15, 2012
    15,065
    20,290
    340
    Hey, some good ideas are always appreciated. It's nice to cover lot's of scenarios, so it might be cool to integrate into Media Wizzard likewise :g:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. s1ave77

    s1ave77 MDL Guide Dog/Dev

    Aug 15, 2012
    15,065
    20,290
    340
    #11 s1ave77, Dec 16, 2014
    Last edited: Dec 16, 2014
    (OP)
    S-M-R-T Media Wizard v.0.00.0,999

    is released in OP



    Media Wizard v.0.00.0,999 released
    Made it more flexible to add personal files to the ISO and skip all copy processes if wished

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. s1ave77

    s1ave77 MDL Guide Dog/Dev

    Aug 15, 2012
    15,065
    20,290
    340
    As always very fast reaction ... very appreciated ... THANKS :clap:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    5,855
    13,398
    180
    lol wut?
     
  14. s1ave77

    s1ave77 MDL Guide Dog/Dev

    Aug 15, 2012
    15,065
    20,290
    340
    Seems you missed that thread was moved to new location :D.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. gamazet

    gamazet MDL Senior Member

    Sep 26, 2009
    279
    944
    10
    #15 gamazet, Dec 16, 2014
    Last edited: Dec 16, 2014
    Small bag full of gems :). A lot of work there and thank you for this. It will surely upgrade during the time
    One little question, what's the purpose of the "creation of sub-folder"?
    And also is it possible to insert second runonce for apps install

    PS I put it on Virtual machine for fast testing (Edit: Screens)
    On first logon it runs OEM pop-up screen but it is standing still and after some time shows error - at the end it founds virtual box oem brand. This pop-up screen closes and than another shows offering Loader with restart (activation not successful) Screen:
    Untitled.jpg
    Maybe this is because testing is on virtual machine.
     
  16. s1ave77

    s1ave77 MDL Guide Dog/Dev

    Aug 15, 2012
    15,065
    20,290
    340
    #16 s1ave77, Dec 16, 2014
    Last edited: Dec 16, 2014
    (OP)
    Thanks for report, will check it. The subfolder is only to complete possible options :D. OEM Branding is still bitchy it seems ... at least in VMs :g:.

    BTW: no need for another Setupcomplete. It only needs to add program install and other stuff to boottask.cmd.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. gamazet

    gamazet MDL Senior Member

    Sep 26, 2009
    279
    944
    10
    About folder structure - $OEM$ should be in "Sources" or on the root of extracted Windows ISO? Because when using script it places $OEM$ on the root. In my test I was moving it in Sources manually.
     
  18. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    5,855
    13,398
    180
    Should be into sources folder.
     
  19. s1ave77

    s1ave77 MDL Guide Dog/Dev

    Aug 15, 2012
    15,065
    20,290
    340
    Stupid doggie :doh:. Will correct asap :cool2:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  20. gamazet

    gamazet MDL Senior Member

    Sep 26, 2009
    279
    944
    10
    #20 gamazet, Dec 16, 2014
    Last edited: Dec 16, 2014
    I think this Pack Wizard request very good knowledge, it's still not for amateurs like myself :p. As it is now, Pack is extremely useful for experienced users. But to make it fully automatic for everyday's user would demand LOT of work. One more example, when testing in VBox, pop-up dialogue offered to install .Net Framework 3.5. In that moment after little thinking I realized that this screen points to Windows 8 user. I suppose it is difficult job but could Windows 7 and 8 scripts be divided in separate Packs?
    Anyway s1ave77 I wish you all the luck in further improving the Pack/Wizard. I will follow development closely :)