I am not offered the option to install from an INF context menu.

John Savill

March 4, 1999

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. A. The options given from a context menu are derived from its file type entry under HKEY_CLASSES_ROOTinffile. The first item to check is that .inf is associated with inffile, and this can be checked with

C:> assoc .inf
.inf=inffile

If you do not get the above response enter the command

C:> assoc .inf=inffile

The next step is to check the context menu item "install" exists for inffile:

  1. Start the registry editor (regedt32.exe)

  2. Move to HKEY_CLASSES_ROOTinffileshell

  3. Check for a sub-key "Install", if it does not exist select "Add Key" from the Edit menu and enter a name of Install.

  4. The default entry from Install (called ) should be &Install. If it does not exist select "Add Value" from the Edit menu, do not enter any name, select type REG_SZ and click OK. It will then ask for a string which should be "&Install" (don't actually enter the quotes). Click OK

  5. Under the Install key should be another key, command. If this does not exist, again create using "Add Key" from the edit menu.

  6. Under the command key should be a default value (called ) which should have the data "%SystemRoot%System32rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %1" in it. The the default key is missing exist select "Add Value" from the Edit menu, do not enter any name, select type REG_EXPAND_SZ and click OK. It will then ask for a string which should be "%SystemRoot%System32rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %1" (don't actually enter the quotes). Click OK

  7. Close the registry editor

You should now have an install option for .inf files.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like