OEM Recovery Partition Creator for Windows

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

  1. Bloodykiller86

    Bloodykiller86 MDL Novice

    Jul 30, 2009
    15
    0
    0
    I was reading through the instructions but I didnt really see an answer to a question i had. i was wondering if i could automate this with a silent switch or something. at the present moment i have a windows 7 usb stick with all versions and its setup to do everything on its own including installing drivers. i was wondering after it does all that i have it setup to do, that if theres a switch for this program to automatically make the recovery image. currently i use Windows Post Install to install all the programs and stuff after windows installs by itself so if i could add a entry for this program to automate the recovery image maker by that would be awesome and it would really make my windows 7 usb the most automated installer i have. if not ill just do it afterwards on every pc
     
  2. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    There is no silent switch, sorry.

    Never thougt that some will need one, as the process of creating the recovery image must be done after fine-tuning the computer.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    Sadly, I dont know what happened, since everything was working before you installed Linux.

    Did you change your partition layout after creating your recovery image?

    Maybe the problem is there....

    Also, after recovery, is there any space left on your Windows partition? Or is it full?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. des4751

    des4751 MDL Novice

    Sep 20, 2012
    1
    0
    0
    Tried running Basic 1.2, everything seems to work till "run theinstallation script of the recovery tool." have a Toshiba Laptop m65-s821 and fresh full install of Win 7 Home Premium. where do I find this recovery tool? or how do I run? cant seem to find it...could you help with a little more detailed install info?
     
  5. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,590
    1,586
    150
    YOu could read the read me pdf.

    Download it, run it, point to waik, copy installer folder to usb/cd, install W7, run installer (x86 or amd64), capture, done.
     
  6. Dirk2512

    Dirk2512 MDL Junior Member

    Jan 6, 2011
    60
    3
    0
    can you tell me how to get the original version to create a single wim file, instead of the swm files. I know it can be done through imagex but i don't know where in the recovery tools. Or even if possible can you provide the files for copy and paste... Thanks

    Im looking forward to the new version when it is released.
    Great job
     
  7. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    WIM file = If image under 3gb
    SWM = If image over 3gb

    This is required for the DVD/USB recovery media. Modifying my script to prevent splitting will broke the option to create recovery media.

    Sorry!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    Well, I suppose you have used the Autounattend.Xml when installing Windows and that you are still in AUDIT mode?

    If yes, simply run "Install to MBR Disk" from the "MBR\Scripts-MBR" (or GPT if under UEFI 64bits system, depending of your installation).
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. bocah_04

    bocah_04 MDL Novice

    Sep 24, 2012
    5
    1
    0
    great software :worthy: installed on my PC and running well.
    is it possible to configure the menu , so when i press F7 the "reinstall Windows" can running automatically??
    If yes could you please tell me how to configure it ;)
    best regards
     
  10. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    You want to automatically start the "Reinstall Windows" option on boot of the recovery tool or you just want to have the second tab (where you can either select repair, reinstall ou boot fix) as the default tab?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. bocah_04

    bocah_04 MDL Novice

    Sep 24, 2012
    5
    1
    0
    i just want automatically start the "Reinstall Windows" option when i press F7, and no need the other option (repair, etc)
     
  12. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    #1533 AnarethoS, Oct 1, 2012
    Last edited by a moderator: Apr 20, 2017
    (OP)
    This can be done, but you will have to do the following
    - Download AutoIT
    - Edit the Recovery.au3 file and modify it as specified below
    - Recompile the Recovery.au3 file in both x86 and x64 versions
    - Replace the file in the Recovery installation package
    - Run an update of the tools

    ORIGINAL
    Code:
    ;Starting Menu sequence
    IF $DebugLevel=5 Then Run(@ComSpec)
    MountDrive()
    CheckRecoveryMode()
    CheckImage()
    CheckPassword()
    MainMenu()
    
    NEW
    Code:
    ;Starting Menu sequence
    IF $DebugLevel=5 Then Run(@ComSpec)
    MountDrive()
    CheckRecoveryMode()
    CheckImage()
    CheckPassword()
    ReinstallWindows()
    Run("X:\Windows\System32\wpeutil.exe reboot","X:\Windows\System32",@SW_HIDE)
    
    I would suggest you to put a password, since otherwise the computer will be completly reinstalled and all data will be lost. Also, in the case of a boot failure (ctrl+alt+delete, reset button pressed, power outtage, etc.), Windows always try to start WinRE. Without the password, the computer will be reimaged automatically. Not a good thing...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    Good new averyone!

    I am curently working on the Windows 8 version of the tools.
    It will be based on the "Basic" version, as this will support the "Refresh" and "Reset" the computer.

    When using the "Refresh" option, the computer will be re-imaged with the original image capture, but personnal data will be kept.
    When using the "Reset" option, all data will be erased.

    Also, thanks to M$, you will also have to create your own updated "Refresh" image. I will give the option through a menu for the end user.

    This menu will ahve the following option
    1) Refresh/Reset the computer (reboot to Windows RE where you can choose what to do)
    2) Create a recovery medium (RecoveryDrive.exe - You will be able to create a USB key taht include the recovery image in case of a HDD crash)
    3) Create/Update/Delete a custom image for the "Refresh" option

    But, first, I have to fix some things in my script, then I will thest on both MBR/GPD(UEFI) system. After that, I will start working on the Recovery menu.

    Please note that I don't plan to migrate/uptade the "Original" version to Windows 8, as most of it functionnalitiy are offered through Windows, like the USB media creator, the option to Reset or Refresh, etc. So, saddly, the only lost will be the file browser.

    But give me some time, I am doing a university course at the same time :p
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,590
    1,586
    150
    Love it! Take your time.
     
  15. bocah_04

    bocah_04 MDL Novice

    Sep 24, 2012
    5
    1
    0

    waiting for try it with my new PC
    :thumbsup:
     
  16. bocah_04

    bocah_04 MDL Novice

    Sep 24, 2012
    5
    1
    0
    #1537 bocah_04, Oct 2, 2012
    Last edited by a moderator: Apr 20, 2017
    thanks a lot for your support
    it's working perfectly:thumbsup::thumbsup:
     
  17. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    32bits/64bits - MBR = Done
    64bits - GPT(UEFI) = In testing
    Recovery Tools for Windows Gui = In work. Currently building the skeletton of the application. Have a lot to do (placing stuf at the right place, colors, text, etc.)

    When the gui will be completed, I will put here a non working version for your comments and translation, since it is a new program, there is no MUI. By default, French/English will be present. Will load english if current system locale is not found.

    I hope a mini-KMS and drivers for my computer will be available soon, so I can switch to W8 to fully test it.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. Flipp3r

    Flipp3r MDL Guru

    Feb 11, 2009
    2,011
    959
    90
    I too have started work on this. I've got 5 partitions in UEFI mode & it is now much easier to setup the recovery.
    I'm just running a script to sysprep /generalize /quit then auto reboot to winre which checks if install.wim exists then auto creates it...
    Looking forward to seeing your setup on this!

     
    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
    My first software was for Windows XP and was using BartPE.
    After, I switched to WinPE for Windows Vista.
    Then, I create my "Original" version for Windows 7 using WinRE.
    And, one day, I found the M$ Whitepaper and made the "Basic" version, which is only a set of script taht use built-in Windows functionnalities.

    I had to modify theses script for Windows 8 (no more bootkey option, had to specify index number, had to sysprep BEFORE copying the WinRE file in audit mode, etc.)

    For MBR, I am using 3 partition : Recovery, Boot, Windows
    For UEFI, I am using 4 partition : Recovery, Boot (EFI), MSR and Windows

    When my software/scripts will be completed, we can compare our job and see if we can help each other if you want to.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...