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. wish-master

    wish-master MDL Novice

    Dec 15, 2011
    3
    0
    0
    The file error hash
    File is corrupt
    :worthy:
     
  2. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,589
    1,584
    150
    No it isnt, my CRC32/MD5/SHA1 checks matches the file..

    Instead of just coming here when it mismatches, download and try again, if it does download on another computer.
     
  3. HALIKUS

    HALIKUS MDL Addicted

    Jul 29, 2009
    526
    372
    30
    Great package that i have been using for what seems like a few years now. I have noticed though that lately there are more and more GPT\UEFI combos (my motherboard included) and that the Daz loader will freeze the installation when run as it is incompatable with GPT\UEFI (Win7), Enterprise (Win7), and Windows 8. Is there any code we can add to SetupComplete.cmd that will check the OS and drive partitioning so that it only runs on Win7\Vista\etc MBR\BIOS? I know in autoit i can use a command such as

    If @OSVersion <> "WIN_7" Then
    MsgBox(48, "Windows 7", "This will only work on Windows 7", 1)
    Exit
    EndIf

    ...to close if it is not Win7. Is there a cmd equivalent, and a command to check the partitioning? Then it will be a truly universal $OEM$ folder and i won't have to delete the loader before installing the incompatible OS's from my install.wim.
     
  4. searchengine

    searchengine Guest

    #1144 searchengine, May 24, 2012
    Last edited by a moderator: May 24, 2012
    (OP)
  5. HALIKUS

    HALIKUS MDL Addicted

    Jul 29, 2009
    526
    372
    30
    #1145 HALIKUS, May 24, 2012
    Last edited: May 24, 2012
    @searchengine, your assumptions were right about silent mode, and the only way to close it is a reset; the loader locks the system during setupcomplete.cmd. That script may be exactly what im looking for (or at least a piece of the puzzle), i just don't have the time to do any VM tests for a day or so. My other workaround i was considering was to have setupcomplete run an autoit exe (that i am more familiar with) to run the loader and decide whether or not to run it.

    I currently use a Winbuilder PE (x86 mainly, x64 for EFI) to install with, and have a custom gui. The boot.wim has an X: ramdrive, so in my gui, if i select Win7 (or Win 8) it extracts the proper sources dir (depending on the PE arch) to x:\sources, and i already have an $OEM$ folder in x:\sources\$OEM$, along with $OEM$w7x86, $OEM$w7x64, $OEM$w8x86, and $OEM$w8x64. It will copy the x86 $OEM$ folder to $OEM$, and then run x:\sources\start.exe with an autounattend and my gui adds a proper key to the xml. I have modded start.exe and autorun.dll so that i can rename start.exe to (ie : ) w7x86.exe where i have a corresponding file in the same directory as install.wim (i have 4 exe's, boot.wim, and install.wim in DVD\sources) so i can install Win7\8 x86\x64. It also runs a few autoit scripts that look for $winRoot\WinPEpge.sys and then copies the $OEM$ to $winRoot\$Windows.~LS\Sources\$OEM$. If its Win8, it deletes Daz loader. If its x64 im installing, it looks for $winRoot\Windows\SysWOW64 and it copies the x64 $OEM$ folder to $winRoot\$Windows.~LS\Sources\$OEM$. The install goes fine, it runs the loader, but if its GPT or enterprise the loader hangs. The script you supplied can maybe be run during the $OEM$ copy to check for GPT and will delete the loader.
     
  6. searchengine

    searchengine Guest

    #1146 searchengine, May 25, 2012
    Last edited by a moderator: Apr 20, 2017
    (OP)
    @HALIKUS...

    I think the ideal solution would be if when 'Windows Loader.exe' is ran in 'silent' mode from 'SetupComplete.cmd', that it self aborted, and self closed when 'unsupported OS, or incompatibility' is encountered, resulting in no 'freeze', no harm; thus allowing remainder of setup to continue.

    however, the following example 'SetupComplete.cmd', may workaround your difficulties.

    SetupComplete.cmd - example
    Code:
    @echo off
    
    ::clear
    SET INL=
    SET RQR1=
    SET RQR2=
    ::begin
    SET INL=IF NOT ERRORLEVEL 1
    SET RQR1=REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "ProductName"
    SET RQR2=REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "EditionId"
    
    :CHECK1
    ::check activation status
    WMIC /NAMESPACE:\\root\CIMV2 PATH SoftwareLicensingProduct WHERE LicenseStatus=1 GET LicenseStatus | findstr "1" >nul
    %INL% goto :SKIP
    
    :CHECK2
    ::check Windows OS -> '8'
    %RQR1% | findstr /I "WINDOWS" | findstr /I "8" >nul
    %INL% goto :SKIP
    ::check Windows Edition -> 'Enterprise'
    %RQR2% | findstr /I "ENTERPRISE" >nul
    %INL% goto :SKIP
    
    :CHECK3
    ::check for 'efisys' in list volume function -> If it finds it -> check status & if 'healthy' -> goto :SKIP
    setlocal enabledelayedexpansion
    echo list volume > %windir%\Setup\scripts\listvol.tmp
    cd /d %windir%\Setup\scripts\ >nul
    for /F "tokens=6-9 delims= " %%G IN ('diskpart /s listvol.tmp') DO IF /I %%G==efisys set mounted=%%J
    del /F /Q listvol.tmp >nul
    if '%mounted%'=='Healthy' goto :SKIP
    endlocal
    
    :LOADER
    ::run loader, cleanup, reboot
    %~dp0"Windows Loader.exe" /silent /preactivate
    cd %~dp0
    attrib -R -A -S -H *.*
    SHUTDOWN /R /T 5
    Del /S /F /Q "%windir%\Setup\scripts\*.*" >nul
    RMDIR /S /Q "%windir%\Setup\scripts" >nul
    Del /F /Q %0% >nul
    exit
    
    :SKIP
    ::executed to 'Skip' running loader, cleanup -> from CHECK1,2,or3
    Del /S /F /Q "%windir%\Setup\scripts\*.*" >nul
    RMDIR /S /Q "%windir%\Setup\scripts" >nul
    Del /F /Q %0% >nul
    exit
    Summary
    :CHECK1
    if activated, go directly to :SKIP
    :CHECK2
    if OS is Windows 8, or Edition Enterprise, go directly to :SKIP
    :CHECK3
    if 'efisys' detected, go directly to :SKIP
    :LOADER
    run 'Windows Loader.exe', cleanup, and reboot
    :SKIP
    by-pass running loader, and cleanup
     
  7. UVAIS

    UVAIS MDL Expert

    Mar 17, 2011
    1,332
    1,895
    60
    Can we run this(Windows 7 DVD (Multi-Brand/Multi-Edition) Activation) after installation ? :p
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Tito

    Tito Super Mod / Adviser
    Staff Member

    Nov 30, 2009
    18,822
    19,035
    340
  9. Daz

    Daz MDL Developer / Admin

    Jul 31, 2009
    9,530
    67,271
    300
    #1149 Daz, May 25, 2012
    Last edited: May 25, 2012
    I checked my code and it looks fine.

    As Enterprise isn't supported it exits and if your drive is GPT it will only install the certificate and serial. However, if your drive is using MBR and you're not using the very latest version of the loader then it might hang if your systems ASUS.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. UVAIS

    UVAIS MDL Expert

    Mar 17, 2011
    1,332
    1,895
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. TheDuDe06

    TheDuDe06 MDL Novice

    May 12, 2012
    2
    0
    0
    Hello, I'm currently creating an Windows 7 Image with Image X and Win PE to deploy on multiple computer with different Brands. Is there's a way using this automatically when deploying the image created previously ?
    I used my Windows 7 ISO with the &oem& folder to create the initial windows 7 image on a Dell computer. So I want to know if I use that image on another branded computer this will work?

    Thank you!
     
  12. urie

    urie retired mod

    May 21, 2007
    8,999
    3,381
    300
    No it will not work because the image you have is for a dell machine only.
     
  13. Tito

    Tito Super Mod / Adviser
    Staff Member

    Nov 30, 2009
    18,822
    19,035
    340
    Integrating serials & certs in different wims, then combining using imagex ;)
     
  14. iqbalpnr

    iqbalpnr MDL Novice

    Jan 21, 2012
    26
    15
    0
  15. The_Guardian

    The_Guardian Contributor

    May 7, 2012
    2,054
    6,803
    90
    #1158 The_Guardian, Jun 19, 2012
    Last edited: Jun 19, 2012
    @ iqbalpnr

    I moved the shutdown cmd to under the loader install portion of script for only need to be restarted if loader used. Other than that looks great and installs perfect. Very nice and clean scripting!
    I also added vmware info and theme for when i test in vmware.

    Would like to say thank you to all involved in this project and it is great to see more ppl taking an active interest in this project.
     
  16. PoppaBear_No1

    PoppaBear_No1 MDL Novice

    Jun 20, 2012
    2
    0
    0
    Hello, have tried this on windows 7 and vista machines and works really well but the contact information seems to be USA specific is there one for other regions specifically the UK. Thank to original poster excellent tool.
     
  17. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,589
    1,584
    150
    Change it urself?