Jump to content

graham6282

Member
  • Posts

    12
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

About graham6282

  • Birthday 02/06/1982

Contact Methods

  • MSN
    graham6282@hotmail.com
  • Website URL
    http://

graham6282's Achievements

0

Reputation

  1. Hi, Is it possible to create the environment variable %USERPROFILEDATA% which would be used like with %USERPROFILE% I want to change the location of these folders DOCUMENTS DOWNLOADS FAVORITES MUSIC PICTURES VIDEO and possibly SAVED GAMES from HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders So that the value would be %USERPROFILEDATA%\Music instead of %USERPROFILE%\Music I want this to point to D:\Users\%USERNAME%\Music etc. instead of C:\Users\%USERNAME%\Music (note: D:\ is a storage partition on the same disk) in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders Also, i notice that the DOWNLOADS reg entry has the name {374DE290-123F-4565-9164-39C4925E467B} Is there any way of knowing EXACTLY what that means?? i mean can i do it with other hex names, values etc. This is so i can create a default user profile and then if another user is created, it also creates the D:\Users\%USERNAME% folders Thanks in advance EDIT: I have noticed another registry key HKEY_USERS\S-1-5-18\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders which is the same as the one above Is this a generic one that gets copied to HKCU ? ? Would it be possible to use this from unattended install?? EH!!!!!!!!!!! Confused lol, there is the same registry entry from every folder within the HKEY_USERS location ???? Still though, need to sort that variable out first lol.
  2. Here's what i have done so far. Created an unattended Vista install using this unattended script Autounattend.xml <?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="windowsPE"> <component name="Microsoft-Windows-International-Core-WinPE" 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"> <InputLocale>en-GB</InputLocale> <SystemLocale>en-GB</SystemLocale> <UILanguage>en-US</UILanguage> <UserLocale>en-GB</UserLocale> <SetupUILanguage> <UILanguage>en-US</UILanguage> </SetupUILanguage> <UILanguageFallback></UILanguageFallback> </component> <component name="Microsoft-Windows-Setup" 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"> <DiskConfiguration> <Disk wcm:action="add"> <CreatePartitions> <CreatePartition wcm:action="add"> <Size>8000</Size> <Order>1</Order> <Type>Primary</Type> </CreatePartition> <CreatePartition wcm:action="add"> <Order>2</Order> <Type>Primary</Type> <Size>40000</Size> </CreatePartition> <CreatePartition wcm:action="add"> <Order>4</Order> <Type>Logical</Type> <Size>5000</Size> </CreatePartition> <CreatePartition wcm:action="add"> <Order>3</Order> <Type>Extended</Type> <Extend>true</Extend> </CreatePartition> </CreatePartitions> <ModifyPartitions> <ModifyPartition wcm:action="add"> <Label>Recovery</Label> <Letter>R</Letter> <Order>1</Order> <PartitionID>1</PartitionID> <Active>false</Active> <Format>NTFS</Format> </ModifyPartition> <ModifyPartition wcm:action="add"> <Letter>C</Letter> <Order>2</Order> <PartitionID>2</PartitionID> <Label>Local Disk</Label> <Format>NTFS</Format> <Active>true</Active> </ModifyPartition> <ModifyPartition wcm:action="add"> <Order>3</Order> <Letter>D</Letter> <Format>NTFS</Format> <Label>Storage Disk</Label> <PartitionID>3</PartitionID> <Extend>true</Extend> <Active>false</Active> </ModifyPartition> </ModifyPartitions> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> </Disk> <WillShowUI>OnError</WillShowUI> </DiskConfiguration> <Display> <ColorDepth>32</ColorDepth> <HorizontalResolution>1024</HorizontalResolution> <VerticalResolution>768</VerticalResolution> <RefreshRate>60</RefreshRate> </Display> <ImageInstall> <OSImage> <WillShowUI>OnError</WillShowUI> <InstallTo> <DiskID>0</DiskID> <PartitionID>2</PartitionID> </InstallTo> </OSImage> </ImageInstall> <UserData> <AcceptEula>true</AcceptEula> <ProductKey> <Key>*****-*****-*****-*****-*****</Key> <WillShowUI>OnError</WillShowUI> </ProductKey> </UserData> <Restart>Restart</Restart> </component> </settings> <settings pass="oobeSystem"> <component name="Microsoft-Windows-Deployment" 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"> <Reseal> <Mode>Audit</Mode> </Reseal> </component> </settings> <cpi:offlineImage cpi:source="wim:e:/vista/setup/sources/install.wim#Windows Vista HOMEPREMIUM" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> </unattend> I may want to change recovery partition to FAT32?? still undecided?? I used setautofailover.cmd but it will not work if ntldr is missing etc. so i need to use winpe boot disk to recover anyway so what is the point?? Which is why i am thinking about editing the mbr. In \sources\recovery\tools\ from the winre.wim (once mounted : imagex /mountrw c:\winreimage\winre.wim 1 c:\winremount INFO ) Created a folder "oeg" that has these files in it... recovery.exe from recovery.zip, thanks Robbo for that choice.exe, copied from system32 folder (although i don't know if this is needed) imagex.exe AND wimgapi.dll copied from AIK/OPK (needed????) format_c.txt select disk 0 select partition 2 format fs=ntfs label="Local Disk" quick exit set_recovery_letter.txt (winpe always changes recovery drive letter so this just creates absolute drive letter) select disk 0 select partition 1 assign letter r exit and recover.bat @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@ @@ @@ MASTER IMAGE DEPLOYMENT @@ @@ @@ @@ Title : recover.bat @@ @@ @@ @@ Author : Graham Brown @@ @@ @@ @@ Parent : n/a @@ @@ @@ @@ Purpose : Deploy master backup image to C: @@ @@ @@ @@ Comments : @@ @@ @@ @@ @@ @@ @@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ECHO OFF @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@ SECTION: Variables SET title=DEPLOY MASTER BACKUP IMAGE SET local_disk=C: SET recovery_disk=R: SET script_dir=%0\.. SET format_c=format_c.txt SET set_recovery_letter=set_recovery_letter.txt SET image_name=master_backup.wim @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@ SECTION: Display Title cls ECHO. ECHO %title% ECHO. ECHO Do you want to restore the master backup image ?? ECHO. %script_dir%\CHOICE /C:YN IF ERRORLEVEL 2 GOTO END IF ERRORLEVEL 1 GOTO CONTINUE :CONTINUE ECHO. ECHO This will delete all data on C: Are you sure? ECHO. %script_dir%\CHOICE /C:YN IF ERRORLEVEL 2 GOTO END IF ERRORLEVEL 1 GOTO PREP :PREP @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@ SECTION: Prepare Hard Disk cls ECHO. ECHO **** PREPARE HARD DISK **** ECHO. diskpart /s %script_dir%\%format_c% @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@ SECTION: Apply Image to C: cls ECHO. ECHO **** APPLY IMAGE **** ECHO. diskpart /s %script_dir%\%set_recovery_letter% %script_dir%\imagex /apply %recovery_disk%\images\%image_name% 1 %local_disk% @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@ SECTION: Reboot computer cls ECHO. ECHO When you are ready to reboot the computer, pause ECHO **** REBOOT **** wpeutil reboot :END pause exit. unmount winre.wim : imagex.exe /unmount /commit c:\winremount INFO This should re-apply master_backup.wim to your C: without touching any other partition on your system. I have not done much testing however so if you would like to use this information and post reply's i would be grateful. I will reply with my findings too. I am also looking into the possibility of editing, backing up, or re-applying the mbr although i don't know much about it to be honest. Also to use the SELM function to use f11 or similar Sorry if this post is a wee bit hard to understand, i started, then added things, then changed things lol.
  3. I was wondering if recovery.exe was made using bat2exe file creator?? or something similar, would it be possible to get the source code for the recovery.exe??? also, is it possible to clean a partition without wiping the whole disk?? diskpart clean, cleans the whole disk, i want to keep the recovery partition and the storage partition and only re-apply the image to C:. I was thinking about backing up the mbr also, and add an option in recover.bat if need be??
  4. RE is disabled in the WAIK. True, I had to register in order to be able to download the OPK. http://oem.microsoft.com/downloads/C1EFA75...OPK_English.img try this link, dunno if it will work but worth a try eh?? I just registered and stored the target url
×
×
  • Create New...