Hi All,
I have a minifilter and INF to install it. Currently I am installing it using INF and rundll32.exe through a command line. Now I want to do installation of driver using INF programaticly. How Can I do it?
Thanks & Regards,
Amit.
Hi All,
I have a minifilter and INF to install it. Currently I am installing it using INF and rundll32.exe through a command line. Now I want to do installation of driver using INF programaticly. How Can I do it?
Thanks & Regards,
Amit.
Hi Amit,
Run the following command through you program:
RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultInstall 132 D:\WINDDK\3790~1.183\src\filesys\minifilter\MyFilter\passthrough.inf
I hope this helps.
~ganesh
A third option is to call the Setupxxx() API set from an installer. This
would implement your 1) below via the actual Setupxxx() API calls.
Pete
Kernel Drivers
Windows File System and Device Driver Consulting
www.KernelDrivers.com
(303)546-0300
xxxxx@rediffmail.com wrote:
Hi Amit,
Approach1:
Run the following command through you program:
RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultInstall 132 D:\WINDDK\3790~1.183\src\filesys\minifilter\MyFilter\passthrough.inf
- Check if this works in case you have need for silent installations.
Approach 2:
- Create the registry entries programmatically.
You will have to create the keys under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services. Install a sample minifilter and check the entries that are made.I hope this helps.
~ganesh
NTFSD is sponsored by OSR
For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminarsYou are currently subscribed to ntfsd as: xxxxx@kerneldrivers.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Please recommend particular Setupxxx() API which I can use.
If you call ShellExecuteEx to run RUNDLL32 make sure you specify the
SEE_MASK_FLAG_DDEWAIT flag so it waits for the installation to complete. If
you call InstallHinfSection yourself and you do it from a 32 bit process
for a 64 bit driver, it may be difficult or impossible to get the file
system redirection issues right.
/Daniel
wrote in message news:xxxxx@ntfsd…
> Hi Amit,
>
> Approach1:
> -------------
> Run the following command through you program:
> RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultInstall 132
> D:\WINDDK\3790~1.183\src\filesys\minifilter\MyFilter\passthrough.inf
>
> - Check if this works in case you have need for silent installations.
>
> Approach 2:
> --------------
> 1. Create the registry entries programmatically.
> You will have to create the keys under
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services. Install a sample
> minifilter and check the entries that are made.
>
> I hope this helps.
>
> ~ganesh
>
Can I use SetupInstallFromInfSection() or SetupInstallServicesFromInfSection() or SetupInstallServicesFromInfSectionEx()