Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV
Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


What's the difference between "DevCon.exe" and "InfDefaultInstall.exe" for installing .inf ?

iFengHuangiFengHuang Member Posts: 62

I'm planning to deploy my product with Inno Setup, including a driver.
After some searches, I find that DevCon and InfDefaultInstall seem to be able to do this.
What's the difference between them? Which is better?

Comments

  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 7,802

    I’m not sure what you’re planning, but you can’t redistribute Devcon. It’s contrary to the
    MSFT license terms.

    Peter

    Peter Viscarola
    OSR
    @OSRDrivers

  • iFengHuangiFengHuang Member Posts: 62

    @Peter_Viscarola_(OSR) said:
    I’m not sure what you’re planning, but you can’t redistribute Devcon. It’s contrary to the
    MSFT license terms.

    Peter

    :/ Thanks, So I think I have to choose InfDefaultInstall.

  • Doron_HolanDoron_Holan Member - All Emails Posts: 10,490
    via Email
    I have never heard of anyone depending on InfDefaultInstall in their installer. Why not call DiInstallDriver yourself so you understand if a reboot is needed directly?
    d
  • iFengHuangiFengHuang Member Posts: 62

    @Doron_Holan said:
    I have never heard of anyone depending on InfDefaultInstall in their installer. Why not call DiInstallDriver yourself so you understand if a reboot is needed directly?

    See here Installation of Callout Drivers,

    A callout driver can be installed by right-clicking the driver's setup information file (INF) file and selecting Install from the pop-up menu that appears.

    When you do this, it just call InfDefaultInstall.exe and parse the .inf file full path as param.

    So this for me is the simpliest way works with Inno Setup.

  • Doron_HolanDoron_Holan Member - All Emails Posts: 10,490
    via Email
    You are conflating a developer scenario with a setup/installer scenario. What is good for the developer is not good for the installer. How are you handling the case where you need to reboot when calling InfDefaultInstall?
    d
  • iFengHuangiFengHuang Member Posts: 62
    edited May 2019

    @Doron_Holan said:
    You are conflating a developer scenario with a setup/installer scenario. What is good for the developer is not good for the installer. How are you handling the case where you need to reboot when calling InfDefaultInstall?

    I tested the deployment environment and never needed to restart it. During the development and deployment tests, I never restarted and had not any problems.

  • Doron_HolanDoron_Holan Member - All Emails Posts: 10,490
    via Email
    Then clearly you will never need to handle a reboot

    d
    d
  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 7,802

    Then clearly you will never need to handle a reboot

     
    Post of the week, right there. And it's only Monday!
     
    That, Mr. Holan, is an impressive achievement.
     

     
    Peter

    Peter Viscarola
    OSR
    @OSRDrivers

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Kernel Debugging 30 Mar 2020 OSR Seminar Space
Developing Minifilters 15 Jun 2020 LIVE ONLINE
Writing WDF Drivers 22 June 2020 LIVE ONLINE
Internals & Software Drivers 28 Sept 2020 Dulles, VA