DPInst and DIfx usage

Discussion in 'Windows Vista Drivers' started by JY, Jan 12, 2010.

  1. JY

    JY Guest


    I'm posting this for the 3rd time. Somhow my posts are not showing up for
    whatever reason - please excuse.

    I have a requirement to install a device driver from my MFC application and
    have looked through some MSDN documention on usage of DPInst and DIFx
    framework, but I haven't got a clear idea yet.

    1. A basic question is if I have a driver file that I need to install what
    exactly are the steps to be followed?

    2. Can I use ShellExecute(Ex) to launch DPInst? What other things are needed?

    JY, Jan 12, 2010
    1. Advertisements

  2. JY

    Tim Roberts Guest

    For DPInst, all you need to do is create an XML configuration file, have
    DPInst.exe in the same directory as the INF file and the XML file, and run
    DPInst. It's pretty darned easy.
    Take DPInst.exe, your DPInst.xml, your .inf, and your .sys. Have your
    installer copy that to a Program Files location, then launch DPInst. That's
    it. That will pre-install the driver.
    Yes, indeed. I call it from an NSIS install script.
    Tim Roberts, Jan 13, 2010
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.