Re: Driver Installation in Windows98 by anand1603
anand1603
Mon Jul 14 13:43:57 CDT 2003
hi armin,
Thanx for ur valuble info....
the below code snippet was very useful...
itz working fine for Win ME and But Win 98 is still a mystery..
In win me itz copying the .INF files to INF folder and when the user
plug in the USB cable no Hardware wizard are popping up .So itz fine
with Win ME. But for Win 98 I am unable to trace out what is
happening..
I am still stuck up with Win 98..
Again..thanx a ton for valuable info..
Regards
Anand
Armin Burger <armin.burger@accsys.de> wrote in message news:<ecaagv0gflghtea7te3rbbsmkrg0hcmfu1@4ax.com>...
> Hi,
>
> you can use this code snippet for this.
>
>
> bRet=SetupDiGetINFClass(szInfFile,&ClassGuid,szClass,MAX_CLASS_NAME_LEN,NULL);
>
> hInf = SetupOpenInfFile(szInfFile,szClass,INF_STYLE_WIN4,pLine);
>
> fileq = SetupOpenFileQueue();
>
> bret= SetupInstallFilesFromInfSection( hInf,
> NULL,
> fileq,
> <Installsection in the inf>,
> szInfPath,
> SP_COPY_NEWER_OR_SAME |
> SP_COPY_SOURCEPATH_ABSOLUTE );
>
> pContext = SetupInitDefaultQueueCallback(NULL);
>
> bRet = SetupCommitFileQueue( NULL,
> fileq,
> SetupDefaultQueueCallback,
> pContext);
>
> SetupTermDefaultQueueCallback(pContext);
> SetupCloseFileQueue(fileq);
> SetupCloseInfFile(hInf);
>
> Armin
> On Thu, 3 Jul 2003 20:57:07 -0700, "Vijay Anand"
> <anand@nospam-moschip.com> wrote:
>
> >For Windows 98/ME -
> >Remove CopyFileSection from your inf and copy your inf
> >file directly to INF folder and drivers to system32
> >\drivers. This should work.
> >
> >Vijay
> >
> >>-----Original Message-----
> >>Hi all,
> >>My requirement is to have console application in Windows
> 98 and Win
> >>ME that copies .INF files and the driver file in the
> respetive
> >>folder.This assures that Add Hardware Wizard doesn't pop
> up when the
> >>user plug in the USB cable .I have similar application in
> windows 2k
> >>and Windows XP which uses SetupCopyOEMINf API to meet the
> >>requirement.But this API is not supported in Win 98 and
> Win ME.
> >>
> >>Plz lemme know is there any corresponding API in Windows
> 98 for
> >>SetupCopyOEMINF API ?If not, how can we solve this
> problem.
> >>Your help will be very much appreciated.
> >>Thanx in advance for the help.
> >>Regards
> >>ananth
> >>.
> >>