From: Erik[MSFT] on
The tools have a bug when using the legacyMode from the XML. But the command
line switch is working. Use "/lm" on the command line instead of
<legacyMode/> and it should work. MS is working on a fix for this.

Thanks,
-Erik
--
This posting is provided "AS IS" with no warranty, and confers no rights.


"Benjamin" <Benjamin(a)discussions.microsoft.com> wrote in message
news:E1D33FD5-AD63-456D-B959-AED1900A2BBE(a)microsoft.com...
> Was there a resolution to this problem? I seem to be encountering the
> exact
> same problem while installing a miniport driver using version 2.0 of
> dpinst.exe. I have tried everything I can think of but nothing seems to
> work.
>
> I tried commenting out the "CatalogFIle" entry in the .inf file but that
> didn't work. I also tried creating an empty catalog file (slic.cat) with
> the
> same result. I can install fine using the "found new hardware" wizard or
> Device Manager. I get the digital signature warning and the installation
> completes successfully.
>
> My dpinst.xml file is:
>
> <?xml version="1.0"?>
> <dpInst>
> <search>
> <subDirectory>miniport</subDirectory>
> </search>
> <language code="0x0409">
> </language>
> <legacyMode/>
> <deleteBinaries/>
> <forceIfDriverIsNotBetter/>
> </dpInst>
>
> The dpinst.log file contains:
> INFO: ****************************************
> INFO: 05/31/2005 13:09:49
> INFO: Windows Server 2003
> INFO: Product Version 2.0.0.0.
> INFO: Architecture: X86.
> INFO: Command Line: '"C:\Install\DPInst.exe" '
> INFO: ****************************************
> INFO: Current working directory: 'C:\Install'
> INFO: Running on path 'C:\Install'
> INFO: User UI Language is 0x409.
> INFO: Install option set: Force install if driver is not better.
> INFO: Install option set: uninstall will be set to delete driver
> binaries.
> INFO: Found driver package: 'C:\Install\miniport\netaccel.inf'.
> INFO: ENTER: DriverPackagePreinstallW
> ERROR: Failed to calculate strong name from
> 'c:\install\miniport\slic.cat'.
> Check if catalog is valid and if file is in the same directory as the INF.
> (Error code 0x80070002: The system cannot find the file specified.)
> INFO: RETURN: DriverPackagePreinstallW (0xE0000304)
> INFO: Returning with code 0x80010000
> INFO: 05/31/2005 13:09:53
>
> The [version] section of the inf file contains:
> [version]
> Signature = "$Windows NT$"
> Class = Net
> ClassGUID = {4d36e972-e325-11ce-bfc1-08002be10318}
> Provider = %PROVIDER%
> DriverPackageType = PlugAndPlay
> CatalogFile = slic.cat
> DriverVer = 5/11/2005,9.0.0.0
>
> Any help and/or suggestions would be greatly appreciated.
>
> Thanks.
>
> Benjamin Dagana
> Software Engineer
>
>
> "Pavel A." wrote:
>
>> "Bruce" wrote:
>> > Yes, i am using DifX V2, which supplies a Device Package Installer.
>> > From the
>> > documentation, it indicates that you can set the legacyMode in the xml
>> > schema
>> > and you can install unsigned drivers.
>> >
>> > What can i do to get this to work with unsigned drivers? I am fairly
>> > new to
>> > this.
>>
>> Bruce,
>> what is the class of your driver? Your driver package contains some
>> file of type .inf. In this file find a section [Version].
>> In this section find a line that begins with word "Class" or "ClasGUID".
>> What is the rest of this line?
>>
>> If you install the driver wihout DifX, does Windows
>> display the signing popup?
>>
>> --PA
>>
>> > Many Thanks,
>> > Bruce
>> > --
>> > Bruce Philp
>> > Software Engineer
>> > Astron Clinica Ltd
>> >
>> >
>> > "Pavel A." wrote:
>> >
>> > > "Bruce" wrote:
>> > > > I am trying to use the legacyMode element within the dpinst xml
>> > > > schema, so
>> > > > that we can install non signed drivers using the Device Package
>> > > > Installer.
>> > > > However i do not seem to be bale to get it to work as it will not
>> > > > install the
>> > > > drive as it is not signed. Is there anything else that one should
>> > > > do to get
>> > > > this to work?
>> > >
>> > > Are you using dpinst from DifX v .2? Note that it still does not
>> > > remove
>> > > the need to sign the driver for device classes that require a signed
>> > > driver
>> > > when you install it manually.
>> > > --PA
>> > >
>> > > > Many Thanks,
>> > > > Bruce
>> > > >
>> > > > <?xml version="1.0"?>
>> > > > <dpinst>
>> > > > <language code="0x0409">
>> > > > </language>
>> > > > <icon>App.ico</icon>
>> > > > <watermarkPath>AClogo.bmp</watermarkPath>
>> > > > <legacyMode/>
>> > > > </dpinst>
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > > Bruce Philp
>> > > > Software Engineer
>> > > > Astron Clinica Ltd


From: Vincent on
I am also using DPInst v2. The installation runs fine, but when I attach the
device, the system prompts for the .sys file. Apparently, DPInst didn't copy
the the .sys and .inf file. If I manually copy the .sys to the driver
directory, the window will still appear to ask for the file.

Sorry, I am new to installing device drivers. Is there something that I
need to specify in the .inf? My problem is that I would think DPInst would
take care of the "linking" of the .sys file when the device first gets
plugged in on the USB.

Any advise would be appreciated!

Vincent

This is what I have now in the .inf:

[Version]
Signature = "$Windows NT$"
Class=USB
ClassGUID={36fc9e60-c465-11cf-8056-444553540000}
Provider=%MSI%
;; CatalogFile=USBMST.cat
DriverVer= 05/11/2005

[DestinationDirs]
NMUI_1.Files.x86_12 = 12

[SourceDisksFiles.x86]
usbmstnv1.sys=1,,

[DestinationDirs]
usbmstnv1.CopyFiles.Ext = 10,System32\Drivers
usbmstnv1.OvwrFiles.Ext = 10,System32\Drivers
usbmstnv1.OvwrFiles.Inf = 17
usbmstnv1.DelFiles.Hwd = 17

"Benjamin" wrote:

> Was there a resolution to this problem? I seem to be encountering the exact
> same problem while installing a miniport driver using version 2.0 of
> dpinst.exe. I have tried everything I can think of but nothing seems to
> work.
>
> I tried commenting out the "CatalogFIle" entry in the .inf file but that
> didn't work. I also tried creating an empty catalog file (slic.cat) with the
> same result. I can install fine using the "found new hardware" wizard or
> Device Manager. I get the digital signature warning and the installation
> completes successfully.
>
> My dpinst.xml file is:
>
> <?xml version="1.0"?>
> <dpInst>
> <search>
> <subDirectory>miniport</subDirectory>
> </search>
> <language code="0x0409">
> </language>
> <legacyMode/>
> <deleteBinaries/>
> <forceIfDriverIsNotBetter/>
> </dpInst>
>
> The dpinst.log file contains:
> INFO: ****************************************
> INFO: 05/31/2005 13:09:49
> INFO: Windows Server 2003
> INFO: Product Version 2.0.0.0.
> INFO: Architecture: X86.
> INFO: Command Line: '"C:\Install\DPInst.exe" '
> INFO: ****************************************
> INFO: Current working directory: 'C:\Install'
> INFO: Running on path 'C:\Install'
> INFO: User UI Language is 0x409.
> INFO: Install option set: Force install if driver is not better.
> INFO: Install option set: uninstall will be set to delete driver binaries.
> INFO: Found driver package: 'C:\Install\miniport\netaccel.inf'.
> INFO: ENTER: DriverPackagePreinstallW
> ERROR: Failed to calculate strong name from 'c:\install\miniport\slic.cat'.
> Check if catalog is valid and if file is in the same directory as the INF.
> (Error code 0x80070002: The system cannot find the file specified.)
> INFO: RETURN: DriverPackagePreinstallW (0xE0000304)
> INFO: Returning with code 0x80010000
> INFO: 05/31/2005 13:09:53
>
> The [version] section of the inf file contains:
> [version]
> Signature = "$Windows NT$"
> Class = Net
> ClassGUID = {4d36e972-e325-11ce-bfc1-08002be10318}
> Provider = %PROVIDER%
> DriverPackageType = PlugAndPlay
> CatalogFile = slic.cat
> DriverVer = 5/11/2005,9.0.0.0
>
> Any help and/or suggestions would be greatly appreciated.
>
> Thanks.
>
> Benjamin Dagana
> Software Engineer
>
>
> "Pavel A." wrote:
>
> > "Bruce" wrote:
> > > Yes, i am using DifX V2, which supplies a Device Package Installer. From the
> > > documentation, it indicates that you can set the legacyMode in the xml schema
> > > and you can install unsigned drivers.
> > >
> > > What can i do to get this to work with unsigned drivers? I am fairly new to
> > > this.
> >
> > Bruce,
> > what is the class of your driver? Your driver package contains some
> > file of type .inf. In this file find a section [Version].
> > In this section find a line that begins with word "Class" or "ClasGUID".
> > What is the rest of this line?
> >
> > If you install the driver wihout DifX, does Windows
> > display the signing popup?
> >
> > --PA
> >
> > > Many Thanks,
> > > Bruce
> > > --
> > > Bruce Philp
> > > Software Engineer
> > > Astron Clinica Ltd
> > >
> > >
> > > "Pavel A." wrote:
> > >
> > > > "Bruce" wrote:
> > > > > I am trying to use the legacyMode element within the dpinst xml schema, so
> > > > > that we can install non signed drivers using the Device Package Installer.
> > > > > However i do not seem to be bale to get it to work as it will not install the
> > > > > drive as it is not signed. Is there anything else that one should do to get
> > > > > this to work?
> > > >
> > > > Are you using dpinst from DifX v .2? Note that it still does not remove
> > > > the need to sign the driver for device classes that require a signed driver
> > > > when you install it manually.
> > > > --PA
> > > >
> > > > > Many Thanks,
> > > > > Bruce
> > > > >
> > > > > <?xml version="1.0"?>
> > > > > <dpinst>
> > > > > <language code="0x0409">
> > > > > </language>
> > > > > <icon>App.ico</icon>
> > > > > <watermarkPath>AClogo.bmp</watermarkPath>
> > > > > <legacyMode/>
> > > > > </dpinst>
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Bruce Philp
> > > > > Software Engineer
> > > > > Astron Clinica Ltd
From: Benjamin on
By the way, I opened a case with Microsoft about this problem. It turns out
this is a bug with DPInst.exe version 2.0. It appears that DPInst is not
parsing the switch from the XML file correctly. The best workaround is to
start DPInst.exe with the /lm command line switch.

"Benjamin" wrote:

> Was there a resolution to this problem? I seem to be encountering the exact
> same problem while installing a miniport driver using version 2.0 of
> dpinst.exe. I have tried everything I can think of but nothing seems to
> work.
>
> I tried commenting out the "CatalogFIle" entry in the .inf file but that
> didn't work. I also tried creating an empty catalog file (slic.cat) with the
> same result. I can install fine using the "found new hardware" wizard or
> Device Manager. I get the digital signature warning and the installation
> completes successfully.
>
> My dpinst.xml file is:
>
> <?xml version="1.0"?>
> <dpInst>
> <search>
> <subDirectory>miniport</subDirectory>
> </search>
> <language code="0x0409">
> </language>
> <legacyMode/>
> <deleteBinaries/>
> <forceIfDriverIsNotBetter/>
> </dpInst>
>
> The dpinst.log file contains:
> INFO: ****************************************
> INFO: 05/31/2005 13:09:49
> INFO: Windows Server 2003
> INFO: Product Version 2.0.0.0.
> INFO: Architecture: X86.
> INFO: Command Line: '"C:\Install\DPInst.exe" '
> INFO: ****************************************
> INFO: Current working directory: 'C:\Install'
> INFO: Running on path 'C:\Install'
> INFO: User UI Language is 0x409.
> INFO: Install option set: Force install if driver is not better.
> INFO: Install option set: uninstall will be set to delete driver binaries.
> INFO: Found driver package: 'C:\Install\miniport\netaccel.inf'.
> INFO: ENTER: DriverPackagePreinstallW
> ERROR: Failed to calculate strong name from 'c:\install\miniport\slic.cat'.
> Check if catalog is valid and if file is in the same directory as the INF.
> (Error code 0x80070002: The system cannot find the file specified.)
> INFO: RETURN: DriverPackagePreinstallW (0xE0000304)
> INFO: Returning with code 0x80010000
> INFO: 05/31/2005 13:09:53
>
> The [version] section of the inf file contains:
> [version]
> Signature = "$Windows NT$"
> Class = Net
> ClassGUID = {4d36e972-e325-11ce-bfc1-08002be10318}
> Provider = %PROVIDER%
> DriverPackageType = PlugAndPlay
> CatalogFile = slic.cat
> DriverVer = 5/11/2005,9.0.0.0
>
> Any help and/or suggestions would be greatly appreciated.
>
> Thanks.
>
> Benjamin Dagana
> Software Engineer
>
>
> "Pavel A." wrote:
>
> > "Bruce" wrote:
> > > Yes, i am using DifX V2, which supplies a Device Package Installer. From the
> > > documentation, it indicates that you can set the legacyMode in the xml schema
> > > and you can install unsigned drivers.
> > >
> > > What can i do to get this to work with unsigned drivers? I am fairly new to
> > > this.
> >
> > Bruce,
> > what is the class of your driver? Your driver package contains some
> > file of type .inf. In this file find a section [Version].
> > In this section find a line that begins with word "Class" or "ClasGUID".
> > What is the rest of this line?
> >
> > If you install the driver wihout DifX, does Windows
> > display the signing popup?
> >
> > --PA
> >
> > > Many Thanks,
> > > Bruce
> > > --
> > > Bruce Philp
> > > Software Engineer
> > > Astron Clinica Ltd
> > >
> > >
> > > "Pavel A." wrote:
> > >
> > > > "Bruce" wrote:
> > > > > I am trying to use the legacyMode element within the dpinst xml schema, so
> > > > > that we can install non signed drivers using the Device Package Installer.
> > > > > However i do not seem to be bale to get it to work as it will not install the
> > > > > drive as it is not signed. Is there anything else that one should do to get
> > > > > this to work?
> > > >
> > > > Are you using dpinst from DifX v .2? Note that it still does not remove
> > > > the need to sign the driver for device classes that require a signed driver
> > > > when you install it manually.
> > > > --PA
> > > >
> > > > > Many Thanks,
> > > > > Bruce
> > > > >
> > > > > <?xml version="1.0"?>
> > > > > <dpinst>
> > > > > <language code="0x0409">
> > > > > </language>
> > > > > <icon>App.ico</icon>
> > > > > <watermarkPath>AClogo.bmp</watermarkPath>
> > > > > <legacyMode/>
> > > > > </dpinst>
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Bruce Philp
> > > > > Software Engineer
> > > > > Astron Clinica Ltd