Jump to content

atolica

Member
  • Posts

    209
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Romania

Everything posted by atolica

  1. Muchos gracias for the reply Where do you place the batch file? At what point is it executed if you say that you're not running the commands manually. If I run the script, the way you post it, I get some errors First The store creation operation has failed. A device attached to the system is not functioning, and some others follow because the bcd file isn't created. But if I run the command manually, it works, but the process crashes at for /f "tokens=1-3" %%a in ('Bcdedit /store "%BCDFILE%" /create /d "Windows 32. I guess I have to remove an "%" and build the bcd file manually. edit: Bcdedit /store %BCD-File% /set %guid1% systemroot \Windows won't run at all. What's the next step. Renaming %BCDFILE% and placing it in the boot folder? Thank you so much, sir. Regards Atolica
  2. Thank you for your reply. I searched on technet and found this http://technet.microsoft.com/en-us/library/cc766385.aspx that references what you said. As I see it this is a batch file, that creates %BCDFILE% in system32 file. I have two winpe bootable isos. One ErdCommander and the other one a win32 winpe. This is the normal folder structure on each of the isos. BOOT EFI SOURCES BOOTMGR I have to have in the end a bootable cd/dvd with both unpacked iso on it and the Boot Configuration Data (BCD) store file "BCD" inside BOOT folder modified by the help of your script. Your script has these two lines Bcdedit /store "%BCDFILE%" /set %guid1% osdevice ramdisk=[boot]\Boot\winpe_x86.wim,{ramdiskoptions} Bcdedit /store "%BCDFILE%" /set %guid1% device ramdisk=[boot]\Boot\winpe_x86.wim,{ramdiskoptions} My question. Where do the wim files go? Do I have to copy both inside the boot folder? They normally reside inside the SOURCES folder. edit:where do I run the batch file? this line for /f "tokens=1-3" %%a in ('Bcdedit /store "%BCDFILE%" /create /d "Windows 32 Bit" /application osloader') do set guid1=%%c doesn't do anything. Sorry for the stupid question. I am not a big fan of script language. Thank you very much for all your help. Reagrds, Atolica
  3. I am not so retarded. I've been using waik since the first WinPe version was released, for Windows Xp.I am building winpe images on a daily basis. I wouldn't have asked you if I could've found the info in winpe documentation. I am interested in the bcdedit method.
  4. Hi guys Do you know how can you create a multiboot dvd so you have two or more Winpe distributions (Operating systems Windows 7/ Vista) on one DVD? HERE'S THE ANSWER !!! SEE HERE !!! Suppose you'd like to have a dvd with Vista/Win7 setup files(installation disk) PLUS ERD Commander, Active Boot Disk, ESET SysRescue or any other custom made WinPE that you built, on a multiboot CD/DVD, so you could chose which one you'd like to boot. How do you do it? Answer: very easy if you know where to look complete procedure... use the default WinVista, WIN 7 or any WinPE dvd or any bootable wim. copy the contents to the HDD the structure would be dvd1 | - Project Root | - BOOT (CONTAINS THE BCD FILE TO BE EDITED) | - EFI | - SOURCES (CONTAINS THE PE .WIM FILES) | - OTHER FILES In the boot folder we need to run the command bcdedit /store bcd /ENUM This will give you the details of old entry in the boot loader. You need to note the guid. In every case the default guid is {7619dcc8-fafe-11d9-b411-000476eba25f} bcdedit /store bcd /enum Windows Boot Manager -------------------- identifier {bootmgr} description Windows Boot Manager locale en-US inherit {globalsettings} default {default} displayorder {default} toolsdisplayorder {memdiag} timeout 30 Windows Boot Loader ------------------- identifier {default} device ramdisk=[boot]\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f} path \windows\system32\boot\winload.exe description Windows Setup locale en-US inherit {bootloadersettings} osdevice ramdisk=[boot]\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f} systemroot \windows detecthal Yes winpe Yes ems Yes First you'd like to see the existing boot entries in the BCD store. bcdedit /store bcd /ENUM *** note the old guid Then you copy the default boot entry to a new entry in the bcd store, that has to be updated. bcdedit /store bcd /copy {default} /d "Active Boot Disk" *** new guid is given at this stage Active Boot Disk is the description I'd like to use for my Active Boot Disk WinPE. operation completed successfully. {613fe2f0-2356-11de-bf6a-001e4cdc40b1} ***{613fe2f0-2356-11de-bf6a-001e4cdc40b1}=new guid It can be different for you. therefore my new guid is {613fe2f0-2356-11de-bf6a-001e4cdc40b1} now bcdedit /store bcd /set {newguid} DEVICE ramdisk=[boot]\sources\boot32.wim,{oldguid} boot32.wim being the name I chose for the Active Boot wim file. You can rename it as you like, but you can not use spaces. operation completed successfully. next bcdedit /store bcd /set {newguid} OSDEVICE ramdisk=[boot]\sources\boot32.wim,{oldguid} *** boot32.wim is the file copied from the active boot disk (boot.wim renamed) *** to check whether the bcd store has 2 ramdisks bcdedit /store bcd /ENUM Windows Boot Manager -------------------- identifier {bootmgr} description Windows Boot Manager locale en-US inherit {globalsettings} default {default} displayorder {default} {613fe2f0-2356-11de-bf6a-001e4cdc40b1} toolsdisplayorder {memdiag} timeout 30 Windows Boot Loader ------------------- identifier {default} device ramdisk=[boot]\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f} path \windows\system32\boot\winload.exe description Windows Setup locale en-US inherit {bootloadersettings} osdevice ramdisk=[boot]\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f} systemroot \windows detecthal Yes winpe Yes ems Yes Windows Boot Loader ------------------- identifier {613fe2f0-2356-11de-bf6a-001e4cdc40b1} device ramdisk=[boot]\sources\boot32.wim,{7619dcc8-fafe-11d9-b411-000476eba25f} path \windows\system32\boot\winload.exe description Active Boot Disk locale en-US inherit {bootloadersettings} osdevice ramdisk=[boot]\sources\boot32.wim,{7619dcc8-fafe-11d9-b411-000476eba25f} systemroot \windows detecthal Yes winpe Yes ems Yes like this you may add n number of WINDOWS PEs... (I have tested 3 PEs + Windows 7 Setup) to the BCD Store. Just you have to keep the oldguid to same as {7619dcc8-fafe-11d9-b411-000476eba25f} {7619dcc8-fafe-11d9-b411-000476eba25f} will never change... that's the rule. copy the boot.wim file in sources folder of active boot disk/ ghost pe/ erdcommander 6.0 to the sources folder in disk1 in the project. and rename it to desired. I renamed it to boot32.wim you may use any... {default} is not a variable and need not be changed. Next This is a script that automates the above process: Rem BCD (boot configuration data) editor for multiple vista pe REM THIS IS THE ORIGINAL BCD FILE EXTRACTED FROM ANY VISTA WINDOWS 7 WINPE / WINDOWS 7 DVD set BCD-File="c:\bcd 1\BCD" REM SET THE NAME FOR THE WINPE HERE (CHANGE IT EVERY TIME FOR EVERY BOOT ENTRY) set pename="Your PE Name" REM SET THE NAME FOR THE WIM.FILE HERE WITH PATH set filena=[boot]\sources\yourwimfile.wim for /f "eol=r tokens=1-2" %%a in ('bcdedit /store %BCD-File% /ENUM all') do set rdo=%%b for /f "tokens=1-7" %%a in ('Bcdedit /store %BCD-File% /copy {default} /d %pename%') do set guid1=%%g bcdedit /store %BCD-File% /set %guid1:~0,38% DEVICE ramdisk=%filena%,%rdo% bcdedit /store %BCD-File% /set %guid1:~0,38% OSDEVICE ramdisk=%filena%,%rdo% bcdedit /store %BCD-File% /ENUM Run it as many times as you like to add multiple pes after changing the variables - bcd-file, pename, filena remember not to use any spaces in filena variable. I hope it helps thanks to varun037
  5. Hi guys I find Eset SysRescue(which is WinPE) from Nod32 v4 very handy, but limited in a way. Is there a way to add SysRescue to Erd Commander? Are there any plugins that I may use? Bartpe plugins or... I tried to export the registry hive from SysRescue by mounting the software hive.I couldn't add it to ERD Commander's registry as I am on Win 7 and there seem to be some incompatibilities between WAIK 3 eta and Sysrescue and WAIK 2 is not running as it should(see the pic) Thank you Atolica
  6. @strel Sorry mate fo not reading the posts above. Are those registry keys just a workaround or those patches do really get installed?
  7. @strel Why does "Microsoft .NET Framework 3.5 Service Pack 1 and .NET Framework 3.5 Family Update (KB951847) x86" show up in WU even if I installed the full package created using your latest SNMsynth.cmd? WU downloads just these three: NDP20SP2-KB958481-x86, NDP30SP2-KB958483-x86, NDP35SP1-KB958484-x86 (=KB951847 - family update suite), a little over 17 mb. I tested this on two different machines. I used net 3.5 SP1 plus those three patches mentioned above. Any ideas? Thanks.
  8. I'll take the Crush. Thanks.
  9. Exactly. What tools does MS use to create MS cabs including folders and sub-folders with files in them? Sometimes I really need to create cab files and can't do because of the limitation of cabarc and makecab tools that are public. Does anyone have an idea?
  10. Anyone? Is there a way for installing drivers from the dvd?
  11. I tried to integrate them using DISM from latest WAIK for Windows 7. It won't work for nvidia prerelease Win 7 drivers, but I can live with that. They're not signed, so I don't know why it doesn't work. Probably because they're a "pre-release"?!?! The rest of the drivers do integrate ok, Realtek audio and so forth. So it's no way to run offlineservicing and integrate drivers from the DVD while running installation from it? I have to check waik documentation for that.
  12. Yes. You're right. How did I miss this? I'm running the installation from booting the DVD. Of course is not H: So, what variable is it: %cdrom%? Thanks for opening my eyes.
  13. Hi all I used WSIM to create an answer file for my Windows 7 beta disk so I could run an unattended installation I used several sources, msfn and firegeri's guide and everything looks fine until I start to install it. In vmware first, for testing purposes. During installation or "offlineServicing" step I get a strange error that is not so well documented. "Windows could not not apply unattend settings during pass [offlineServicing]" Some pics. Installation error WSIM A section of my answer file looks like this. Here is where everything crumbles <settings pass="offlineServicing"> <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <DriverPaths> <PathAndCredentials wcm:keyValue="6a7b2ae4" wcm:action="add"> <Path>H:\Distribution\Out-of-Box Drivers</Path> </PathAndCredentials> </DriverPaths> </component> </settings> <cpi:offlineImage cpi:source="wim:h:/distribution/sources/install.wim#Windows 7 ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> </unattend> As you can see I removed the "credential" string. The same thing happens if I don't remove it. Does anyone have a clue? I post this here because is the same for Vista, no difference what-so-ever when deploying it and the tools used. I used WAIK 3 beta for this. Thank you in advance.
  14. Hi all I used WSIM to create an answer file for my Windows 7 beta disk so I could run an unattended installation I used several sources, msfn and firegeri's guide and everything looks fine until I start to install it. In vmware first, for testing purposes. During installation or "offlineServicing" step I get a strange error that is not so well documented. "Windows could not not apply unattend settings during pass [offlineServicing]" Some pics. Installation error WSIM A section of my answer file looks like this. Here is where everything crumbles <settings pass="offlineServicing"> <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <DriverPaths> <PathAndCredentials wcm:keyValue="6a7b2ae4" wcm:action="add"> <Path>H:\Distribution\Out-of-Box Drivers</Path> </PathAndCredentials> </DriverPaths> </component> </settings> <cpi:offlineImage cpi:source="wim:h:/distribution/sources/install.wim#Windows 7 ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> </unattend> As you can see I removed the "credential" string. The same thing happens if I don't remove it. Does anyone have a clue? I post this here because is the same for Vista, no difference what-so-ever when deploying it and the tools used. I used WAIK 3 beta for this. Thank you in advance.
  15. If I try to add drivers during auditSystem I get an error, and everything hangs. I am modifying the answer file to see if I can't install the drvers during offlineServicing. Anybody knows why is this happening? Thank you
  16. What does def.exe and that reg string from within the archive's comment do?
  17. @x-shadow-x Can you upload NAR to another hosting service, rapidshare or megaupload? "User downloading session limit is reached. Please try again in few minutes." Minutes are hours.
  18. Hi all I'm almost ready building my first Win 7 unattended distribution using WSIM. Before I proceed in formatting my C drive, I want to know if the "Credentials" string or whatever is required for a error free installation or can I just remove it? edit: Another thing: If i run the installation from a usb flash drive with "autounattend.xml" placed on the drive's root and the folder structure created by WSIM(that from "c:\Distribution"), "InstallFrom" string is not required, is it? I think that' needed only for running installation from network shares or everything else than dvd media. In this case the usb drive will be seen as a dvd disk?! I am asking:) Thanks
  19. Hey don't take it like that. It wasn't my intention to offend you in anyway, even if I did, it seems. I could've wrote CRAP, but I didn't. You know what I meant.
  20. @radix Why all the extra c..p, in your script and in other's? Why the need for, "; Save .mds file association (to restore it after the installation of DAEMON Tools Lite) $mdsfileassociation = RegRead("HKCR\.mds", "")" ???, for example? or "; Create a new icon in Start Menu If $NewStartMenuIcon = 1 Then FileCreateShortcut($InstallDir & "\daemon.exe", @StartMenuCommonDir & "\Programs\DAEMON Tools Lite.lnk", $InstallDir) EndIf" Why not a simple script? Is this silent? How do I uncomment "; Keeps the Start Menu folder $StartMenuFolder = 1"? By changing $StartMenuFolder to $StartMenuFolder = 0? Sorry mate, not trying to be an a**, but I like things simple and straight forward. Regards, Atolica
×
×
  • Create New...