Post-Setup Install Location

GGBear1

New Member
Messages
13
Reaction score
1
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?

Thanks!
 

Attachments

  • PostInstall.jpg
    PostInstall.jpg
    68 KB
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 FolderWindows install Staging Folder
(Before logon)\sources\$OEM$\$$\Setup\FilesC:\Windows\Setup\Files
(After logon)\sources\$OEM$\$$\Setup\FilesUC:\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.

Capture.PNG
 
Thanks! So, the command I need would be C:\Windows\Setup\Files\setup.exe instead? Or is it automatically know where to find the setup.exe file?
 
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.
 
Back
Top