I need to pre-install a PnP Driver. The DIFxAPI call is:
DriverPackagePreinstall
Is there a way to do this from InstallAware?
DIFx for PnP driver
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
You don't need to manually call APIs. Just add your driver files to your project, and then use the Advanced Options | Drivers view, click the New button, choose the driver INF, and just pick your options.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
I'd try to call DifX manually from the command line and see what I get. Also run the built in driver installation sample to see if that works for you.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Ok, I got it to work with the DIFxAPI.dll. I got the DIFxAPI.dll from the WinDK (RC1).
Here's what is working:
1) I copy my .inf, .sys, and .cat to $TARGETDIR$\\drivers
2) I copy the DIFxAPI.dll to $TARGETDIR$\\drivers
3) Call DLL Function $TARGETDIR$\\drivers\\DIFxAPI.dll with
function: DriverPackagePreinstall
arg1: $TARGETDIR$\\drivers\\mydriver.inf
arg2: 0
4) Delete Files $TARGETDIR$\\drivers\\DIFxAPI.dll (cleanup)
Works great.
Here's what is working:
1) I copy my .inf, .sys, and .cat to $TARGETDIR$\\drivers
2) I copy the DIFxAPI.dll to $TARGETDIR$\\drivers
3) Call DLL Function $TARGETDIR$\\drivers\\DIFxAPI.dll with
function: DriverPackagePreinstall
arg1: $TARGETDIR$\\drivers\\mydriver.inf
arg2: 0
4) Delete Files $TARGETDIR$\\drivers\\DIFxAPI.dll (cleanup)
Works great.
Who is online
Users browsing this forum: No registered users and 270 guests