HOWTO: Enable Debug Output for OEMSetup.inf Scripts

Last reviewed: March 11, 1998
Article ID: Q126419
The information in this article applies to:
  • Microsoft Win32 Device Development Kit (DDK) for Windows NT, versions 3.5, 3.51, 4.0

SUMMARY

This article explains how to use debugging output for OEMSetup.inf scripts in Windows NT version 3.5 or 3.51.

MORE INFORMATION

Insure that all changes, including debug strings, are within the INF sections. If they are not included within the INF sections, the setup program cannot parse the .inf file. You need to do the following in the script:

  1. Add the following statement to the beginning of the InstallOption section:

    set !G:DebugOutputControl = 1

    This will set a global variable in the script parser that indicates to the system that it should print out and debug the output statements that it encounters.

  2. Add necessary debug-output statements to display the information you want. These statements should have the following format:

    debug-output "INF-name: Information to be displayed goes here"

Windows NT version 4.0 has introduced a new format for the OEMSetup.inf scripts. Refer to the Windows NT DDK version 4.0 documentation for details on the new layout.


Additional query words: debugging setup
Keywords : NTDDKSetup
Version : WINNT:3.5,3.51,4.0;
Platform : winnt


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 11, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.