The BuildScript is also supported in Builder so you don't need to be running the command line version. The \Profiles folder I suggested is "inside" the build (not in the C:\tbwinre folder). Also, you didn't say if you could scan and connect to the network so we know that part is working.
Is there a reason why you're not just exporting the profiles? Do you have Wi-Fi profiles on the system you're using to create the build that you don't want exported? Otherwise, I don't see why you're not using the easy method of putting the .xml files in the build folder and using the export option. This will copy them into the build automatically. However, both methods are shown below (use the one you prefer).
Here are the steps to copy the .xml profiles into the build using the export option:
1. Put the .xml files into the build's folder (C:\tbwinre). The filenames should start with "Wi-Fi" (they won't be included otherwise).
2. Run TBWinPE/RE Builder.
3. Open Settings (File menu, Settings).
4. On the Build Options tab, enable the "Export Wi-Fi profiles" option.
5. On the TBLauncher tab, enable the "Run Wi-Fi initialization" and "Run network initialization" options. Disable the "Run initialization programs in background" option.
6. Click OK to save the change.
7. Create the build.
8. Check Builder's log (TBWinPE.log) and verify the profiles were successfully copied into the build.
Here are the steps to use the BuildScript to copy in the profile files:
1. Put the .xml files into the build's folder (C:\tbwinre). The filenames should start with "Wi-Fi" (they won't be included otherwise).
2. Run TBWinPE/RE Builder.
3. Open Settings (File menu, Settings).
4. On the TBLauncher tab, enable the "Run Wi-Fi initialization" and "Run network initialization" options. Disable the "Run initialization programs in background" option.
5. On the Scripts tab, enable the "Use BuildScript.cmd" option. Then click the "Edit" link to open the script in Notepad.
6. At the end of the file, add the command lines to copy the profile files into the build. For example, the following two commands will create the \Profiles folder and copy all Wi-Fi*.xml files into it:
Code: Select all
md "%TBWinPE_MountPath%\Profiles"
copy "%TBWinPE_BuildPath%\Wi-Fi*.xml" "%TBWinPE_MountPath%\Profiles"
7. Save the file and exit Notepad.
8. Click OK to save the Settings changes.
9. Create the build.
Note that profiles copied in this way will not be available in TBLauncher's menu. You will need to manually add and connect them using InitScript or the Command Prompt as detailed in the previous post.