The amount of information that SetupAPI records in the SetupAPI log file depends on the logging level. You can choose the types of errors to log, the verbosity of the messages, and whether to log information to a debugger as well as to the log file. (You can also turn off logging altogether.) You can set the logging level for all device-installation programs or for individual ones.
To set the logging level for all device-installation programs If the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup registry subkey does not contain a LogLevel entry, create one as a new REG_DWORD value.
Set the value of the LogLevel entry to the logging level that you want.