OEM Recovery Partition Creator for Windows

Discussion in 'MDL Projects and Applications' started by AnarethoS, Sep 11, 2010.

  1. anubandh

    anubandh MDL Novice

    Dec 30, 2009
    5
    1
    0
  2. darthyoda6

    darthyoda6 MDL Novice

    May 5, 2011
    2
    0
    0
    From my experience, on brand name computers when recovering from the recovery partition, on first boot it runs a script with programs to install, including usually Norton AV, but what ever trial av is included. After finishing all the installs, then the end user takes over and types in info, etc.
     
  3. Weedy

    Weedy MDL Member

    Mar 9, 2011
    206
    70
    10
    No problems here with installing a multitude of programs.
    I pre-installed the following...

    Win7Codecs_v285 by that shark007 guy,
    Foxit Reader,
    CCleaner 3.06,
    7Zip,
    Java,
    Flash,
    IE9 (required a reboot)
    and finally MS Security Essentials (didn't ask for a reboot)

    Ran the recovery tools after that and created the partition perfectly.
     
  4. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,590
    1,586
    150
    Good to hear!

    Ill do alot of work tomorrow maybe with this, sysprepping 7 Ultimate 64Bit, capturing a gen image :p
     
  5. MaNdoEsAM

    MaNdoEsAM MDL Novice

    Feb 17, 2011
    43
    0
    0
    can u tell me what's the programs can i install To avoid errors
    because i installed some programs before and i make windows like windows 7 oem come with laptop
    i get error
    thank u :)
     
  6. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,590
    1,586
    150
    How about you telling us what software you installed?.... We learn by trial and error at MDL..
    You can also tell us the error you get.


    I did not sysprep anything today, i got stuck playing minecraft once again :p
     
  7. MaNdoEsAM

    MaNdoEsAM MDL Novice

    Feb 17, 2011
    43
    0
    0
    i have the orignal folder for windows 7 come with my hp g62
    but the recovery partition is deleted
    can i convert the folders installation for windows 7
    to WIM File o reinstall it again
     
  8. Weedy

    Weedy MDL Member

    Mar 9, 2011
    206
    70
    10
    You will be better off going here forums.mydigitallife.net/threads/7126-The-Official-Windows-7-Repository and downloading a fresh copy of windows 7. From there you can download either Daz' Loader or A7Toolkit, both in the MDL projects section. Then use the tool from this thread to create a new recovery partition. Read all instructions first though.
     
  9. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    Well, I am using Security Essentials also and it works correctly wheninstalled in audit mode.

    But since I make my image bilingual (French and English) I don't install anyway except the drivers and windows update and let the SetupComplete.Cmd file run after the OOBE. My script detect the selected language and install application automatically. Take more time that if my application where pre-installed, but I like it this way :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. MaNdoEsAM

    MaNdoEsAM MDL Novice

    Feb 17, 2011
    43
    0
    0
    can u tell us how we can use this methode
     
  11. Tito

    Tito Super Mod / Adviser
    Staff Member

    Nov 30, 2009
    18,828
    19,053
    340
  12. Rossimac

    Rossimac MDL Novice

    Feb 4, 2011
    24
    2
    0
    Still working great, have done about 5 or 6 installs now and it has worked flawlessly every time!

    You should be proud of a great tool AnarethoS!
     
  13. Tito

    Tito Super Mod / Adviser
    Staff Member

    Nov 30, 2009
    18,828
    19,053
    340
    Hmm... may be!! Seems that the exact meaning isn't very clear to me.... o_O
     
  14. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    The SetupComplete.cmd file is run when the OOBE as completed.

    To use it with my tools, do the following
    - Install Windows as specified in my documentation
    - Once in AUDIT mode (so the OOBE was skipped), create the SetupComplete.cmd file in "C:\Windows\Setup\Scripts" folder. The "Scripts" folder as to be created.
    - Modify it to run desired application
    - Configure Windows as required
    - Capture

    Each time the computer will be restored from the backup, the SetupComplete fil will be run.

    I use mine to launch a script that install all my applications. Basically, Windows (when captured) include the source for my programs (which are NOT installed), drivers (installed) and basic updates. Depending of the language choice on first boot (after the capture), I run the installation of the good programs.

    I don't have my file with now, so I can't give the REG key to look at for the language selection, but a simple GOOGLE search may help you for that.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. bulldog147

    bulldog147 MDL Member

    Aug 5, 2009
    239
    39
    10
    Right, I had installed windows loader 2.0.0 with key, certificate and SLIC 2.1 into windows 7, updated all drivers, online windows updates and installed Recovery Tools and it all worked perfect. I had try reinstalled windows go to back when I was first time use pc, it already activated. But, my back up on DVD with from creator image and I formatted the whole HDD and try tested DVD to see if it put everything back ok, it work but one problem of annoyed windows activation required within 3 days to activated - why ?

    Did I forget to untick Rearm box in the first place under AUDIT mode as I left ticked on that box before I burn DVD! I thought windows loader is the proper 2.1SLIC with certificate and key to get permanent activated on same machine ?
     
  16. bulldog147

    bulldog147 MDL Member

    Aug 5, 2009
    239
    39
    10
    version 2.0.1 I did dvd creator and it was end up on 2 dvd's disk (disk 1 was 3.87GB) (disk 2 wa 28MB waste of my whole 2nd dvd) but I thought DVD suppose to be 4.37GB on single disk ?
     
  17. bulldog147

    bulldog147 MDL Member

    Aug 5, 2009
    239
    39
    10
    I never liked Softthinks myself because it only let you create image once! and that was it! They don't sell to public because I think Softthinks knew of copyrighted license on single machine only!
     
  18. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    If your computer need to use a loader (not SLIC 2.1 bios), you will need to reinstaller the loader after the DVD/USB restore or using the "Boot sector repair - MRB", as both recreate a new boot sector without the loader.

    The best way to prevent reinstalling the loader by hand is to script it's installation in the SetupComplet.Cmd file that will run after the Welcome screen after each restore/repair of Windows.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    #1100 AnarethoS, May 11, 2011
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Here is a way to script the setup complete to install software automatically after the restor of Windows.
    It also include inscruction on how to automate the Windows Loader installation

    First, create the following folders
    Code:
    C:\Windows\Setup\Scripts
    C:\Windows\Setup\Scripts\Loader
    
    Create the SETUPCOMPLETE.CMD file in the following folder
    Code:
    C:\Windows\Setup\Scripts
    
    Then, copy this (and adapt to your need) into the SETUPCOMPLETE.CMD file
    Code:
    @Echo Off
    REM *************************
    REM WINDOWS LOADER
    REM *************************
    C:
    CD \
    CD Windows
    CD Setup
    CD Scripts
    CD Loader
    "Windows Loader.exe" /silent /noreboot
    CD ..
    RD /S /Q Loader
    
    REM *************************
    REM Language Detection
    REM *************************
    SET LANG=EN
    FOR /F "tokens=3" %%I in ('reg query hklm\system\currentcontrolset\control\nls\language /v installlanguage') do IF "%%I"=="040C" SET LANG=FR
    IF "%LANG%"=="FR" GOTO FRENCH
    GOTO ENGLISH
    
    :FRENCH
    BcdEdit.exe /set {current} locale fr-FR
    BcdEdit.exe /set {bootmgr} locale fr-FR
    BcdEdit.exe /set {bootmgr} timeout 10
    ECHO TempFile>C:\French.Tag
    GOTO INSTALL
    
    :ENGLISH
    BcdEdit.exe /set {current} locale en-US
    BcdEdit.exe /set {bootmgr} locale en-US
    BcdEdit.exe /set {bootmgr} timeout 10
    ECHO TempFile>C:\English.Tag
    GOTO INSTALL
    
    :INSTALL
    REM PUT THE SCRIPT TO INSTALL ALL YOUR SOFTWARE HERE!
    REM Make your script look for the French.Tag or English.Tag to launch the good version of the software
    REM Adjust to suit your need.....
    GOTO QUIT
    
    :QUIT
    EXIT
    
    Hope it will help you :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...