none
Customize USB memory stick inf driver with a personalized icon RRS feed

  • Question

  • A long time i have used with WINXP a little driver to have a nice personalized icon

    I decided to try to do the same with windows 10 ... a little challenge.

    Pre-requisites:

    1 - I can do an icon file

    2 - I know how to do a certificat for self-signed driver , make a cat file and sign the driver and import the certificate to other computers ...

    3 - I can do a Device Metadata Packages.

    --

    What i want to do is do as i had done with windows XP and see the icon of the key in the Explorer (My Computer) by making a small inf file but also incorporate the ability to automatically place a file for a device that will store metadata appear this icon in devices and printers.

    At this time i search to copy automaticly the devicemetadata file

    --

    Here is my little inf file:

    ------------------------

    ;
    ; Drivers clé USB With Icon by F5BJR Corp 
    ;
    ;Replace Transcend Black 2GB by your KeyName and Icon
    ;Replace 918acfbf-b6ba-4e69-a997-56f58b7bbd04  ( .devicemetadata-ms ) by your devicemetadata-ms file
    ;Replace USB\VID_058F&PID_6387 by your DeviceID

    [Version]
    Signature   = "$WINDOWS NT$"
    Class       = USB 
    ClassGuid={36FC9E60-c465-11cf-8056-444553540000}
    Provider    = "F5BJR Corp"
    DriverVer   = 10/03/2015,10.0.0.2
    CatalogFile = Transcend Black 2GB.cat

    [DestinationDirs]

    COPYMETADATA_EN = 24, \ProgramData\Microsoft\Windows\DeviceMetadataStore\EN-US ;

    [SourceDisksNames.x86]
    1=%DiskString%,"Transcend Black 2GB.ico",,
    2 = %DiskString%,,,\MetadataPackage ;
    [SourceDisksNames.amd64]
    1=%DiskString%,"Transcend Black 2GB.ico",,
    2 = %DiskString%,,,\MetadataPackage ;

    [SourceDisksFiles]
    4b2e9561-cbbb-4e6e-b79a-659873914a64.devicemetadata-ms= 2,, ;A metadata package file for EN-US
    Transcend Black 2GB.ico = 1

    ;--------- Device Metadata Section ---------------------------------------------------
    [COPYMETADATA_EN]
    4b2e9561-cbbb-4e6e-b79a-659873914a64.devicemetadata-ms,,,0x00000800 ;COPYFLG_NODECOMP

    [F5BJR-KEYDev.CopyFiles]
    Transcend Black 2GB.ico

    [DestinationDirs]
    COPYMETADATA_EN-US = 24, \ProgramData\Microsoft\Windows\DeviceMetadataStore\EN-US ;

    [ControlFlags]
    ExcludeFromSelect = *

    [Manufacturer]
    %F5BJR-KEY%=F5BJR-KEY, NTamd64

    [F5BJR-KEY]
    %DeviceName% = F5BJR-KEYDev.Install, %DeviceID%

    [F5BJR-KEY.NTamd64]
    %DeviceName% = F5BJR-KEYDev.Install, %DeviceID%

    [F5BJR-KEYDev.Install.NT]
    Include=usbstor.inf
    Needs=USBSTOR_BULK.NT
    CopyFiles=F5BJR-KEYDev.CopyFiles
    CopyFiles=COPYMETADATA_EN

    [F5BJR-KEYDev.Install.NT.Services]
    Include=usbstor.inf
    Needs=USBSTOR_BULK.NT.Services

    [F5BJR-KEYDev.Install.NT.HW]
    AddReg=F5BJR-KEYDev.Customize

    [F5BJR-KEYDev.Customize]
    HKR,, Label, 0x10000, "Transcend Black 2GB"
    HKR,, Icons, 0x10000, "Transcend Black 2GB.ico"
    HKR,, NoMediaIcons, 0x10000, ""

    [Strings]
    DeviceName        = "Transcend Black 2GB"
    DeviceID          = "USB\VID_058F&PID_6387"
    DiskString        = "F5BJR Driver installation disk"
    DriverSet         = "F5BJR Drivers"
    F5BJR-KEY         = "F5BJR"

    REG_EXPAND_SZ = 0x00020000
    REG_DWORD = 0x00010001


    • Edited by F5BJR Wednesday, October 7, 2015 9:55 PM
    Tuesday, September 22, 2015 9:42 AM