Windows 7 installs drivers from trusted publisher


This article was sent to us by: Ivette R. at 01122010

1 Windows 7 » Windows 7 installs drivers from trusted publisher
Bookmark and Share

A Crash Course in Device Drivers

Before Windows can work with any piece of hardware, it requires a compatible, properly configured device driver. Drivers are compact control programs that hook directly into Windows and handle the essential tasks of communicating your instructions to a hardware device and then relaying data back to you. After you set up a hardware device, its driver loads automatically and runs as part of the operating operating system, without requiring any further intervention on your part.

Windows includes a library of drivers for internal components such as sound cards, storage controllers, and display adapters as well as external add-ons such as printers, keyboards, scanners, mice and other pointing devices, digital cameras, and removable storage devices.

This core library is copied during Windows 7 setup to a protected operating system folder, %SystemRoot%\System32\DriverStore. (Driver files and associated elements are stored in the FileRepository subfolder.) Anyone who logs on to the computer can read and execute files from this location. But only an installation program working with authorization from a member of the Administrators group can create or modify files and folders there.

You can add new drivers to the driver store in a variety of ways. Windows 7 Update offers drivers when it detects that you’re running a device that is compatible with that driver and is currently using an older version. (You can also search for the most recent driver viaWindows Update when installing a new device.) In addition, installing a Windows 7 service pack typically refreshes the driver store with new and updated drivers. All drivers that are copied here from Microsoft servers are certified to be fully compatible with Windows and are digitally signed by Microsoft.

As an administrator, you can add third-party drivers, signed or unsigned, to the driver store by specifically giving consent. All drivers added to the driver store in this fashion are saved in their own subfolder beneath the FileRepository folder, along with some supporting files created by Windows 7 , allowing them to be reinstalled if necessary. Any driver that has been added to the store, signed or unsigned, is considered to be trusted and can be installed without prompts or administrator credentials.

In Windows 7, you do not have to be an administrator to install drivers; Windows 7 checks the current driver installation policy to determine whether installation is permitted. When you install a new Plug and Play – compatible device, Windows checks the driver store first. If it finds a suitable driver, installation proceeds automatically. If no compatible driver is available, you’re prompted to search for driver software.

By default, Windows 7 installs drivers from trusted publishers without prompts and never installs drivers from publishers that the user has chosen not to trust. When you attempt to install a signed third-party driver and have not previously designated the publisher as trusted or untrusted, you’re presented with a consent dialog box. In addition to confirming the installation of the driver in question, this Windows Security dialog box gives you the opportunity to confer trust upon the driver’s publisher. If you agree to trust the publisher, subsequent driver installations from that publisher will proceed without your explicit consent.

To be properly installed in Windows 7, a hardware driver must have a Setup Information file (with the extension .inf). This is a text file that contains detailed information about the device to be installed, including the names of its driver files, the locations where they are to be installed, any required registry settings, and version information.

All devices with drivers in the DriverStore folder include Setup Information files in the %SystemRoot%\Inf folder. The basic structure of a Setup Information file is similar to an old-fashioned Windows 3.x–style .ini file. Each piece of setup information appears on its own line under a bracketed section heading. Windows will not allow the driver package to be copied into the driver store unless these sections are present and filled in correctly.

In particular, an .inf file must contain valid [SourceDisksFiles] and [SourceDisksNames] sections. At the time the .inf file is copied into the driver store, Windows creates a folder for the driver files using the name of the .inf file with an eight-character hash appended to it.

Inside that folder, Windows uses the data in the .inf file to create a Precompiled Setup Information file with the .pnf extension, which it uses for installation tasks. Although the Setup Information file is a crucial part of the driver installation process, you don’t work with it directly. Instead, this file supplies instructions that the operating operating system uses during Plug and Play detection, or when you use the Add Hardware wizard or a setup program to install a device.

Legal Disclaimer

Webworldarticles.com is not responsible for the information contained by this article as well for any and all copyright infringements by authors and writers. Webworldarticles.com is a free information resource. If you suspect this article for any copyright infringement, please read the terms of service and contact us to investigate the problem.

Related Articles

1. Performance of Windows 7 and Notebooks
Rediscover the Fundamentals: It’s All About Performance The single most important request customers have had about the next release of the Microsoft Windows operating system is flabbergasting from an engineering standpoint. Customers want Windows to run faster, on lesser hardware, using less system resources, while supporting all existing applications. Much less than they care about new features, Windows users users of your software included want the next version of the operating system to take better advantage of...

2. Use the Pan Gesture to Move an Object
With the pan gesture, you can control the scrolling of content in a scrollable area. Or you can apply the pan gesture to a specific object, moving it in any direction by simply touching it with one or two fingers and moving it. This is also known as transformation because you are partially transforming the object from being located in one location to being located in another. In the illustration, you can see two touch points, marked with the numbers 1 and 2. By default, the pan gesture supports both single-finger and two-finger...

3. Handling the WM GESTURE Message
To work with gestures, you’ll need to handle the WM_GESTURE messages that are sent to your application. If you are a Win32 programmer, you can check for WM_GESTURE messages in your application’s WndProc functions. The following code shows how gesture messages can be handled in Win32 applications: LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { int wmId, wmEvent; PAINTSTRUCT ps; HDC hdc; switch (message){ case WM_GESTURE: /* insert handler code here to i...

4. How Multitouch Works in Windows 7
New hardware and API elements in the Windows 7 operating system provide applications the ability to receive and handle touch and multitouch input. This capability enables applications to detect and respond to multiple simultaneous touch points. Multitouch is defined as two or more touch points. The reason we also address single touch is that there are some singlefinger (single-touch-point) gestures that the multitouch API surfaces. Multitouch functionality in Windows 7 is provided by a new set of dedicated Windows messages. Let&rsquo...

5. Organize My Data Libraries in Windows 7
This article details the new functionality offered by Windows 7 Libraries. We’ll review the Windows Explorer changes that promote the new user experience that Libraries offer; then we’ll explore the underlying architecture supporting Libraries. First, we’ll look at the Windows Shell and Windows Explorer to better understand the important role that Libraries play in the new user experience. Then we’ll dive deep into the new concept of Libraries and review how Libraries work and integrate with Windows Ex...

6. Changes Made to Windows Explorer in Windows 7
Changes Made to Windows Explorer in Windows 7 In Windows 7, Libraries address the problem of users’ data being stored all over the PC by allowing users to have full control over their Documents Library folder structure. This means that in Windows 7, users can define which folders to include in the Documents library. This is true for every library in Windows 7. But before we dive into the definition of a library in Windows 7, let’s look at the Libraries’ role in the experience of a user using Windows Explor...

7. Make Your Windows 7 Application Library Aware
Libraries under the Hood Now that we have a better understanding of what libraries represent and how users as well as developers can benefit from them, let’s examine how libraries work and how they integrate into the Windows Shell. In some ways, a library is similar to a folder. From a user’s point of view, a library looks and behaves just like a regular folder. For example, when you open a library, one or more files are shown. However, unlike a folder, a library gathers files stored in several locations...