Using the TBWinRE builder, the option to modify the installed WinRE is greyed out for me. I need that in order to build using buildscript.cmd, to add apps to the TBLauncher. Any ideas how I can have that option be available to me?
Modify Installed WinRE
-
- Posts: 1740
- Joined: Fri Aug 12, 2011 12:51 am
Re: Modify Installed WinRE
The installed WinRE wasn't found. You would need to repair it (or maybe it just needs enabled) for the option to be available. The log file (TBWinPE.log) may show more information. Also see: https://www.terabyteunlimited.com/kb/kb ... ent-winre/
Note that buildscript.cmd can be used in any of the build types (isn't limited to updating the installed WinRE). I assume you are just wanting to use that specific build type.
Note that buildscript.cmd can be used in any of the build types (isn't limited to updating the installed WinRE). I assume you are just wanting to use that specific build type.
Re: Modify Installed WinRE
If that's the case, I have a bigger issue. My BuildScript.cmd is being ignored; none of my resulting build have any of the custom apps it should.
The enable script is ticked in the TBWinRE builder, and the locations of the custom lines have been verified as correct.@echo off
setlocal enableextensions enabledelayedexpansion
:: This script will be run during the build process to handle custom
:: build operations.
:: ----------------------------------------------------------------------------
:: Add script commands after this line
md "%TBWinPE_MountPath%\Program Files\CustomProg" 2> nul
robocopy "C:\Program Files\IFW\tbwinre\MyApps\Explorer++" "%TBWinPE_MountPath%\Program Files\Explorer++" /MIR
robocopy "C:\Program Files\IFW\tbwinre\MyApps\HBS" "%TBWinPE_MountPath%\Program Files\HBS" /MIR
:: Copy TBLauncher.ini to TBData
copy "%TBWinPE_ConfigPath%\TBLauncher.ini" "%TBWinPE_BuildPath%\ISO\TBData"
echo BuildScript running...
-
- Posts: 1740
- Joined: Fri Aug 12, 2011 12:51 am
Re: Modify Installed WinRE
Does the log show that it was run?
-
- Posts: 1740
- Joined: Fri Aug 12, 2011 12:51 am
Re: Modify Installed WinRE
You could pause the build (either in settings or use "pause" at the end of BuildScript.cmd) and then browse down the "mount" folder and see what's there. Just make sure to close out File Explorer before continuing so it doesn't block the build from unmounting. ("pause" in BuildScript.cmd only if not hiding the window.)
Not sure what you're trying to do with copying the Config folder's TBLauncher.ini file. If you want what's actually used in the build you would need to copy out "%TBWinPE_MountPath%\Windows\System32\TBLauncher.ini".
Not sure what you're trying to do with copying the Config folder's TBLauncher.ini file. If you want what's actually used in the build you would need to copy out "%TBWinPE_MountPath%\Windows\System32\TBLauncher.ini".
Re: Modify Installed WinRE
Here's the build log file, but I don't see where BuildScript.cmd was even called.
There's nothing in the resulting .wim to show that the "MyApps" dir was even mentioned either, which is needed.
It's for sure not running, because I put a "pause" command at the end of the script as well, with the windows not to be hidden. After enabling logging for buildscript.cmd I now get this line in the build log. I don't know what to do about it.
2024-08-20 14:18:42 - Info: Using BuildScript disabled for build
Code: Select all
2024-08-20 14:18:24 - ---------------------------------------------------------------------------
2024-08-20 14:18:24 - TBWinPE/RE Builder v1.40
2024-08-20 14:18:24 - Initializing
2024-08-20 14:18:24 - Windows version: Windows 11 Pro [10.0.22631.4037 23H2, x64]
2024-08-20 14:18:24 - Checking for required build files
2024-08-20 14:18:24 - Initialization complete
2024-08-20 14:18:25 - Verifying build requirements (TBWinRE)
2024-08-20 14:18:25 - Image for Windows 4.02a found: C:\Program Files\IFW
2024-08-20 14:18:25 - TBIView 4.61 found: C:\Program Files\IFW\TBIView
2024-08-20 14:18:25 - TBIMount 1.26 found: C:\Program Files\IFW\TBIView
2024-08-20 14:18:25 - TBOSDT 3.00 found (Professional for BootIt version): C:\Program Files\IFW\TeraByte OSD Tool Suite Pro
2024-08-20 14:18:25 - | BootIt Collection license key found in program settings
2024-08-20 14:18:25 - TBOSDT 3.00 found (Professional for BootIt version): C:\Program Files\IFW\TeraByte OSD Tool Suite Pro
2024-08-20 14:18:25 - Locating WinRE image
2024-08-20 14:18:26 - Warning: Unable to locate WinRE at installed location (Path: \) (0,0,0x3,0x1,0xF) (0x0)
2024-08-20 14:18:26 - Creating CD/UFD/ISO file layout Unable to locate WinRE at default locations.
2024-08-20 14:18:26 - Warning: Backup copy of winre.wim not found
2024-08-20 14:18:26 - Build source: User selected WinRE WIM (C:\Program Files\IFW\tbwinre\WinRE_Backup\WinRE_Source_001.wim)
2024-08-20 14:18:26 - WIM details (WinRE Source): C:\Program Files\IFW\tbwinre\WinRE_Backup\WinRE_Source_001.wim
2024-08-20 14:18:26 - | TBWinRE x64, Architecture: x64, Version: 10.0.18362.1, Service Pack: build 356, level 0
2024-08-20 14:18:26 - | TeraByte Program Versions: IFW=4.0.2.1;TBIView=0.4.61.0;TBIMount=1.0.26.0;TBIHD=0.0.0.0;TBOSDT=3.0.0.0-B;TBLauncher=1.37.0.0;
2024-08-20 14:18:26 - Warning: Selected WIM file is for an older build of Windows (10.0.18362.1)
2024-08-20 14:18:27 - Verification complete
2024-08-20 14:18:40 - Initializing plugins
2024-08-20 14:18:40 - | Remove cdboot files
2024-08-20 14:18:40 - | Dark version of TeraByte background
2024-08-20 14:18:41 - Plugin initialization complete
2024-08-20 14:18:42 - Creating TBWinRE build (IFW BootWIM)
2024-08-20 14:18:42 - Build ID: {94407F8A-6014-41CC-B2CB-F9E3E61B9E6E}
2024-08-20 14:18:42 - Build path: C:\Program Files\IFW\tbwinre
2024-08-20 14:18:42 - Info: Using BuildScript disabled for build
2024-08-20 14:18:42 - Initializing DISM (1,0)
2024-08-20 14:18:42 - Using x64 DISM (disabling use of DISM API)
2024-08-20 14:18:42 - DISM initialized (E)
2024-08-20 14:18:42 - Copying WinRE image
2024-08-20 14:18:43 - Mounting WinRE image
2024-08-20 14:18:47 - WinRE image file architecture: x64 [10.0.18362.1]
2024-08-20 14:18:47 - Setting time zone [Code: 8, (UTC-07:00) Arizona]
2024-08-20 14:18:49 - Configuring WinRE
2024-08-20 14:18:49 - Adding TBLauncher [1.37]
2024-08-20 14:18:50 - Adding Image for Windows [4.02a]
2024-08-20 14:18:50 - Adding TBIView [4.61]
2024-08-20 14:18:51 - Adding TBIMount [1.26]
2024-08-20 14:18:51 - Adding TeraByte OSD Tool Suite (Pro for BootIt) [3.00]
2024-08-20 14:18:51 - | Using BootIt Collection license key found in TBOSDT folder
2024-08-20 14:18:52 - Finalizing build
2024-08-20 14:18:53 - Processing plugin: Remove cdboot files
2024-08-20 14:18:54 - Processing plugin: Dark version of TeraByte background
2024-08-20 14:18:55 - Preparing installed drivers
2024-08-20 14:18:55 - Adding drivers
2024-08-20 14:18:56 - | Deployment Image Servicing and Management tool
2024-08-20 14:18:56 - | Version: 10.0.22621.2792
2024-08-20 14:18:56 - | Image Version: 10.0.18362.356
2024-08-20 14:18:56 - | Searching for driver packages to install...
2024-08-20 14:18:56 - | Found 2 driver package(s) to install.
2024-08-20 14:18:56 - | Installing 1 of 2 - oem2.inf: The driver package was successfully installed.
2024-08-20 14:18:56 - | Installing 2 of 2 - oem3.inf: The driver package was successfully installed.
2024-08-20 14:18:56 - | The operation completed successfully.
2024-08-20 14:18:56 - Cleaning up installed drivers
2024-08-20 14:18:56 - Build paused
2024-08-20 14:18:56 - User prompt: Continue
2024-08-20 14:19:03 - Build resumed
2024-08-20 14:19:03 - Saving WinRE image
2024-08-20 14:19:09 - Unmounting WinRE image
2024-08-20 14:19:22 - Optimizing WIM
2024-08-20 14:19:23 - Creating IFW BootWIM
2024-08-20 14:19:23 - Copy operation successful
2024-08-20 14:19:23 - IFW BootWIM file verified
2024-08-20 14:19:24 - Build process completed successfully
2024-08-20 14:22:30 - Program exiting with code 0
It's for sure not running, because I put a "pause" command at the end of the script as well, with the windows not to be hidden. After enabling logging for buildscript.cmd I now get this line in the build log. I don't know what to do about it.
2024-08-20 14:18:42 - Info: Using BuildScript disabled for build
-
- Posts: 1740
- Joined: Fri Aug 12, 2011 12:51 am
Re: Modify Installed WinRE
You're creating an IFW BootWIM build. IFW WinRE and IFW BootWIM builds will not run the scripts by default because they may prevent an automated build from completing without user intervention. However, you can override this by going into Settings, IFW WinRE tab, and enable the "Allow BuildScript to run" option.
Re: Modify Installed WinRE
Thanks! That solved by WinRE issue.