Application occurs a bug, when I run application from ‘start menu’ ->
‘program’, (application packaged by install shield)
OS pop-uped a ‘device install error’ message.
But I executed this application in command line, it worked properly.
From the code level, I have known where it happened. The code is:
* if(!SetupDiCallClassInstaller(DIF_INSTALLDEVICEFILES, hDevInfo,
&deviceInfoData))
{
errCall = “SetupDiCallClassInstaller”;
goto failed;
}*
**
And GetLastError() message is 317.
I was confused that why this issue happened when we clicked quick link to
run.
Until now, I have no idea about it…
Does anyone have any suggestion about it?
If I describe not clearly, please let me know, and I will explain it more
detail.
I want to prevent this error message.
So I add code like this:
* SetErrorMode(SEM_FAILCRITICALERRORS);
// Comment this section temp
if(!SetupDiCallClassInstaller(DIF_INSTALLDEVICEFILES, hDevInfo,
&deviceInfoData))
{
// happen error here!
errCall = “SetupDiCallClassInstaller”;
goto failed;
}
SetErrorMode(0);*
But it can’t work. Can anyone give some comments?
Thanks!
On 3/2/07, Yixuan Huang wrote: > > Hello, > > Application occurs a bug, when I run application from ‘start menu’ -> > ‘program’, (application packaged by install shield) > OS pop-uped a ‘device install error’ message. > But I executed this application in command line, it worked properly. > > From the code level, I have known where it happened. The code is: > * if(!SetupDiCallClassInstaller(DIF_INSTALLDEVICEFILES, hDevInfo, > &deviceInfoData)) > { > errCall = “SetupDiCallClassInstaller”; > goto failed; > } * > ** > And GetLastError() message is 317. > I was confused that why this issue happened when we clicked quick link to > run. > Until now, I have no idea about it… > > Does anyone have any suggestion about it? > If I describe not clearly, please let me know, and I will explain it more > detail. > > Thanks in advance! > > Eugene > >
The error window called ‘Device installer error’.
And the content is: ‘Windows could not load the installer for hdc.
Contact your hardware vendor for assistance’.
Because my application looks up all device driver in my pc, so there
pops up lots of messages.
like battery, net, media etc…
When the application run under w2k3 or vista, it don’t appear this error
message.
Does this make sense?
Thanks
On 3/5/07, Yixuan Huang wrote: > > I want to prevent this error message. > So I add code like this: > * SetErrorMode(SEM_FAILCRITICALERRORS); > // Comment this section temp > if(!SetupDiCallClassInstaller(DIF_INSTALLDEVICEFILES, hDevInfo, > &deviceInfoData)) > { > // happen error here! > errCall = “SetupDiCallClassInstaller”; > goto failed; > } > SetErrorMode(0);* > > But it can’t work. Can anyone give some comments? > Thanks! > > On 3/2/07, Yixuan Huang wrote: > > > > Hello, > > > > Application occurs a bug, when I run application from ‘start menu’ -> > > ‘program’, (application packaged by install shield) > > OS pop-uped a ‘device install error’ message. > > But I executed this application in command line, it worked properly. > > > > From the code level, I have known where it happened. The code is: > > * if(!SetupDiCallClassInstaller(DIF_INSTALLDEVICEFILES, hDevInfo, > > &deviceInfoData)) > > { > > errCall = “SetupDiCallClassInstaller”; > > goto failed; > > } * > > ** > > And GetLastError() message is 317. > > I was confused that why this issue happened when we clicked quick link > > to run. > > Until now, I have no idea about it… > > > > Does anyone have any suggestion about it? > > If I describe not clearly, please let me know, and I will explain it > > more detail. > > > > Thanks in advance! > > > > Eugene > > > > > > > > – > Best wishes and Regards, > Huang Yixuan (Eugene)
I used SetupDiInstallDriverFiles instead of *SetupDiCallClassInstaller*
work fine
On 3/9/07, Yixuan Huang wrote: > > OS:Windows XP sp2 > > The error window called ‘Device installer error’. > And the content is: ‘Windows could not load the installer for hdc. > Contact your hardware vendor for assistance’. > Because my application looks up all device driver in my pc, so there > pops up lots of messages. > like battery, net, media etc… > > When the application run under w2k3 or vista, it don’t appear this error > message. > > Does this make sense? > > Thanks > > On 3/5/07, Yixuan Huang wrote: > > > > I want to prevent this error message. > > So I add code like this: > > * SetErrorMode(SEM_FAILCRITICALERRORS); > > // Comment this section temp > > if(!SetupDiCallClassInstaller(DIF_INSTALLDEVICEFILES, hDevInfo, > > &deviceInfoData)) > > { > > // happen error here! > > errCall = “SetupDiCallClassInstaller”; > > goto failed; > > } > > SetErrorMode(0);* > > > > But it can’t work. Can anyone give some comments? > > Thanks! > > > > On 3/2/07, Yixuan Huang wrote: > > > > > > Hello, > > > > > > Application occurs a bug, when I run application from ‘start menu’ -> > > > ‘program’, (application packaged by install shield) > > > OS pop-uped a ‘device install error’ message. > > > But I executed this application in command line, it worked properly. > > > > > > From the code level, I have known where it happened. The code is: > > > * if(!SetupDiCallClassInstaller(DIF_INSTALLDEVICEFILES, hDevInfo, > > > &deviceInfoData)) > > > { > > > errCall = “SetupDiCallClassInstaller”; > > > goto failed; > > > } * > > > ** > > > And GetLastError() message is 317. > > > I was confused that why this issue happened when we clicked quick link > > > to run. > > > Until now, I have no idea about it… > > > > > > Does anyone have any suggestion about it? > > > If I describe not clearly, please let me know, and I will explain it > > > more detail. > > > > > > Thanks in advance! > > > > > > Eugene > > > > > > > > > > > > > > – > > Best wishes and Regards, > > Huang Yixuan (Eugene) > > > > > – > Best wishes and Regards, > Huang Yixuan (Eugene) >