graham6282

Member
  • Content count

    12
  • Joined

  • Last visited

Community Reputation

0 Neutral

About graham6282

  • Birthday 02/06/1982

Contact Methods

  • MSN
    graham6282@hotmail.com
  • Website URL
    http://
  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
  5. That is a good question and one i have had trouble looking up, i wonder if you have tested if it works yet??? I am currently doing a laptop, with all apps installed, and drivers and with windows activated, although i let it run into windows after sysprep and shutdown. It never stored all the changes and it even asked for the key (i double checked i put that in there lol), once i got back into windows, for some reason, windows was activated?? Must store the reg key or something?? Anyways, i wanted to use the image for another computer but i wondered if it would keep the drivers installed?? or not?? also since it asks for the key, i was thinking of entering a different key for the other computer, but one thing gets me. Windows was activated?? If it stores that info, what other info has it stored that might corrupt the installation, or at least cause problems in the future, or performance issues. I will try it, but have got a few things to do over the next few days so might not be this week so would be nice if you could leave feedback on what you done and if any errors occurred. Cheers edit: Actually, just thought, will have something to do with passes, so if you use settings at /generalize, then they WILL be applied. Don't know when specialize is run, but oobe is obviously not run until first login. Will look that up actually
  6. Yes i could but i wanted to make a disc for someone, let them put it in the computer and for it to do it itself, without me having to be there.
  7. soz glimmerman, i'm not that advanced at this lol, http://www.tipandtrick.net/2008/install-wi...with-retail-cd/ This tells you that you can skip entering the key with sp3, but how do you get it to click next and no??? Thanks for the reply though glimmerman, hopefully i can understand a bit more of that stuff at a later date
  8. Did you look at the oobeinfo.ini answer file? You can put some things into that answer file too.
  9. I have left all the information in the UserData section in the answer file blank which means the name and key are not on the disc. It asks for the key during install, thats what i am trying to get rid of, you start installation.... wait till it pops up asking for the key, then wait for installation to finish. I wanted to be able to ask the user to enter the details before installation commences and for it to hold it in memory until the information is needed, no need for a memory stick or anything, just get input from the user from the keyboard. Thanks for the reply though.
  10. I am making up xp home and xp pro discs that are fully unattended except i edit winnt.sif so that the [userData] is no longer complete, so xp setup asks for the key. I was wondering if there was a way to ask for the product key before installation starts and to add it to winnt.sif so that it goes through setup without asking any questions at all. I have made lite versions of xp home and pro and i am also looking to make a cd with both versions on it. Both versions are under 350mb.
  11. I am not 100% sure about this but you can use ref.chm file to see info for all answer files. from the xp cd, go to SUPPORT\TOOLS\DEPLOY.CAB and extract the .cab file you will have ref.chm there and setupmgr.exe for unattended installs. Hope this helps.
  12. Hi folks, i was wondering if it was possible to edit the microsoft cd boot image, i wanted to add some links to extra items i have added to the cd (for others to install if they would like to). I have got easyboot but i wanted to change the microsoft image directly so that i didn't have to start from nothing. Any help would be greatly appreciated. 1 other thing though, i wanted to be able to ask the user to enter their product key before installation so that it is a fully unattended install, except for inserting the key. I thought with XP sp3 you didn't have to enter the key but have tried to install without the key and it comes up asking for it. Please help lol Cheers