Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 141077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:43:06+00:00 2026-05-11T07:43:06+00:00

When you right click on a .inf file you have an option to Install.

  • 0

When you right click on a .inf file you have an option to ‘Install’. I want to install a .inf file from the command line using a batch file. What is the ‘right’ way to do this?

Thanks!

[edit] I should clarify that I am trying to run this on Windows XP (and not Vista). Though I appriciate (and up-voted) the below answer mentioning InfDefaultInstall.exe, I believe that program was not shipped with XP.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T07:43:07+00:00Added an answer on May 11, 2026 at 7:43 am

    You can find the command when looking at the HKCR\inffile\shell\Install\command registry key. On Windows XP this is

    %SystemRoot%\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %1

    on Windows Vista and later this would be

    %SystemRoot%\System32\InfDefaultInstall.exe '%1'

    To use the batch file across several Windows versions you would need some trickery. You could use reg.exe to query for the key and try parsing the output (I didn’t find a quick way of getting only the value from reg). If you know what platforms you’re running on you could also hard-code the command lines and switch according to the Windows version (which would need another hack to find that out. %OS% doesn’t tell you more than ‘Windows NT’, unfortunately.).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a right click popup menu that works fine. I now want to
Using names.txt (right click and 'Save Link/Target As...'), a 46K text file containing over
When I right click on the database I want to export data from, I
If I right-click my app from a network drive and select Run As |
When you right click on a file and select Compare..., you get a few
you all know: right click -> zoom in or out in flash file, well,
I want to add right click menu items to the explorer (i.e. when you
I'm having trouble figuring out how to solve this issue. I have a file
When you right click on a file in Windows Explorer and click properties and
In MonoDevelop I can right click a file in a MonoTouch project and select

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.