RE: avoiding reboot after install by chester
chester
Thu Feb 09 19:31:19 CST 2006
Hi, We are having the same problem.
We have an application that is installing a File Driver through inf file.
The problem is that when we install the application, it installs the file
driver but does not start it.
After you do a reboot, the driver starts running and the application works
fine.
Is there anyway to start the driver without having to reboot?
I have beow the complete inf file we are using:
;;;
;;; CtxtFileMon
;;;
;;;
;;; Copyright (c) 2000, Microsoft Corporation
;;;
[Version]
signature = "$Windows NT$"
Class = "ActivityMonitor" ;This is determined by the work this filter
driver does
ClassGuid = {b86dff51-a31e-4bac-b3cf-e8cfe75c9fc2} ;This value is
determined by the Class
Provider = %Msft%
DriverVer = 08/28/2000,1.0.0.1
CatalogFile = CtxtFileMon.cat ; A
CatalogFile entry is required for a WHQL signature.
; The actual
catalog file will be provided by WHQL. The
; catalog
file for this sample is not provided for use.
[DestinationDirs]
DefaultDestDir = 12
CtxtFileMon.DriverFiles = 12 ;%windir%\system32\drivers
;;CtxtFileMon.UserFiles = 10,CtxtFileMon ;%windir%\CtxtFileMon
;;
;; Default install sections
;;
[DefaultInstall]
OptionDesc = %CtxtFileMonServiceDesc%
CopyFiles = CtxtFileMon.DriverFiles
;;CopyFiles = CtxtFileMon.DriverFiles, CtxtFileMon.UserFiles
[SourceDisksNames]
1 = %Disk1%
[SourceDisksFiles]
CtxtFileMon.exe = 1
CtxtFileMon.sys = 1
[DefaultInstall.Services]
AddService = %CtxtFileMonServiceName%,,CtxtFileMon.Service
;;
;; Default uninstall sections
;;
[DefaultUninstall]
;;DelFiles = CtxtFileMon.DriverFiles, CtxtFileMon.UserFiles
DelFiles = CtxtFileMon.DriverFiles
DelReg = CtxtFileMon.DelRegistry
[DefaultUninstall.Services]
DelService = CtxtFileMon,0x200 ; Flags note to stop service first
;
; Services Section
;
[CtxtFileMon.Service]
DisplayName = %CtxtFileMonServiceName%
Description = %CtxtFileMonServiceDesc%
ServiceBinary =
%12%\CtxtFileMon.sys ;%windir%\system32\drivers\CtxtFileMon.sys
ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
StartType = 2
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
LoadOrderGroup = "filter"
AddReg = CtxtFileMon.AddRegistry
;
; Registry Modifications
;
[CtxtFileMon.AddRegistry]
HKLM,%CtxtFileMonRegistry%,%CtxtFileMonMaxRecords%,0x00010001 ,500
HKLM,%CtxtFileMonRegistry%,%CtxtFileMonMaxNames%,0x00010001 ,500
HKLM,%CtxtFileMonRegistry%,%CtxtFileMonDebugFlags%,0x00010001 ,0
HKLM,%CtxtFileMonRegistry%,%CtxtFileMonAttachMode%,0x00010001 ,2
[CtxtFileMon.DelRegistry]
HKLM,%CtxtFileMonRegistry%,%CtxtFileMonMaxRecords%
HKLM,%CtxtFileMonRegistry%,%CtxtFileMonMaxNames%
HKLM,%CtxtFileMonRegistry%,%CtxtFileMonDebugFlags%
HKLM,%CtxtFileMonRegistry%,%CtxtFileMonAttachMode%
;
; Copy Files
;
[CtxtFileMon.DriverFiles]
CtxtFileMon.sys
[CtxtFileMon.UserFiles]
CtxtFileMon.exe
;;
;; String Section
;;
[Strings]
Msft = "Siemens TTB"
CtxtFileMonServiceDesc = "CtxtFileMon Filter Driver"
CtxtFileMonServiceName = "CtxtFileMon"
CtxtFileMonRegistry = "system\currentcontrolset\services\CtxtFileMon"
CtxtFileMonMaxRecords = "MaxRecords"
CtxtFileMonMaxNames = "MaxNames"
CtxtFileMonDebugFlags = "DebugFlags"
CtxtFileMonAttachMode = "AttachMode"
Disk1 = "CtxtFileMon Source Media"
- Ashish
"Jeff McCashland [MSFT]" wrote:
> Michelle,
>
> In that case, I would suggest performing kernel-mode debugging on a checked
> build of your driver. You could step through your DriverEntry and
> AddDevice routines, or print debug messages from the routines to see if
> these complete successfully.
>
> What are the functions of your composite USB device? Do you have multiple
> INF files? Is it the parent device, or one of the child functions that
> fails install? How is the device being installed? I may be able to
> suggest more if I can look at your INF file(s) and a complete verbose
> (setting 0xffff) setupapi.log.
>
> Thanks,
> [MSFT] Jeff McCashland
> jeffm@online.microsoft.com
>
> This posting is provided "AS IS" with no warranties, and confers no rights