PC Problems Posted November 30, 2009 Share Posted November 30, 2009 Hi all,What I want to achieve:-When I sell a new PC with Windows 7, I want to create a self booting System Recovery DVD. I am fully aware that you can create a WinRE hard disk based recovery partition via the F8 - Repair your computer.But hard drives fail, and you have then lost the recovery ability, and if under warranty I have to install from fresh on new HD again, so therefore I want to create this on a physical media.I have successfully made the WinRE DVD as stated in the OPK. I have also successfully created my "image.wim" after the Sysprep -shutdown via Imagex of the new PC's Windows 7 installation.So my question is how do I make the WinRE DVD i have created to automatically deploy my "image.wim" to the new hard drive for that PC?I also presume I will need to make a DISKPART script to create the 200mb system and primary partition for the Win 7 partitions before the "image.wim" is deployed?The OPK documentation seems very vague?Can this be done.Any help would be greatly appreciated.Thanks in advance Mike. Link to comment Share on other sites More sharing options...
Tripredacus Posted November 30, 2009 Share Posted November 30, 2009 There are walkthroughs here to create WinRE using the WAIK:http://technet.microsoft.com/en-us/library...28WS.10%29.aspxUnfortunately, OPK methods use NDA (non-disclosure agreement) restrictions which means they are not to be openly shared with the public. The WAIK instructions should work with an OPK build. Otherwise, if you are experiencing problems specific to the OPK instructions, you should contact your TAM or Microsoft Rep to acquire the correct help. Link to comment Share on other sites More sharing options...
PC Problems Posted November 30, 2009 Author Share Posted November 30, 2009 TY, but that is the same guide I am using, it tells you how to create the WinRE disc, but then the help file simply moves on to the hard drive partition recovery?Thanks Mike. Link to comment Share on other sites More sharing options...
Tripredacus Posted December 2, 2009 Share Posted December 2, 2009 Don't forget this one too:http://technet.microsoft.com/en-us/library...28WS.10%29.aspx Link to comment Share on other sites More sharing options...
PC Problems Posted December 2, 2009 Author Share Posted December 2, 2009 TY, yes read that one too, the REANGENTC.EXE must set up a variable call within the windows OS to look for install.wim, but this obviously does not apply to the WinRE on a DVD ?So when you press F8 and select repair my computer it boots from the recovery partition and the WinRE looks at the Windows OS variable to find the location of install.wim...... Link to comment Share on other sites More sharing options...
Tripredacus Posted December 2, 2009 Share Posted December 2, 2009 There might be a mix up here. You can make a WinRE from DVD or from HDD. When you use DVD method, there is no RE partition on the HDD at all. You likely need to have the System Partition to use WinRE in any case, since it is designed to copy files into it during recovery. So if you did your 7 install method where you only have 1 partition, WinRE isn't supported. Link to comment Share on other sites More sharing options...
allanf Posted December 4, 2009 Share Posted December 4, 2009 I have also successfully created my "image.wim" after the Sysprep -shutdown via Imagex of the new PC's Windows 7 installation.So my question is how do I make the WinRE DVD i have created to automatically deploy my "image.wim" to the new hard drive for that PC?I also presume I will need to make a DISKPART script to create the 200mb system and primary partition for the Win 7 partitions before the "image.wim" is deployed?Hi PC,Are you simply wanting to add an "imagex /apply" routine to the startup script, or have I missed something?Regards Link to comment Share on other sites More sharing options...
PC Problems Posted December 5, 2009 Author Share Posted December 5, 2009 TY Allan,Yes I have had alot of thought on this and yes you are correct, the hurdle for me is how to determine the drive letter of the location of the WIM on the DVD.The drive letter assigned to the DVD could be anything depending on how many HD's etc there are.I dont know how to determine which drive letter is assigned to apply the image command? Link to comment Share on other sites More sharing options...
allanf Posted December 6, 2009 Share Posted December 6, 2009 I dont know how to determine which drive letter is assigned to apply the image command? Windows PE (rather than RE) is probably a better environment for deploying from a CD/DVD.Just the other day, I rebooted and what d'ya know - Windows RE thinks there's a serious problem, does unspecified exhaustive scans and tests, then admits that it can't fix the problem. Fortunately, on reboot, everything seemed OK. That's as much as I know about RE.Create a uniquely-named tag file on the CD/DVD.When Windows PE boots, run a FOR /F loop in batch script to search drives for the tag file and assign the correct drive letter to a variable.There are a few variants of the FOR /F loop. Good luck. Link to comment Share on other sites More sharing options...
Tripredacus Posted December 6, 2009 Share Posted December 6, 2009 When Windows PE boots, run a FOR /F loop in batch script to search drives for the tag file and assign the correct drive letter to a variable.There are a few variants of the FOR /F loop. Good luck. It may be easier (depending on your experience) to use AutoIT. It has an @ScriptDir macro, that will find the exact path where the script resides, which can then be concat (and/or trimmed) to find the location of the WIM. Link to comment Share on other sites More sharing options...
allanf Posted December 6, 2009 Share Posted December 6, 2009 (edited) ... an @ScriptDir macro, that will find the exact path where the script resides, which can then be concat (and/or trimmed) to find the location of the WIM.Just guessing that the @ScriptDir macro is similar to a VB Script I've seen for finding its own path and drive....The standard method of booting Windows PE is to load it into RAM which is assigned the drive letter x: (although the letter can now be changed using DISM when customising Windows PE 3.0).The script (VB or batch) or autoit program would normally execute from the RAM drive, so the script (or program) itself shouldn't be too hard to find. Use the %SYSTEMDRIVE% environment variable.The images will reside on the DVD, which would still need to be found. The FOR /F loop batch is the simplest method I have seen.I guess there is the option of running Windows PE from the DVD, rather than RAM, in which case, the script and the images would be on the same drive. (... not sure how the drive letter is assigned in this case?)Or, if the images are small enough, load them into RAM as well, where they can be easily found. Edited December 6, 2009 by allanf Link to comment Share on other sites More sharing options...
CLJone Posted December 6, 2009 Share Posted December 6, 2009 Hi, I have used "FOR %%I IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%I:\DVD.TXT SET DVD=%%I:" in the past works for all the time. Place this in run command and put a "DVD.TXT" in the root of my DVD. ::Run.cmd::FOR %%I IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%I:\DVD.TXT SET DVD=%%I:imagex /apply %dvd%\install.wim 1 c:Hope that works for you!! Link to comment Share on other sites More sharing options...
allanf Posted December 6, 2009 Share Posted December 6, 2009 Hi, I have used "FOR %%I IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%I:\DVD.TXT SET DVD=%%I:" in the past works for all the time. Place this in run command and put a "DVD.TXT" in the root of my DVD. ::Run.cmd::FOR %%I IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%I:\DVD.TXT SET DVD=%%I:imagex /apply %dvd%\install.wim 1 c: Hope that works for you!!You make it sound too easy ... ...And, quite right, it's not a FOR /F loop, just a plain FOR loop. I was thinking of another batch I've been working on ... ... Link to comment Share on other sites More sharing options...
PC Problems Posted December 7, 2009 Author Share Posted December 7, 2009 Ah wow fantastic thank you.Just 1 silly question left, where do I put this run cmd!Sorry I am new to WinPE and WinRE Link to comment Share on other sites More sharing options...
jaclaz Posted December 7, 2009 Share Posted December 7, 2009 And, quite right, it's not a FOR /F loop, just a plain FOR loop. I was thinking of another batch I've been working on ... ...You are right , meaning that you are WRONG. You can use a FOR /F allright, check a few posts starting from this one:http://www.msfn.org/board/install-xp-ram-l...4-page-112.htmlActually the method depicted there is suggested since it avoids the problem of mapped drives without media (please read as "card readers"). jaclaz Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now