Q:

Where on a bootable Windows PE USB drive should I put custom executables?

I have made a bootable flash drive with Windows PE edition corresponding to Windows 7. Now I want to add an executable file to the flash drive so that I can run it manually inside the PE environment. Where (what path) should I put it on the drive? Should it actually go inside the PE media/image?

A:

If the program won't ever need to be changed from within the PE environment, you might as well put it inside the Windows image (the mount folder if you're following the TechNet tutorial; all that stuff gets jammed into media\sources\boot.wim). That way, it will appear to be on the system drive and, like all the other stuff there, not persist across reboots. It doesn't really matter where you put the executable in there. I've seen people create subfolders in the Windows directory to hold third-party apps.
Usually, the Windows environment the flash drive boots to assigns a letter to the actual flash drive. If you need to modify the executable in the PE environment or put things next to it, you'll want to put the program on the drive after you get the PE stuff onto it.

