Win 8.x • Win 7 • Vista - 'Multi-OEM' ISO Project

Discussion in 'MDL Projects and Applications' started by searchengine, Jan 30, 2010.

Thread Status:
Not open for further replies.
  1. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,592
    1,589
    150
  2. searchengine

    searchengine Guest

    #1303 searchengine, Sep 19, 2012
    Last edited by a moderator: Apr 20, 2017
    (OP)
    add GREEN lines to 'OOBE.cmd', as below

    Code:
    :OS
    %RQR1% | findstr /I "WINDOWS" | findstr /I "7" >nul&&%INL% SET WINVER=7&goto :EDITION
    %RQR1% | findstr /I "WINDOWS" | findstr /I "VISTA" >nul&&%INL% SET WINVER=VISTA&goto :EDITION
    %RQR1% | findstr /I "WINDOWS" | findstr /I "8" >nul&&%INL% SET WINVER=8&goto :BIOS
    IF EXIST "%windir%\Display.exe" DEL /F /Q "%windir%\Display.exe" >nul
    GOTO :CLOSE
    
    :EDITION
    %RQR2% | findstr /I "ULTIMATE$" >nul&&%INL% SET EDITION=ULTIMATE&goto :BIOS
    %RQR2% | findstr /I "BUSINESS$" >nul&&%INL% SET EDITION=BUSINESS&goto :BIOS
    %RQR2% | findstr /I "PROFESSIONAL$" >nul&&%INL% SET EDITION=PROFESSIONAL&goto :BIOS
    %RQR2% | findstr /I "HOMEPREMIUM$" >nul&&%INL% SET EDITION=HOMEPREMIUM&goto :BIOS
    %RQR2% | findstr /I "HOMEBASIC$" >nul&&%INL% SET EDITION=HOMEBASIC&goto :BIOS
    %RQR2% | findstr /I "STARTER$" >nul&&%INL% SET EDITION=STARTER&goto :BIOS
    %RQR2% | findstr /I "SERVER" >nul&&%INL% SET EDITION=SERVER&goto :BIOS
    IF EXIST "%windir%\Display.exe" DEL /F /Q "%windir%\Display.exe" >nul
    GOTO :CLOSE
    
    :SERIAL
    IF /I %WINVER%==8 GOTO :RUNONCE
    IF /I %EDITION%==SERVER GOTO :RUNONCE
    IF EXIST %OEMS% for /f "tokens=1,2,3,4 delims=|" %%a in ('type %OEMS% ^| findstr /I "%%EDITION%%" ^| findstr /I "%%MAN2%%"') do (echo %%a | findstr /I "%WINVER%" >nul &&%INL% set PIDKEY=%%d)
    IF /I %MAN2%==DEFAULTOEM IF %PIDKEY%.==. set MAN2=%REALMAN%&goto :ACTIVATION
    IF /I %MAN2%==DEFAULTOEM set MAN2=%REALMAN%
    IF %PIDKEY%.==. set REALMAN=%MAN2%&set MAN2=DEFAULTOEM&goto :SERIAL
    just add 'SetupComplete.cmd' to scripts folder with 'Windows Loader.exe' (as described in loader 'readme' file)
     
  3. HJSC

    HJSC MDL Novice

    Jul 6, 2011
    24
    3
    0
    @searchengine
    And how do I add/use the dazloader only when the first method does not activate?
    o_O
     
  4. searchengine

    searchengine Guest

    #1305 searchengine, Sep 20, 2012
    Last edited by a moderator: Apr 20, 2017
    (OP)
    save below code as 'SetupComplete.cmd' and add to 'scripts' folder, together with latest 'Windows Loader.exe'

    Code:
    @echo off
    
    SET INL=IF NOT ERRORLEVEL 1
    
    :ACTIVATION
    ::check Activation -> goto :CLEANUP (if activated)
    2>NUL WMIC /NAMESPACE:\\root\CIMV2 PATH SoftwareLicensingProduct WHERE LicenseStatus=1 GET LicenseStatus | findstr "1" >nul && %INL% goto :CLEANUP
    
    :LOADER
    ::run 'loader', reboot, clean
    call "%WINDIR%\Setup\Scripts\Windows Loader.exe" /silent /preactivate >nul
    SHUTDOWN /R /T 5
    RD /S /Q "%WINDIR%\Setup\Scripts" >nul
    DEL /F /Q %0% >nul
    
    :CLEANUP
    ::skip 'loader', clean
    RD /S /Q "%WINDIR%\Setup\Scripts" >nul
    DEL /F /Q %0% >nul
     
  5. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,592
    1,589
    150
    #1306 tcntad, Sep 20, 2012
    Last edited by a moderator: Apr 20, 2017
    Right, foolish of me :(
     
  6. The_Guardian

    The_Guardian Contributor

    May 7, 2012
    2,054
    6,803
    90
    @searchengine...
    Correct me if I am wrong....wouldnt the shutdown command kick the run once Display.exe out from running? I remember reading something about it a while back.
     
  7. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,592
    1,589
    150
    Where's the shutdown command?
     
  8. HJSC

    HJSC MDL Novice

    Jul 6, 2011
    24
    3
    0
    #1309 HJSC, Sep 20, 2012
    Last edited by a moderator: Apr 20, 2017
    I love u, man! xP
    But, is possible add this code in your OOBE.CMD?
    :)
     
  9. urie

    urie retired mod

    May 21, 2007
    8,999
    3,381
    300
    @ HJSC, why OOBE and not SetupComplete.cmd ?
     
  10. lemonadez

    lemonadez MDL Novice

    Sep 21, 2012
    7
    1
    0
    I have USB instead of DVD

    Can i just drag the "$oem$" Folder into Source folder inside the USB? <- will that work?

    Or do i have to recompile iso again.
     
  11. searchengine

    searchengine Guest

    If you mean that you have a bootable USB, with your iso contents added, then yes, just add '$oem$' folder into existing 'sources' folder inside the USB.
     
  12. lemonadez

    lemonadez MDL Novice

    Sep 21, 2012
    7
    1
    0
    #1316 lemonadez, Sep 22, 2012
    Last edited: Sep 22, 2012
    Thanks a lot.

    Can I ask

    what exactly the folder win7 - optional -> "Autounattend.xml - optional".

    What will happen if i place the "Autounattend.xml" to my Root Bootable USB and Boot my USB Windows 7 AIO?

    I click on this file "$oem$\$$\Setup\scripts\OOBE.cmd" <- it just disappear from my Bootable USB...Is it suppose to disappear?

    If the OOBE.cmd disappear from my USB. then if i want to install a new fresh win7 on another laptop.
    Do I have to manually add the "OOBE.cmd" inside the script folder, on USB for this $oem$ to work on different laptop?

    I just got 2 Laptop for free Dell Inspiron 1525. I want to install this windows 7 on it.
     
  13. The_Guardian

    The_Guardian Contributor

    May 7, 2012
    2,054
    6,803
    90
    #1317 The_Guardian, Sep 22, 2012
    Last edited: Sep 22, 2012
    If you ran the oobe.cmd file which it sounds like you did.....that was a mistake and u will have to redownload again if ya dont have it on your computer anymore. Just copy the $oem$ folder to the sources folder and that is all u have to do. When installing it will auto install $oem$ folder contents. Searchengine did a great job on this.

    As far as the dell laptop.....probably only has slic 2.0.....would check that first.....if it is only 2.0 you will either use windows loader by Daz or mod the bios which can be risky if you are not familiar with doing that.
     
  14. lemonadez

    lemonadez MDL Novice

    Sep 21, 2012
    7
    1
    0
    I have 2 Laptop Dell Inspiron 1525.

    So once i put back the oobe.cmd back to script folder. I can use the USB to install windows 7 on both laptop right?
     
  15. The_Guardian

    The_Guardian Contributor

    May 7, 2012
    2,054
    6,803
    90
    #1319 The_Guardian, Sep 22, 2012
    Last edited: Sep 22, 2012
    yes....replace oobe.cmd to scripts folder. But with those two lappy's that I have read about only comes with slic 2.0 (Vista) so the oem activation will fail (oem activation is tied to your bios on the motherboard) so you will need to use windows loader by Daz which you can get here at this forum to activate it.

    Windows Loader by Daz is the best solution for activation other then bios mod (which can be risky).
     
  16. lemonadez

    lemonadez MDL Novice

    Sep 21, 2012
    7
    1
    0
    Do $oem$ folder will give me any error if i dont remove it from my USB while installing windows 7 on my dell laptop?

    or u want me to remove the $oem$ folder and then install Windows 7, then use Windows Loader by Daz?

    do i have to put the Autounattend.xml into my USB too? (because it said optional) so i didnt put it.