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. Jachra

    Jachra MDL Member

    Apr 5, 2010
    184
    55
    10

    Close, my first idea was to make an empty wim-file. I have already started with the premium wim-image and stripped everything that is not in Starter Edition.
    I am checking what else I must do to finish the job.

    Also this is my last post about this in this thread.
     
  2. searchengine

    searchengine Guest

    yeah, edit script as you wish, and yeah you can set goto to :fin, goto just jumps to any part you instruct. ;)

    I take it, you are entering your serials in install.wim.

    btw- I use OOBE.cmd, for serials rather than setupcomplete.cmd ... because I noticed that by adding serials to OOBE.cmd ...setup not pop-up box asking for serial, but if serials on setupcomplete.cmd ...pop-up still ask for key....only other way no pop-up is if serial on autounattend.xml ...or added to install wim .... but serials on OOBE.cmd without autounattend.xml or edited install.wim, not asked for key.
     
  3. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,466
    1,488
    150
    Thanks :)
    Yea i enter the serials into install.wim instead, seems easier and better and i made the option to enter a custom key (thanks to masterdisaster @ mdl).
     
  4. Phazor

    Phazor MDL Expert

    Sep 1, 2009
    1,144
    518
    60
    #84 Phazor, Apr 21, 2010
    Last edited by a moderator: Apr 20, 2017
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. searchengine

    searchengine Guest

    @Phazor ...

    yeah OOBE.cmd very handy, so when you call SLP.cmd from it, it bypasses the serial pop-up box.

    I use OOBE.cmd for most stuff, and I only use setupcomplete.cmd to install UxThemeStyleCore ... just ahead of desktop.

    only thing that I not absolutely happy with is reg entries ... I notice that any reg files that I add to OOBE.cmd .. or even setupcomplete.cmd would all install ....except any reg entries HKCU....I need to use runonce for them ....seems like HKCU reg hive not loaded till after OOBE.CMD and setupcomplete.cmd run .... so, so far, I been using runonce for those reg entries.

    :)
     
  6. Phazor

    Phazor MDL Expert

    Sep 1, 2009
    1,144
    518
    60
    #86 Phazor, Apr 21, 2010
    Last edited by a moderator: Apr 20, 2017
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. searchengine

    searchengine Guest

    yeah, think that's what it is ...HKCU hive seems to load @ "preparing desktop" screen (think that's when the user account created), runonce catches it, just a bit late in loading for OOBE/setupcomplete.cmd's

    ...the more scripts the better, folks can study and tweak for their prefs ;)
     
  8. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,466
    1,488
    150
    What else kinda fun can be done with oobe.cmd and setupcomplete ?:p
     
  9. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,466
    1,488
    150
    #89 tcntad, Apr 21, 2010
    Last edited: Apr 21, 2010
    Hm seems like oembranding installs fine but not the oemlogo.
    Whynot and how can it be fixed ?, i renamed multibrandoem's to moem to make path shorter and changed everywhere in the script, lets hope it works better but if not id like to know what to do:/

    Hm no, didnt work.. it wont apply the oemlogo just the oeminfo but thats it.
     
  10. searchengine

    searchengine Guest

    :D:D:D ...that's the thing about "editing/renaming" ...did you edit everything ... example, when you changed "multibrandoem's to moem " you say you edited script, but did you edit reg files in the logo folders, cause they would all be looking for original names, not the edited ones :biggrin:
     
  11. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,466
    1,488
    150
    #91 tcntad, Apr 21, 2010
    Last edited by a moderator: Apr 20, 2017
    I changed everythin from multibrand_oem's or whatever it said to moem :p.

    take a look
    Code:
    @echo off
    
    REM :apply custom OEM Logo prior to main process
    regedit /s "%SYSTEMROOT%\system32\oobe\info\moem\DEFAULT\DEFAULT.reg" >nul
    
    REM :setup parameters and begin
    SET RQR=REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "ProductName"
    SET IEL=IF ERRORLEVEL 
    SET INL=IF NOT ERRORLEVEL 1 goto 
    SET SLM=START /WAIT /B cscript //nologo %windir%\system32\slmgr.vbs -
    
    goto bios_check
    
    :bios_check
    REM :check bios info and apply manufacturer logos and serial if detected
    for /f "tokens=1" %%A in ('"%~dp0BiosVersion.exe"') do set bios=%%A
    
    IF %bios%==ACRSYS set man=Acer&goto fin
    IF %bios%==DSGLTD set man=Advent&goto fin
    IF %bios%==ALWARE set man=Alienware&goto fin
    IF %bios%==_ASUS_ set man=Asus&goto fin
    IF %bios%==BenQ set man=BenQ&goto fin
    IF %bios%==HPQ set man=Compaq&goto fin
    IF %bios%==DELL set man=Dell&goto fin
    IF %bios%==FOUNDR set man=Founder&goto fin
    IF %bios%==FSC set man=FSC&goto fin
    IF %bios%==FUJ set man=Fujitsu&goto fin
    IF %bios%==GBT set man=Gigabyte&goto fin
    IF %bios%==HAIER set man=Haier&goto fin
    IF %bios%==HASEE set man=Hasee&goto fin
    IF %bios%==HCLINF set man=HCL&goto fin
    IF %bios%==HPQOEM set man=HP&goto fin
    IF %bios%==HP set man=HPPro&goto fin
    IF %bios%==JOOYON set man=Jooyon&goto fin
    IF %bios%==LENOVO set man=Lenovo&goto fin
    IF %bios%==LGELGP set man=LG&goto fin
    IF %bios%==MEDION set man=Medion&goto fin
    IF %bios%==MSI_NB set man=MSI&goto fin
    IF %bios%==NEC set man=NEC&goto fin
    IF %bios%==NOKIA set man=Nokia&goto fin
    IF %bios%==QUANMX set man=Quanmax&goto fin
    IF %bios%==SECCSD set man=Samsung&goto fin
    IF %bios%==SONY set man=Sony&goto fin
    IF %bios%==THTFPC set man=Tongfang&goto fin
    IF %bios%==TOSASU set man=TOSA&goto fin
    IF %bios%==TOSCPL set man=TOSC&goto fin
    IF %bios%==TOSQCI set man=TOSQ&goto fin
    IF %bios%==TOSINV set man=TOSI&goto fin
    IF %bios%==TRIGEM set man=Trigem&goto fin
    IF %bios%==YUTC set man=Viliv&goto fin
    
    REM :complete process for normal activation
    :fin
    IF EXIST "%SYSTEMROOT%\system32\oem\%man%.XRM-MS" cscript //nologo "%SYSTEMROOT%\system32\slmgr.vbs" -ilc "%SYSTEMROOT%\system32\oem\%man%.XRM-MS" >nul
    IF EXIST "%SYSTEMROOT%\system32\oobe\info\moem\%man%\%man%.reg" regedit /s "%SYSTEMROOT%\system32\oobe\info\moem\%man%\%man%.reg" >nul
    
    goto end
    
    REM :all processing finished, cleanup and delete used files, and EXIT
    :end
    del /F /Q %systemroot%\setup\scripts\BiosVersion.exe >nul
    
    :Cleanup
    del /F /Q %systemroot%\setup\scripts\OOBE.cmd >nul
    
    REM :Manufacturer OEM Serial No's will get called from this list
    REM :NORMAL ACTIVATION LIST
    goto fin
    
    As i wrote, it installs oeminfo perfect but the logo no.


    Edit
    Path for all files
    Code:
    dvd\sources\$oem$\$$
    |
     --setup\scripts\biosversion.exe & oobe.cmd (with code above)
    
    |
    ---system32\oem\all certificates
    ---system32\oobe\info\moem\ oemfolders (asus, hp etc)
    
     
  12. searchengine

    searchengine Guest

    #92 searchengine, Apr 21, 2010
    Last edited by a moderator: Apr 21, 2010
    (OP)
    post DEFAULT.reg file from the moem\DEFAULT\ folder

    on second thoughts ..post link to complete $oem$ folder
     
  13. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,466
    1,488
    150
    #93 tcntad, Apr 21, 2010
    Last edited by a moderator: Apr 20, 2017
    on second thoughts ..post link to complete $oem$ folder link ?

    I can post my path to everything ofcourse but a link.


    You mean open default.reg with notepad and give you whats inside..?
    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation]
    "Manufacturer"=""
    "Model"=-
    "Logo"="\\windows\\system32\\oobe\\info\\MultiBrand_OEM's\\DEFAULT\\DEFAULT_BADGE.bmp"
    "SupportPhone"=""
    "SupportURL"=""
    "SupportHours"=""
    
    So i need to open all .regs inside each oemfolder and change to moem ?.. lot of work:p
     
  14. searchengine

    searchengine Guest

    #94 searchengine, Apr 21, 2010
    Last edited by a moderator: Apr 21, 2010
    (OP)
  15. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,466
    1,488
    150
    Ur doing this to make fun of me eh? lol

    Yea maybe i shouldve left it original and thats what ill do lol :p
     
  16. searchengine

    searchengine Guest

    :biggrin: ...let me assure you, I'm only laughing cause I have done the sort of thing you done a thousand times, one typo error, or missed file can cause a lot of headache trying to find an error.

    scripts are very useful, but they are also very frustrating, and punish you for the slightest error. ;)
     
  17. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,466
    1,488
    150
    yea i noticed several times :p

    Dunno how many times ive been cursing and almost threw the computer out the window lol
     
  18. urie

    urie Moderator
    Staff Member

    May 21, 2007
    9,039
    3,388
    300
  19. searchengine

    searchengine Guest

    yep ExamDiff ...nice little program, I just downloaded to see what it like ... cooool, cheers urie.