PRB: Component Name Not Complete After Importing KDF File into Target Designer (251293)



The information in this article applies to:

  • Microsoft Windows NT Embedded 4.0

This article was previously published under Q251293

SYMPTOMS

When you create a component definition file (.kdf file) in Component Designer, do not use a name that contains commas for the Component Definition File Header node (the main node of the component definition file in component Designer). Although the name (including the comma) is saved in the .kdf file under the header section exactly how you typed it, when you later open the .kdf file in Component Designer, only the characters before the first comma are read and displayed as the Component Definition File Header node.

CAUSE

This problem occurs because the underlying database that holds the component definitions is accessed through SQL statements. The comma is a list separator in SQL. Therefore, any text that appears after the comma is a separate item. Because Component Designer handles only one Component Definition File at a time, only the text before the first comma is referenced as the name for Component Definition File Header.

RESOLUTION

Rename the component, excluding the comma (,).

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section of this article.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Enter the following text into a file named Badtest.kdf:
    [Version]
    Signature = "$Windows NT$"
    KdfVersion = 1
    
    [Header]
    Name = Bad Character, Test
    Version = 1.0
    ReleaseDate = 03/04/2000
    Vendor = Microsoft
    OS = WINNT
    OSVersion = 4.0
    Platform = i386
    Repository = "%WINNT%"
    Description = "Test of bad characters"
    CodePage = 1252
    
    [Capabilities]
    1 = "BadTest", %ROOT%\Applications\Add-Ins
    
    [Components]
    1 = "Test", "Contains commas", 1
    
    [CapabilityDependencies]
    
    [CapabilityComponentDependencies]
    
    [ComponentCapabilityDependencies]
    
    [ComponentDependencies]
    
    [Directories]
    
    [Test.Files]
    
    [Test.RegistryAdditions]
    					
  2. In Target Designer, on the Tools menu, click Component Management.
  3. In the Component Management dialog box, click Add.
  4. Select the Badtest.kdf file that was created in step 1, and then click OK.
The resulting component list contains the component name "Bad Character" rather than "Bad Character, Test".

Modification Type:MajorLast Reviewed:1/15/2004
Keywords:kbprb KB251293 kbAudDeveloper