If I add an executable on the Post-Setup > Before Log On > File, where is that copied to on the ISO? Does it need to be an MSI file? How do I tell it to copy the files to the C:\ drive of the new install?
When you Add / File from Post-Setup, NTLite will create the $OEM$ staging folder on the ISO, and copy your script or installer file under one of two folders.
ISO Staging Folder
Windows install Staging Folder
(Before logon)
\sources\$OEM$\$$\Setup\Files
C:\Windows\Setup\Files
(After logon)
\sources\$OEM$\$$\Setup\FilesU
C:\Windows\Setup\FilesU
When WinPE Setup runs, it copies everything under the $OEM$ folder to their respective target directories. The files are immediately available for use after WinPE exits, and reboots into the installed Windows.
NTLite adds script commands in the SetupComplete.cmd to clean up Setup\Files when the script ends, and a scheduled clean up task for Setup\FilesU.
To copy a raw file without trying to execute it, then: Add / File(Before logon). Change the Type from Background to Copy.
When you add an installer or script file, NTLite will do two things:
- Copy the file to the ISO's $OEM$ folder, so WinPE automatically copies it to a temporary Windows folder
- Calls the destination file with your (optionally) provided arguments list
You don't have to keep track of where the file goes, unless you need to keep a copy after Post-Setup is done. The staged copy will be deleted. Just add the file or script, and provide any command line options that are needed.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.