; Copyright (c) 2001 [Version] Signature="$Windows NT$" Class=USB ClassGUID={36FC9E60-C465-11CF-8056-444553540000} provider=%STM% LayoutFile=LAYOUT.INF DriverVer=07/07/2002 [ControlFlags] ExcludeFromSelect = * [Manufacturer] %MfgName%=STM,NTx86.5.1 ; Win2000 installation [STM] %VID3662&PID6301.DeviceDesc%=USBMSD_2000,USB\%VIDPID% ; WinXP and later installation [STM.NTx86.5.1] %VID3662&PID6301.DeviceDesc%=USBMSD_XP,USB\%VIDPID% [PreCopySection] HKR,,NoSetupUI,,1 ;************************************************ ; Files and destinations ;************************************************ [DestinationDirs] USBMSD.CopyList = 10, system32\drivers ShellExtension_2000.CopyList = 10, system32\%SUBDIR% ShellExtension_XP.CopyList = 10, system32\%SUBDIR% NTMAP.CopyList = 10, system32\drivers [SourceDisksNames] 1="Leading Driver Installation Disk",,, [SourceDisksFiles] USBMSD.sys=1 MSDShell.dll=1 MSDServ.dll=1 MSDIconsAndLabels.exe=1 [USBMSD.CopyList] USBMSD.SYS,,,4 [ShellExtension_2000.CopyList] MSDShell.dll,,,4 MSDServ.dll,,,4 MSDIconsAndLabels.exe,,,4 ;*************************************************************** ; Install specific for Win2000 and common stuffs ;*************************************************************** [USBMSD_2000.NT] CopyFiles=USBMSD.CopyList,ShellExtension_2000.CopyList AddReg=USBMSD.AddReg,USBMSD.AddReg2,USBMSD_2000.AddReg3,ShellExtension.AddReg [USBMSD.AddReg] HKR,,DriverFlags,0x00010001,0x00000001 HKR,,Security,0,None [USBMSD.AddReg2] ; Card Types which need special formats HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&SMCStorage,SpecialFormatNeeded,,"SSFDC" HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&SMFStorage,SpecialFormatNeeded,,"SSFDC" HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&MSStorage, SpecialFormatNeeded,,"SONYSTICK" ;============================================================================================================================== ; Licence keys ; - Device VID3662, PID6301 HKLM,System\CurrentControlSet\Services\{1477DC20-2828-11d5-95D7-0050041B1E9F},33dc3b85219f7ca1,,"" ;============================================================================================================================== [ShellExtension.AddReg] ; Shell extension for format applet and property sheet ; - COM object HKCR,CLSID\{16871AC2-EAFF-11D4-94D8-0050041B1E9F},,,%SHELLEXTNAME% HKCR,CLSID\{16871AC2-EAFF-11D4-94D8-0050041B1E9F}\ProgID,,,%PROGID1% HKCR,CLSID\{16871AC2-EAFF-11D4-94D8-0050041B1E9F}\VersionIndependentProgID,,,%PROGID% HKCR,CLSID\{16871AC2-EAFF-11D4-94D8-0050041B1E9F}\InprocServer32,,,"%10%\system32\%SUBDIR%\MSDShell.dll" HKCR,CLSID\{16871AC2-EAFF-11D4-94D8-0050041B1E9F}\InprocServer32,ThreadingModel,,"Apartment" HKCR,CLSID\{16871AC2-EAFF-11D4-94D8-0050041B1E9F}\TypeLib,,,%TYPELIBCLSID% HKCR,STFormatApplet.CtxMenuExt.1,,,%SHELLEXTNAME% HKCR,STFormatApplet.CtxMenuExt.1,CLSID,,%SHELLEXTCLSID% HKCR,STFormatApplet.CtxMenuExt,,,%SHELLEXTNAME% HKCR,STFormatApplet.CtxMenuExt,CLSID,,%SHELLEXTCLSID% HKCR,STFormatApplet.CtxMenuExt,CurVer,,%PROGID1% ; - Registration to Drive object type HKCR,Drive\shellex\ContextMenuHandlers\%SHELLEXTNAME%,,,%SHELLEXTCLSID% HKCR,Drive\shellex\PropertySheetHandlers\%SHELLEXTNAME%,,,%SHELLEXTCLSID% [USBMSD_2000.AddReg3] ; Drive icons ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Run,MSDIconsAndLabels,,"rundll32 %10%\system32\%SUBDIR%\MsdServ.dll,Start %10%\system32\%SUBDIR%\MSDIconsAndLabels.exe" ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce,MSDIconsAndLabels,,"rundll32 %10%\system32\%SUBDIR%\MsdServ.dll,Start %10%\system32\%SUBDIR%\MSDIconsAndLabels.exe" ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&SMCStorage,Icons,0x10000,"%10%\system32\drivers\usbmsd.sys,-107" ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&SMCStorage,Label,, %SMC_LBL% ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&MMCStorage,Icons,0x10000,"%10%\system32\drivers\usbmsd.sys,-108" ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&MMCStorage,Label,, %MMC_LBL% ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&CFStorage, Icons,0x10000,"%10%\system32\drivers\usbmsd.sys,-109" ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&CFStorage,Label,, %CF_LBL% ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&SDStorage, Icons,0x10000,"%10%\system32\drivers\usbmsd.sys,-110" ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&SDStorage,Label,, %SD_LBL% ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&MSStorage, Icons,0x10000,"%10%\system32\drivers\usbmsd.sys,-213" ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&MSStorage,Label,, %MS_LBL% ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&SMFStorage,Icons,0x10000,"%10%\system32\shell32.dll,-13" ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&SMFStorage,Label,, %SMF_LBL% ; Windows 2000 Service Install Sections [USBMSD_2000.NT.Services] Addservice = USBMSD, 0x00000002, USBMSD.AddService ; Remove old service which used to be used for icons and drive labels DelService = MSDIconsAndLabels [USBMSD.AddService] DisplayName = %USBMSD.SvcDesc% ServiceType = 1 StartType = 3 ErrorControl = 1 ServiceBinary = %12%\USBMSD.SYS ;*************************************************************** ; Install specific for WinXP ;*************************************************************** [ShellExtension_XP.CopyList] MSDShell.dll MSDServ.dll [USBMSD_XP] CopyFiles=USBMSD.CopyList,ShellExtension_XP.CopyList AddReg=USBMSD.AddReg,USBMSD.AddReg2,USBMSD_XP.AddReg3,ShellExtension.AddReg [USBMSD_XP.AddReg3] ; Drive icons ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&SMCStorage,Icons,0x10000, "%10%\system32\shell32.dll,-308" ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&SMCStorage,NoMediaIcons,0x10000, "%10%\system32\drivers\usbmsd.sys,-308" ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&SMCStorage,Label,, %SMC_LBL% ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&MMCStorage,Icons,0x10000, "%10%\system32\shell32.dll,-307" ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&MMCStorage,NoMediaIcons,0x10000, "%10%\system32\drivers\usbmsd.sys,-307" ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&MMCStorage,Label,, %MMC_LBL% ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&CFStorage, Icons,0x10000, "%10%\system32\shell32.dll,-303" ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&CFStorage, NoMediaIcons,0x10000, "%10%\system32\drivers\usbmsd.sys,-303" ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&CFStorage,Label,, %CF_LBL% ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&SDStorage, Icons,0x10000, "%10%\system32\shell32.dll,-307" ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&SDStorage, NoMediaIcons,0x10000, "%10%\system32\drivers\usbmsd.sys,-307" ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&SDStorage,Label,, %SD_LBL% ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&MSStorage, Icons,0x10000, "%10%\system32\drivers\usbmsd.sys,-212" ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&MSStorage, NoMediaIcons,0x10000, "%10%\system32\drivers\usbmsd.sys,-1212" ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&MSStorage,Label,, %MS_LBL% ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&SMFStorage,Icons,0x10000, "%10%\system32\shell32.dll,-13" ;HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\%VIDPID%&SMFStorage,Label,, %SMF_LBL% ; Windows XP Service Install Sections [USBMSD_XP.Services] Addservice = USBMSD, 0x00000002, USBMSD.AddService ;*************************************************************** ; Strings ;*************************************************************** [Strings] STM = "Leading Driver" MfgName = "Leading Driver" VIDPID = "Vid_3662&Pid_6301" VID3662&PID6301.DeviceDesc = "USB Mass storage Device" SMC_LBL = "Leading Driver" ;MMC_LBL = "MultiMedia Card" ;CF_LBL = "CompactFlash Card" ;SD_LBL = "Secure Digital Card" ;MS_LBL = "Memory Stick" ;SMF_LBL = "Embedded Flash" SUBDIR ="ShellExt" SHELLEXTNAME ="STMicroelectronics Mass Storage Shell Extension Class" PROGID1 ="STFormatApplet.CtxMenuExt.1" PROGID ="STFormatApplet.CtxMenuExt" TYPELIBCLSID ="{16871AB5-EAFF-11D4-94D8-0050041B1E9F}" SHELLEXTCLSID ="{16871AC2-EAFF-11D4-94D8-0050041B1E9F}"