;SAMPLE.INF ;The following sample .INF file performs the following actions: ; - Copies files to the Windows, System, INF and Help directories ; - Makes a number of registry entries (including entries that ; will rename the copied files to Long File Names) ; - Creates a link on the Help Menu ; - Has an uninstall section that that registers the uninstall ; action in the Add-Remove Programs control panel ; - Uses replaceable strings to make localization easy [Version] ;Signature=$CHICAGO$ Signature = "$Windows NT$" Class = Net ClassGUID = {4d36e972-e325-11ce-bfc1-08002be10318} Provider = %Linux% DriverVer = 06/21/2006,6.0.6000.16384 [Manufacturer] %Linux% = LinuxDevices,NTx86,NTamd64,NTia64 ; Decoration for x86 architecture [LinuxDevices.NTx86] %LinuxDevice% = RNDIS.NT.5.1, USB\VID_0525&PID_a4a2, USB\VID_1d6b&PID_0104&MI_00 ; Decoration for x64 architecture [LinuxDevices.NTamd64] %LinuxDevice% = RNDIS.NT.5.1, USB\VID_0525&PID_a4a2, USB\VID_1d6b&PID_0104&MI_00 ; Decoration for ia64 architecture [LinuxDevices.NTia64] %LinuxDevice% = RNDIS.NT.5.1, USB\VID_0525&PID_a4a2, USB\VID_1d6b&PID_0104&MI_00 ;@@@ This is the common setting for setup [ControlFlags] ExcludeFromSelect=* ; DDInstall section ; References the in-build Netrndis.inf [RNDIS.NT.5.1] Characteristics = 0x84 ; NCF_PHYSICAL + NCF_HAS_UI BusType = 15 ; NEVER REMOVE THE FOLLOWING REFERENCE FOR NETRNDIS.INF include = netrndis.inf needs = Usb_Rndis.ndi AddReg = Rndis_AddReg_Vista ; DDInstal.Services section [RNDIS.NT.5.1.Services] include = netrndis.inf needs = Usb_Rndis.ndi.Services ; Optional registry settings. You can modify as needed. [RNDIS_AddReg_Vista] HKR, NDI\params\VistaProperty, ParamDesc, 0, %Vista_Property% HKR, NDI\params\VistaProperty, type, 0, "edit" HKR, NDI\params\VistaProperty, LimitText, 0, "12" HKR, NDI\params\VistaProperty, UpperCase, 0, "1" HKR, NDI\params\VistaProperty, default, 0, " " HKR, NDI\params\VistaProperty, optional, 0, "1" ; No sys copyfiles - the sys files are already in-build ; (part of the operating system). ; We do not support XP SP1-, 2003 SP1-, ME, 9x. [Strings] Linux = "Linux Developer Community" LinuxDevice = "Linux USB Ethernet/RNDIS Gadget" Vista_Property = "Optional Vista Property" PROGRAMF = "PROGRA~1" SampleFolder = "Samples" SampleDesc = "Sample Application" DiskName = "Sample Application Installation Disk" [DestinationDirs] SampleCopy = 24,%PROGRAMF%\Sample SampleDel = 24,%PROGRAMF%\Sample SampleWinCopy = 25 SampleSysCopy = 11 SampleINFCopy = 17 SampleHLPCopy = 18 [DefaultInstall] CopyFiles = SampleCopy, SampleWinCopy, SampleSysCopy, SampleINFCopy, SampleHLPCopy AddReg = SampleRegisterApp, SampleRegUninstall, SampleRenameFiles UpdateInis = SampleAddLinks [RemoveSample] DelFiles = SampleWinCopy, SampleSysCopy, SampleINFCopy, SampleHLPCopy DelReg = SampleUnRegisterApp, SampleRegUninstall AddReg = SampleRemoveLFNs UpdateInis = SampleRemoveLinks [SampleCopy] sample.bmp [SampleWinCopy] sample.exe [SampleSysCopy] sample.dll [SampleINFCopy] sample.inf [SampleHLPCopy] sample.hlp [SampleRegisterApp] ;Make arbitrary registry entry (for private use of sample.exe) HKLM,Software\Sample,Installed,,"1" [SampleUnRegisterApp] ;Delete registry entry (note that this deletes the entire key) HKLM,Software\Sample [SampleRegUninstall] ;Add entry to the Add-Remove Programs control panel to uninstall the program: HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Sample,"DisplayName",,"Sample Application" HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Sample,"UninstallString",,"RunDll setupx.dll,InstallHinfSection RemoveSample 4 sample.inf" [SampleRenameFiles] ;renames 8.3 files to Long File Names HKLM,Software\Microsoft\Windows\CurrentVersion\RenameFiles\Sample,,,"%24%\%PROGRAMF%\Sample" HKLM,Software\Microsoft\Windows\CurrentVersion\RenameFiles\Sample,sample.bmp,,"Sample Bitmap.bmp" [SampleRemoveLFNs] ;Deletes files with Long File Names during Uninstall HKLM,Software\Microsoft\Windows\CurrentVersion\DeleteFiles\Sample,,,"%24%\%PROGRAMF%\Sample" HKLM,Software\Microsoft\Windows\CurrentVersion\DeleteFiles\Sample,sample.bmp,,"Sample Bitmap.bmp" [SampleAddLinks] ;Adds shortcut to SAMPLE.EXE on the Start Menu: setup.ini, progman.groups,, "Sample=%SampleFolder%" ;creates folder setup.ini, Sample,, """%SampleDesc%"", %25%\SAMPLE.EXE" ;creates link [SampleRemoveLinks] ;Removes shortcut to SAMPLE.EXE on the Start Menu during Uninstall: setup.ini, progman.groups,, "Sample=%SampleFolder%" ;creates folder setup.ini, Sample,, """%SampleDesc%""" ;deletes link [SourceDisksNames] 99 = %DiskName%,Sample,0 [SourceDisksFiles] sample.exe = 1,,13456 sample.dll = 1,,20987 sample.bmp = 1,,64098 sample.hlp = 1,,55441 sample.inf = 1,,5687