OEM Recovery Partition Creator for Windows

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

  1. luky

    luky MDL Addicted

    Dec 21, 2008
    729
    33
    30
    @AnarethoS

    Ok, Thanks.

    I'd like to emphasize that I have no problems with Windows 8. Program works really great, I just have to change the language from English to my language Slovene.

    With Windows 8.1 after Install, certain folders (Mail, Weather, People) get changed to English and even if I correct that on Control Panel and change the lang. to Slovene thoose folders remain unchanged and stay in English. Is this some kind of solution.

    Image_1 normal language Slovene
    Image_2 shows the status of the Install - Tools
    Image_3 to use Install - Tools

    All the testing is made on Virtual Machine."


    View attachment 24476 View attachment 24477 View attachment 24478
     
  2. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    Alpha 4 is out. I tested in Under Windows 8.1 and it works.

    Requirement for Windows 7 : You must provide IMAGEX, both in 32 and 64 bits version
    Requirement for Windows 8 : You must provide the BOOT and EFI folder and the BOOTMGR and BOOTMGR.EFI file from the installation DVD

    During the test period, all file are Inside a folder named "Required files - Do not distribute".

    The boot files are required for Windows 8 to create the DVD.

    Let me know if everything works.

    Thanks!
     
    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
    On a clean installation of Windows 8.1 (in Audit Mode), if you do a Sysprep without using my software (Audit --> OOBE, Generalize), do you have the same problem? If yes, the problem come from M$, not my software.

    If you uninstall the software and re-download it from the store, is the problem fixed?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. luky

    luky MDL Addicted

    Dec 21, 2008
    729
    33
    30
    I made fresh Windows 8.1 installation (in Audit) with Sysprep without the use of tools Install - Tools and language for certain files hasn't changed (Mail, Calendar ...).

    I think that software Install - Tools after installation makes some sort of a blockade so that I can not change language settings for certain programs that was set at the time of Windows 8.1 installation.

    Creation of .iso for DVD now works great."
     
  5. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    I will try Under VMware with my French version of Windows 8.1. Is the DVD version you are using is multi-lingual or only 1 language?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. luky

    luky MDL Addicted

    Dec 21, 2008
    729
    33
    30
    I have the DVD version of the Slovenian language only (1).
     
  7. lnstevens1976

    lnstevens1976 MDL Junior Member

    Oct 16, 2012
    72
    6
    0
    There could be a third option you hadn't thought of. Considering most of us use USB installs w/ the software on the drive "AND" the Install directory there, you could set it to copy it directly from the USB Drive during the "install" procedure. This way it would exist on the hard drive when someone went to create the recovery DVD.

    Plus by doing so you aren't violating any EULA because you are not distributing the file, simply copying it from the installation media directly to the drive at the time you create the recovery partition.
     
  8. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    Well, I thought about it, but doing so will require to know the drive letter of the USB key or DVD drive during installation. The "best" way would be to add the script into the $OEM$ folder to have it copied to the Windows installation and the script run on firt boot, but for that, I can't use the AUDIT mode.

    So I decided that the "technician" will have to copy the file by hand first before launching my Tools. I will not provide them in the final built.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Flipp3r

    Flipp3r MDL Guru

    Feb 11, 2009
    2,008
    957
    90
    #2369 Flipp3r, Oct 16, 2013
    Last edited by a moderator: Apr 20, 2017
    This code looks for \boot\winpe_x86.wim & assigns letter U.
    I use this in my startnet.cmd when booting into winpe.
    My USB Key is always U:.

    I modified this code from the AUTOIT forum. It originally gave you a list of your hdd's & usb keys.

    Code:
    #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
    #AutoIt3Wrapper_outfile=FindUSB-AMD64.exe
    #AutoIt3Wrapper_UseX64=y
    #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
    $MyUSB = ""
    $strComputer = @ComputerName
    Dim $objWMIService = objget("winmgmts:\\" & $strComputer & "\root\cimv2")
    Dim $colDevices = $objWMIService.ExecQuery ("Select * From Win32_logicaldisktopartition")
    For $objDevice in $colDevices
        $strDeviceName = $objDevice.antecedent
    $strdrive = $objDevice.dependent
    $strQuote = Chr(34)
    $strDriveName = StringReplace($strDrive, $strQuote, "")
    $arrDriveNames = stringSplit($strDriveName, "=")
        $strDeviceName = StringReplace($strDeviceName, $strQuote, "")
    $arrDeviceNames = stringSplit($strDeviceName, "=")
    $split = stringsplit($arrDeviceNames[2],",")
    $replace = Stringtrimleft($split[1], 6)
        Dim $colUSBDevices = $objWMIService.ExecQuery("Select * From Win32_diskdrive Where index = '" & $replace & "'")
      For $objUSBDevice in $colUSBDevices
      ;msgbox(0,"",$arrDriveNames[2] & "drive " & " is" & @lf & $objUSBDevice.caption)
      If FileExists($arrDriveNames[2] & "\Boot\WinPE_x86.wim") Then
    $MyUSB = $arrDriveNames[2]
    ExitLoop
    EndIf
    Next
    If $MyUSB > "" Then ExitLoop
    Next
    ;msgbox(0,"", $MyUSB)
    If $MyUSB = "" Then Exit
    $tmp="sel vol " & $MyUSB & @CRLF
    $tmp=$tmp & "assign letter=u" & @CRLF
    $MountFile=FileOpen("X:\Windows\System32\tmp.txt",2)
    ;$MountFile=FileOpen("D:\_Windows8\Make_WinPE\tmp.txt",2)
    FileWrite($MountFile,$tmp)
    $Result = FileClose($MountFile)
    RunWait("X:\Windows\System32\Diskpart.exe /s X:\Windows\System32\tmp.txt","X:\Windows\System32",@SW_HIDE)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. ColdZero

    ColdZero MDL Android 17

    Nov 9, 2009
    705
    3,230
    30
    Mmm... So what do i need to make this work under Win 8.1?
    using version stable: 1.3.15
     
  11. Flipp3r

    Flipp3r MDL Guru

    Feb 11, 2009
    2,008
    957
    90
    Go to the 1st page & download the alpha. They are all stable. It's just batch file changes mainly...

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. luxcer

    luxcer MDL Novice

    Jan 15, 2013
    32
    4
    0
    I used 1.3.16 alfa4 last partition on win 8.1 x64, it's ok.
    create dvd iso of image recovery with dvd recovery tools in to folder, no problem.
    It' s a great utility!:biggrin:
     
  13. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    Either use latest ALPHA release OR, using 1.3.15, run the command "REAGENTC /DISABLE" before running my installation script. It should then works.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    #2374 AnarethoS, Oct 19, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Running a script from Windows setup using an AutoUnattend.xml file require full path. Since I don't know the full path to the script that will search for the DVD/USB key, I am still stuck, unless I insert the script Inside the BOOT.WIM file.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    Version 1.3.16-Alpha-4 : Yes
    Version 1.3.15 : You have to run the command "REAGENTC /DISABLE" in command prompt before running the installation script.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. Badgerkiller

    Badgerkiller MDL Novice

    Aug 12, 2009
    9
    0
    0
    Thank you so much for your usefull soft :worthy:
    Just a question, why did you set the reserved partition @150Mo, 30Mo really used?
    Another question, can I resize "recovery part" (and maybe "reserved") to 8Go for example?
    Actually after sysprep pass only ~8Go are used instead of 12Go.
    There is some temp files regenerated in this partition during restore or that's still "frozen"?
    I'll use Acronis Disk Director (very easy to use).
    Thanks for your reply.
     
  17. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    I used 300mb as I saw in old M$ documentation. I think they noew recommend 150mb, not sure.

    And yes, you can resize the recovery partition to the size you want, as once the image is created, nothing will be written on it.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. jackgan

    jackgan MDL Novice

    Oct 24, 2013
    5
    0
    0
    Hi thank you for the instruction but somehow I am lost in one of the steps. I use the recovery tools 1.3.15 version, running Windows 7 64bit and when I tried to run the Update_Settings I got this error: "An error occured while updating the settings. Please be sure to run this script from a writable source where your credentials allow you to write. Script unusable.". Also, I do not know where to look for the ImageX.exe file. Please advice and thanks in advance.
     
  19. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    1) You must take the IMAGEX file from the Microsoft WAIK download en copy the 32bits version in the 32bits folder and the 64bits into the 64bits folder.
    2) Even during an pdate, you must copy the required settings file into the "SETTINGS" folder and run the Update_Settings script.
    3) The update script is removed from later version, because it was not perfect and I had some problems with it
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...