Hi Jack,
The reason we check for a running task sequence is to ensure the installation runs in non-interactive mode if it is running in a task sequence (so as not to break the task sequence). OSDSetupHook.exe won't work as a check, because as you pointed out it only runs in WinPE. Software installations in the task sequence only happen outside WinPE in the full OS.
Cheers,
Seán
The reason we check for a running task sequence is to ensure the installation runs in non-interactive mode if it is running in a task sequence (so as not to break the task sequence). OSDSetupHook.exe won't work as a check, because as you pointed out it only runs in WinPE. Software installations in the task sequence only happen outside WinPE in the full OS.
Cheers,
Seán