Win10XPE - Build Your Own Rescue Media


  1. Posts : 123
    Windows 7 - Windows 10
       #1891

    In post-build, you can use XPEStartup.cmd or/and XPEStartup.ini, at Y:\ root
    They are called at startup, if if they exist, before explorer shell, via pecmd.ini

    The script is in Apps\System Tools\XPE Startup
      My Computer


  2. Posts : 89
    Windows 10
       #1892

    No no, I know about it, was asking about merging the registry though. Although the startup redirect script from pese works post shell, after startup or am I wrong? Kyhi did say about the Y:\Drivers too. Is there a similar method but for registry at pre-shell mode?
      My Computer


  3. Posts : 4,144
    Windows 3.1 to Windows 11
    Thread Starter
       #1893

    EXEC %WinDir%\System32\Regedit.exe /S Y:\Registry\Filename.reg

    When importing a .reg file - be sure the File Paths are correct - as we build Apps to X or Y and not C
    and we usually change the programs default program location
      My Computer


  4. Posts : 89
    Windows 10
       #1894

    EXEC %WinDir%\System32\CMD.exe /C "FOR %%F in ("Y:\Registry\*.reg") DO regedit /s "%%F""
    Does the job fine for multiple registry files. Might not work with some special characters in the name, although spaces and underscores work.

    EDIT: EXEC %WinDir%\System32\CMD.exe /C "FOR /R Y:\Registry\ %%F in ("*.reg") DO regedit /s "%%F""
    Added subfolder support.
    Last edited by Raex-D; 03 Oct 2020 at 05:47.
      My Computer


  5. Posts : 4,144
    Windows 3.1 to Windows 11
    Thread Starter
       #1895

    well it seems you solved your issue.....
      My Computer


  6. Posts : 123
    Windows 7 - Windows 10
       #1896

    Looks good, indeed. To be put in pecmd.ini or in XPEStartup.ini

    You can also add it in XPEStartup.cmd, if you wish: For %%F in ("Y:\Registry\*.reg") Do Regedit /s "%%F"
      My Computer


  7. Posts : 89
    Windows 10
       #1897

    Yeah it can go in either of those easily. I was only hesitant to use cmd since I had seen that you guys used powershell instead in the pese project to call forth multiple registry files. cmd has some bad habit sometimes to neglect spaces in variables. But it worked well on testing, so I was glad that I could use that instead.

    Worst case scenario, I would have then attempted to use powershell and replicate the plugin from pese for xpe. But it worked well, had no problems at all.
      My Computer


  8. Posts : 123
    Windows 7 - Windows 10
       #1898

    Your pese does not come from me, I wouldn't have done it in Powershell, I don't know it well enough.
      My Computer


  9. Posts : 4,144
    Windows 3.1 to Windows 11
    Thread Starter
       #1899

    It is a Bob.omb PESE Plugin... Thus would also require Powershell to be added to PESE build.... But again it was used in his distribution of a Pre-Made ISO to allow user modifications...

    Just like XPEStartup can be is external of build
      My Computer


  10. Posts : 89
    Windows 10
       #1900

    Oh yeah, I did see that part (it being Bob's plugin) when browsing the list of plugins on the site. My apologies. Also, I might not be aware of it if PESE wasn't your project initially perhaps, Chris. Sorry, came to the game late indeed and I just assumed you created it or at least are maintaining it now.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:58.
Find Us




Windows 10 Forums