Correct path to copy a file to installation root dir?

BadHellie

Member
Messages
85
Reaction score
1
Hi, I need to inject an external file so that after installation it should be automatically placed in the system root (C:\). Unfortunately I don't understand which is the proper path I should enter for that in PostSetup (Copy File). I am not allowed to leave an empty Destination. If I put just "\" it does not work (the file is not copied anywhere). By default it is "\Windows\Setup\", but what if I want the file to be copied to C:\ ? Perhaps it is forbidden ? Thx
 
Oh I apologize. I read just now that passive files are simply deleted. Ignore this post.
 
You can copy files using the old fashioned method. On the extracted ISO folder:
Code:
mkdir sources\$OEM$\$1\
copy E:\path\some\file sources\$OEM$\$1\

sources\$OEM$\$1 -> C:
sources\$OEM$\$1\some\path -> C:\some\path
sources\$OEM$\$2 -> D:
sources\$OEM$\$$ -> C:\Windows

WinPE Setup searches for a "\sources\$OEM$" folder on the install media, and copies everything to their respective destinations.
 
Thanks, I wasn't aware of these details, I tried, it works magnificently :)
 
Last edited:
Back
Top