Jump to content

ZileXa

Member
  • Posts

    833
  • Joined

  • Last visited

  • Donations

    $0.00 

Everything posted by ZileXa

  1. It does, but as I said, when you actually play a media file, you will get a dialog to select which program to use. /regvid /regaud etc only makes sure that Media Player Classic appears in that list. You can of course select to remember your choice. If you want it to be the default selection (without dialog) you need to set it manually.
  2. Anyone can use Regshot, no need to post that here. I believe /regvid now works correctly so no need for Regshot: it will associate video files to MPC-BE. Only thing left for you to manually change in Settings is to change 1 thing: "play video files by default with.." That last part cannot be captured with Regshot, or it can but in Win10 a unique ID is generated for it so the registry entries are useless to reuse.
  3. It works for start menu. Not for taskbar because Microsoft removed the call the author is using. He is looking into it but said that there is no alternative in Win10 for the call he is using in the script. So there won't be a taskbar solution, Start menu only.
  4. It is possible now to unpin existing items from the Windows 10 Start menu and pin new items to it. But it is a hassle if you want your own Start menu layout because you will need to create unpin commands for each default pinned program first (after installation, there are a lot in there). I guess if you do it once, you never have to do it again. This script should also support pinning and unpinning to taskbar, but that part does not work unfortunately. https://github.com/npocmaka/batch.scripts/blob/master/hybrids/jscript/pinnerJS.bat in your CMD file, use (example): call pinnerJS.bat "%programdata%\Microsoft\Windows\Start Menu\Programs\Skype.lnk" startmenu or to remove: call pinnerJS.bat "%programdata%\Microsoft\Windows\Start Menu\Programs\Skype.lnk" unstartmenu Found via: http://stackoverflow.com/questions/32034313/how-to-pin-to-start-menu-using-a-batch-file-windows-10 I emailed the creator and left a message on stackoverflow, hopefully he can fix the taskbar issue.
  5. Again, that is *ONLY* for creating your own customized Windows Setup. My question/this topic is about applying a W10 Start Menu for existing users. Non-business laptops/computers will be upgraded to W10 for free by consumers. It does not make sense to create my own Win Setup, since I will never be able to use it. In order to get the free upgrade, a user must use the MS Upgrade tool or Windows Update. So I will never have the chance to use the solutions described on that page. That is really only for system administrators. I am helping people to upgrade (clean) and use Chocolatey (check chocolatey.org) to unattendedly install the necessary software, set some registry settings. This is 1 CMD file and 1 REG file. Perfect, but I still have to do the following manually: 1. create some basic Start Menu (setting up the tiles) 2. associating applications/set default app for.. (also cannot be done silently in W10) 3. Some application-specific settings
  6. Actually, according to the stealthpuppy-link you posted, ImportLayout only imports it into the Default user profile. And I checked, indeed a new file has been added in that profile! So C:\ probably did work! C:\Users\Default\AppData\Local\Microsoft\Windows\Shell\LayoutModification.xml The only question now is, how to get this applied for an existing user account..
  7. I tried several ways, it complains about %systemdrive%. If I simply use C:\ it does not throw an error. But the layout is not applied to my start menu, also not after a reboot. And I also tried exporting to xml instead of bin and importing xml, no difference. PS C:\> POWERSHELL -NonInteractive -Command Import-StartLayout -LayoutPath "C:\Users\zilex\Desktop\start.bin" -MountPath %SystemDrive%\Import-StartLayout : Cannot find path 'C:\%SystemDrive%\' because it does not exist.At line:1 char:1+ Import-StartLayout -LayoutPath C:\Users\zilex\Desktop\start.bin -Moun ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (C:\%SystemDrive%\:String) [Import-StartLayout], ItemNotFoundException + FullyQualifiedErrorId : PathNotFound,Microsoft.Windows.StartLayout.Commands.ImportStartLayoutCommandPS C:\> POWERSHELL -NonInteractive -Command Import-StartLayout -LayoutPath "C:\Users\zilex\Desktop\start.bin" -MountPath %SystemDrive%Import-StartLayout : Cannot find path 'C:\%SystemDrive%' because it does not exist.At line:1 char:1+ Import-StartLayout -LayoutPath C:\Users\zilex\Desktop\start.bin -Moun ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (C:\%SystemDrive%:String) [Import-StartLayout], ItemNotFoundException + FullyQualifiedErrorId : PathNotFound,Microsoft.Windows.StartLayout.Commands.ImportStartLayoutCommandPS C:\> POWERSHELL -NonInteractive -Command Import-StartLayout -LayoutPath "C:\Users\zilex\Desktop\start.bin" -MountPath C:\PS C:\>
  8. What is the deal with the Windows 10 Start Menu? All online guides explain you can export and import it by backing up some files, but these files do not exist anymore in the final version of Windows 10. I figured out a way to actually export the whole Start Menu layout by using this Powershell command: Open Powershell with admin rights (or click WIN+X, select "Command Prompt (Admin)", type powershell and hit enter): Export-StartLayout -Path C:\StartLayout.XMLThis works, the XML file actually contains the layout. But I do not know how to import it to an existing Win10 machine. This is the documentation from Microsoft: https://msdn.microsoft.com/en-us/library/windows/hardware/mt171092%28v=vs.85%29.aspx But this only works by importing the XML file into a Windows Image. Since most people simply install Windows via the free upgrade, I need a way to import it on an exisiting Win 10 installation. Any ideas?
  9. I noticed chocolatey is not mentioned in this forum. I wanted to make people here aware of the fact Chocolatey exists and it is absolutely perfect. They are still enhancing it, but this is the way to go, to install apps silently and keep them up to date. They could use help so if you are interested, have a closer look: https://chocolatey.org/
  10. That would only be practical for one or two filetypes. In Settings, Default Programs (the new Settings), you can select which program to use for video playback <--- that is the one I would like to modify to MPC-BE. But I understand after further reading, this is absolutely impossible. AutoIT would be the only way.. I don't feel like playing with AutoIT again, makes me feel like going back to 2008.
  11. Since there is no Win10 unattended subforum I am placing this here: How to set the default program by a command (CMD) or Powershell or registery modification? I have searched a lot and only found a way to associate files to specific programs, but that will only add them to the context menu list (Open With...>): @echo onassoc .mkv=MPC-BE.AssocFile.MKVftype MPC-BE.AssocFile.MKV=c:\Program Files\MPC-BE x64\mpc-be64.exe "%1"pauseThe command assoc creates the file type in the registry, the command ftype associates the program. In this example, "MPC-BE" is just a name that I use, you can also use "MPCHC or MPC or whatever, just as long as it matches the same you use in ftype command. But HOW can we set default program? I am particularly intested in: PDF, video files, image editor (Paint.net), 7z/zip. Paint.net silent install arguments do work, but the ones that set the file type associations do not work in Windows 10. (again, only added to the context menu "Open With..." not the context menu "edit". In win7 it worked flawlessly).
  12. @ZileXa: I cannot keep up with your process. Could you please clarify your some steps? 1. "ran GimageX (apply then Capture, do not press Append, press Create)": a. do you choose the same Source and Destination folders? b. It way create a .wim file, say 'my win7.wim'. 2. "Then ran VLite. When vLite finishes": Does it finish removing winsxs and other stuffs? 3. "I first copy files to the directory ($OEM$, apps, stuff and hotfix KB947821)": What files did you copy to what directory? Thank you in advance for your clarification. Sorry I haven't been around lately. After you finished with RT7Lite, you have a folder with all the stuff from your Windows image, but stripped down. Call it folder A. Now run GimageX, choose APPLY. Source folder is the install.wim file in a subfolder of folder A. Destination folder is a temporary folder you create on your desktop or whatever. Then CAPTURE, now select the folder from your desktop as source and the install.wim file from folder A as destination. After that finishes, use vLite with the ini files provided by me or first post. Modify stuff you want to keep/remove. After vLite finishes, you're done. In my case. I do not close vLite window yet. I also want to install applications silently during or after Windows Setup. Apps like Avira antivirus, SumatraPDF reader, Paint.net, Notepad2, Firefox, Office 10, CDBurnerXP, uTorrent, Xnview and other apps. Also I want to run a few cleanup commands, apply lots of settings and tweaks for Windows and these apps during setup. Therefore I copy the setup files of these applications, a batch file to install them, .reg file for settings/tweaks and a .7z file containing my preconfigured and clean Start menu. So I copy all of this to the root of the folder A. Then go back to the vLite window and create my ISO image. Hope thats enough info for you. Everything works here. The hotfix necessary for Windows Update to install all updates correctly takes hours to install but that doesn't matter just let it run when you go to bed.
  13. I haven't had time to do a new rebuild. Maybe tonight. The thing is, I have a slimmed down Windows image without WinSxS with Windows Update working via method 5 described in this topic. All works fine and I do not want to remove less components just because Sysprep doesn't like it.. I will do one more complete rebuild and add also your setting in the answer file. If that doesn't work, I'm just going to set all my usertweaks via RunOnce..
  14. Oh noo, I did so many rebuilds, not looking forward to that. But can you please explain what you mean by this: Since I am not slipstreaming IE9, this alternative method might work for me.
  15. In that case, why not simply use your "manual build process" (please enlighten me, I don't have a clue) and install IE9 unattendedly using Setupcomplete.cmd (wich will run right after useraccount creation but before first login)?
  16. I tested, without running any script batch or regfile. Just reboot and do immediate sysprep. Same error appeared. I think it has something to do with features I removed with RTLite/vlite (I removed WinSxS following this topic).
  17. I did some more testing but I am really stuck at this strange error. I tried running sysprep with less commands/switches or just doing it manually... enter oobe or enter audit mode it all gives me the same error.
  18. Investigated more, this command was not working: [code<Path>cmd /c "FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\UnattendedOOBE.xml SETX DVDRoot %i:"</Path> So I am using my own command tested a while ago in a different topic. That works. Now apps are installed! I am now stuck at an error when executing SYSPREP.EXE (see my post above) the final command in Pass Audit User. The system doesn't reboot, I see a small window with a progess bar, sysprep doing something. Then it disappears and nothing happens: <Path>C:\Windows\system32\sysprep\sysprep.exe /quiet /oobe /reboot /generalize /unattend:C:\AutoUnattendedOOBE.xml</Path> The logfile shows me the command is correct but it also shows a failure concerning a file called wevtapi.dll (the file is present in system32, I checked, 418KB. Version number 1.7600.16385). setuperr.log: 2011-04-22 15:02:53, Error [0x0f0082] SYSPRP LaunchDll:Failure occurred while executing 'C:\Windows\System32\wevtapi.dll,EvtIntSysprepCleanup', returned error code 15007[gle=0x00003a9f] 2011-04-22 15:02:53, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 15007[gle=0x00003a9f] 2011-04-22 15:02:53, Error [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep cleanup providers; hr = 0x80073a9f[gle=0x00003a9f] and setupact.log: 2011-04-22 15:02:53, Info SYSPRP ======================================================== 2011-04-22 15:02:53, Info SYSPRP === Beginning of a new sysprep run === 2011-04-22 15:02:53, Info SYSPRP ======================================================== 2011-04-22 15:02:53, Info [0x0f004d] SYSPRP The time is now 2011-04-22 15:02:53 2011-04-22 15:02:53, Info [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\sysprep\Panther 2011-04-22 15:02:53, Info [0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine 2011-04-22 15:02:53, Info [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything 2011-04-22 15:02:53, Warning SYSPRP WinMain: File operations pending 2011-04-22 15:02:53, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'QUIET' 2011-04-22 15:02:53, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'GENERALIZE' 2011-04-22 15:02:53, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'OOBE' 2011-04-22 15:02:53, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'REBOOT' 2011-04-22 15:02:53, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'UNATTEND' 2011-04-22 15:02:53, Info [0x0f004a] SYSPRP WaitThread:Entering spawned waiting thread 2011-04-22 15:02:53, Info [sysprep.exe] UnattendFindAnswerFile: Looking at explicitly provided unattend file [C:\AutounattendOOBE.xml]... 2011-04-22 15:02:53, Info [sysprep.exe] UnattendFindAnswerFile: [C:\AutounattendOOBE.xml] meets criteria for an explicitly provided unattend file. 2011-04-22 15:02:53, Info SYSPRP SysprepSearchForUnattend: Using unattend file at [C:\AutounattendOOBE.xml]. 2011-04-22 15:02:53, Info SYSPRP SysprepSearchForUnattend: [generalize] pass in unattend file [C:\AutounattendOOBE.xml] either doesn't exist or passed validation 2011-04-22 15:02:53, Info SYSPRP WinMain:Found unattend file at [C:\AutounattendOOBE.xml]; caching... 2011-04-22 15:02:53, Info SYSPRP WinMain:Processing unattend file's 'generalize' pass... 2011-04-22 15:02:53, Info SYSPRP Sysprep is running a generalize pass with the following unattend file: [%windir%\panther\unattend.xml] 2011-04-22 15:02:53, Info SYSPRP RunUnattendGeneralizePass: Sysprep unattend generalize pass exits; hr = 0x0, hrResult = 0x0, bRebootRequired = 0x0 2011-04-22 15:02:53, Info [0x0f00ac] SYSPRP WinMain:Processing 'cleanup' external provider request. 2011-04-22 15:02:53, Info [0x0f006c] SYSPRP RunExternalDlls:Running DLLs listed in registry for phase 3 2011-04-22 15:02:53, Info [0x0f008a] SYSPRP RunRegistryDlls:Retrieved section name for this phase as Cleanup 2011-04-22 15:02:53, Warning [0x0f008f] SYSPRP RunRegistryDlls:Registry key is either empty or malformed: SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\SysPrepExternal\Cleanup 2011-04-22 15:02:53, Info [0x0f00ad] SYSPRP WinMain:Processing 'generalize' extrenal provider request. 2011-04-22 15:02:53, Info [0x0f006c] SYSPRP RunExternalDlls:Running DLLs listed in registry for phase 1 2011-04-22 15:02:53, Info [0x0f008a] SYSPRP RunRegistryDlls:Retrieved section name for this phase as Generalize 2011-04-22 15:02:53, Warning [0x0f008f] SYSPRP RunRegistryDlls:Registry key is either empty or malformed: SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\SysPrepExternal\Generalize 2011-04-22 15:02:53, Info [0x0f003f] SYSPRP WinMain:Processing 'cleanup' internal provider request. 2011-04-22 15:02:53, Info [0x0f006c] SYSPRP RunExternalDlls:Running DLLs listed in registry for phase 3 2011-04-22 15:02:53, Info [0x0f008a] SYSPRP RunRegistryDlls:Retrieved section name for this phase as Cleanup 2011-04-22 15:02:53, Info [0x0f008b] SYSPRP RunRegistryDlls:Found entrypoint in registry at SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\SysPrep\Cleanup\{67196725-a666-73a6-a048-412e48a3b856}; will try to launch 'C:\Windows\System32\spopk.dll,Sysprep_Clean_Opk' 2011-04-22 15:02:53, Info [0x0f0080] SYSPRP LaunchDll:Found 'C:\Windows\System32\spopk.dll,Sysprep_Clean_Opk'; executing it 2011-04-22 15:02:53, Info [0x0f0081] SYSPRP LaunchDll:Successfully executed 'C:\Windows\System32\spopk.dll,Sysprep_Clean_Opk' without error 2011-04-22 15:02:53, Info [0x0f008b] SYSPRP RunRegistryDlls:Found entrypoint in registry at SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\SysPrep\Cleanup\{1e7f4452-a4b4-5a32-d01e-70397b096ced}; will try to launch 'sqmapi.dll,SqmSysprepCleanup' 2011-04-22 15:02:53, Info [0x0f0080] SYSPRP LaunchDll:Found 'sqmapi.dll,SqmSysprepCleanup'; executing it 2011-04-22 15:02:53, Info [0x0f0081] SYSPRP LaunchDll:Successfully executed 'sqmapi.dll,SqmSysprepCleanup' without error 2011-04-22 15:02:53, Info [0x0f008b] SYSPRP RunRegistryDlls:Found entrypoint in registry at SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\SysPrep\Cleanup\{2c8a362b-4dc1-38b9-c4d8-ce732ddcc48e}; will try to launch 'C:\Windows\System32\wevtapi.dll,EvtIntSysprepCleanup' 2011-04-22 15:02:53, Info [0x0f0080] SYSPRP LaunchDll:Found 'C:\Windows\System32\wevtapi.dll,EvtIntSysprepCleanup'; executing it 2011-04-22 15:02:53, Error [0x0f0082] SYSPRP LaunchDll:Failure occurred while executing 'C:\Windows\System32\wevtapi.dll,EvtIntSysprepCleanup', returned error code 15007[gle=0x00003a9f] 2011-04-22 15:02:53, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 15007[gle=0x00003a9f] 2011-04-22 15:02:53, Error [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep cleanup providers; hr = 0x80073a9f[gle=0x00003a9f] 2011-04-22 15:02:53, Info [0x0f004c] SYSPRP WaitThread:Exiting spawned waiting thread 2011-04-22 15:02:53, Info [0x0f0052] SYSPRP Shutting down SysPrep log 2011-04-22 15:02:53, Info [0x0f004d] SYSPRP The time is now 2011-04-22 15:02:53 Ideas anyone?
  19. Thanks I use a similar method now with RunOnce (starts a cmd file for every user) but the method I am testing (see post #39 and my post above yours) is much more *neat* and clean since tweaks and stuff will be applied to the default user, wich needs to be done only once.So I would really like this to work instead of going for a trick like I am using now.... I checked my xml above again for errors, couldnt find one :S
  20. Unfortunately, it was not a success. First there were many errors in my XML I spend a few hours finding them, creating an ISO and testing over and over again (I first checked the xml file in XMLspy to see if it was wellformed). Once the XML worked... Setup continued but after rebooting into sysprep, input was required! The InstallApps.cmd file was never called. See the screenshot below. Also when I selected "Audit Mode", checked "Generalize" and press OK I got an error message, see the second screenshot. I don't have a clue what went wrong. I assume the part of the xml settings pass "Audit User" is not being triggered after the system reboots into sysprep. So nothing happens unattendedly. Here is my Autounattend.xml: autounattend.xml <?xml version="1.0" encoding="utf-8"?> <!--This answer file generated by RT Seven Lite and completely modified by ZileXa--> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="windowsPE"> <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SetupUILanguage> <UILanguage>en-US</UILanguage> </SetupUILanguage> <InputLocale>0409:00020409</InputLocale> <UserLocale>nl-NL</UserLocale> <UILanguage>en-US</UILanguage> <SystemLocale>en-US</SystemLocale> </component> <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ImageInstall> <OSImage> <InstallFrom> <MetaData wcm:action="add"> <Key>/IMAGE/NAME</Key> <value>Windows 7 ULTIMATE</value> </MetaData> </InstallFrom> <WillShowUI>OnError</WillShowUI> </OSImage> </ImageInstall> <UserData> <ProductKey> <Key>REMOVEDBYME</Key> <WillShowUI>OnError</WillShowUI> </ProductKey> <AcceptEula>true</AcceptEula> </UserData> </component> </settings> <settings pass="oobeSystem"> <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SystemLocale>en-US</SystemLocale> <UILanguage>en-US</UILanguage> <UserLocale>0409:00020409</UserLocale> </component> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <UserAccounts> <LocalAccounts /> </UserAccounts> <OOBE> <NetworkLocation>Home</NetworkLocation> <HideEULAPage>true</HideEULAPage> <ProtectYourPC>3</ProtectYourPC> <HideWirelessSetupInOOBE>false</HideWirelessSetupInOOBE> <SkipMachineOOBE>false</SkipMachineOOBE> <SkipUserOOBE>false</SkipUserOOBE> </OOBE> <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet> <TimeZone>W. Europe Standard Time</TimeZone> <VisualEffects> <FontSmoothing>ClearType</FontSmoothing> </VisualEffects> </component> <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" 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> <settings pass="specialize"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <CopyProfile>true</CopyProfile> </component> <component name="Microsoft-Windows-Security-Licensing-SLC-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SkipAutoActivation>true</SkipAutoActivation> </component> </settings> <settings pass="auditUser"> <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <RunSynchronous> <RunSynchronousCommand wcm:action="add"> <Order>490</Order> <Description>Set Path For DVD</Description> <Path>cmd /c "FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\UnattendedOOBE.xml SETX DVDRoot %i:"</Path> </RunSynchronousCommand> <RunSynchronousCommand wcm:action="add"> <Order>495</Order> <Description>Install apps and regtweaks</Description> <Path>cmd /c %DVDRoot%\InstallApps.cmd</Path> </RunSynchronousCommand> <RunSynchronousCommand wcm:action="add"> <Order>500</Order> <Description>Reboot into OOBE With Unattend lacking reseal</Description> <Path>C:\Windows\system32\sysprep\sysprep.exe /quiet /oobe /reboot /generalize /unattend:%DVDRoot%\UnattendedOOBE.xml</Path> </RunSynchronousCommand> </RunSynchronous> </component> </settings> </unattend> autounattend.xml
  21. Thanks for all the help. I finally managed to create my stripped Windows 7 SP1 Ultimate x64 and removed WinSxS. I ran RT7Lite, did not create ISO, ran GimageX (apply then Capture, do not press Append, press Create). Then ran VLite. When vLite finishes, I first copy files to the directory ($OEM$, apps, stuff and hotfix KB947821). Then go back to the vLite window and create an ISO image. Tested using VMWare. After Setup completed I manually installed the hotfix, that takes a whole night! And then ran Windows Update. I noticed only 1 update could not be installed so I did the whole thing again this time integrating that one update with RT7Lite. Also I did not remove Japanese with vLite. Office 2010 installed flawlessly. Using your settings, Japanese is selected for removal. I get an error during Office 2010 setup and there is no ignore button. So no other choice then to keep Japanese. Thanks for your help I am now moving on to installing apps and tweaks and pin items to startmenu/taskbar for the Default User Profile so they will apply for all users in the future. Then my unattended Win7 adventure is finally over. Hopefully Windows 8 will be quite similar to Windows 7 Setup! My presets to remove WinSXS and useless stuff.zip
  22. Completely edited this post because I understand it much better now! 1. AutoUnattend.xml will be used first by Windows Setup. 2. By using this command, Setup reboots into Sysprep mode and AutoUnattend.xml is still being used by setup after the reboot (this was where you lost me, I thought UnattendOOBE.xml kicked in after this reboot, thats not the case): <settings pass="oobeSystem"> <component name="Microsoft-Windows-Deployment"> <Reseal> <Mode>Audit</Mode> </Reseal> </component> </settings> 3. Also, this code is needed to make sure everything that happens after the above mentioned reboot-into-sysprep will be copied to the defaultprofile: <settings pass="specialize"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" /> <component name="Microsoft-Windows-Security-Licensing-SLC-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SkipAutoActivation>true</SkipAutoActivation> </component> <component name="Microsoft-Windows-Shell-Setup"> <CopyProfile>true</CopyProfile </component> </settings> 4. So Setup has rebooted and is in sysprep state. Setup will now look at settings pass auditUser and perform the commands there (Setup is still reading AutoUnattend.xml): <settings pass="auditUser"> <component name="Microsoft-Windows-Deployment"> <RunSynchronous> <RunSynchronousCommand wcm:action="add"> <Order>490</Order> <Path>cmd /c "FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\UnattendedOOBE.xml SETX DVDRoot %i:"</Path> <Description>Set Path For DVD</Description> </RunSynchronousCommand> <RunSynchronousCommand wcm:action="add"> <Order>495</Order> <Description>Install apps and HKCU + HKLM regtweaks</Description> <Path>cmd /c %DVDRoot%\InstallAppsTweaks.cmd</Path> </RunSynchronousCommand> <RunSynchronousCommand wcm:action="add"> <Order>500</Order> <Description>Reboot into OOBE With Unattend lacking reseal</Description> <Path>C:\Windows\system32\sysprep\sysprep.exe /quiet /oobe /reboot /generalize /unattend:%DVDRoot%\UnattendedOOBE.xml</Path> </RunSynchronousCommand> </RunSynchronous> </component> </settings> 5. Note the final command in the code above, Setup will reboot again. After reboot Setup will no longer use AutoUnattend.xml. Instead UnattendedOOBE.xml is used. UnattendedOOBE.xml is an exact copy of AutoUnattend.xml but it misses the code from step (1) therefore, the code in step (4) is completely ignored. --> Is this correct? --> Is it safe to leave the code from step 3 in UnattendedOOBE.xml? Since it's a copy of AutoUnattend minus the code in step (1). --> I still wonder how and when everything is copied to the default user since you reboot again at the end of step (4), not giving the system any chance to copy everything to the default profile! (edit: btw I am NOT modifying WIM before I create my ISO image. All the setupfiles/installers of my apps are in %dvdroot%\Apps and I use a .cmd file to install them silently, clean up start menu, copy predefined startmenu, add pins to taskbar/startmenu and run a regtweaks.reg file). So I rebuilding indexes doesnt apply here.) Please note before replying this post has completely been modified (I tend to read a message in my mail, come to the forum and immediately start my response without noticing changes to the post I am replying to).
  23. Actually, I just ran another test and I am asked to create a user before setupcomplete.cmd is executed. It is executed after creating a user account but before that user logs in. Since I now finally have a stable stripped down Win7 x64 Ultimate image without WinSxS I am going to test SmokingRope's method Will report later.
  24. Here are my ini/inf files. I used your sp1_v2 and modified it to my needs. It shouldn't make such a big difference right? I get the error message I posted above. setuperr.log says something about cmiadapter\installers.cpp not found and a file that is suppose to be in windows\winsxs\. Perhaps I should just do method 6 (just select winsxs for removal in RT7Lite, don't use GimageX and VLite but not sure wich updates will work and wich won't work.. Customized SP1_v2.7z


×
×
  • Create New...