From: Pravin S. Waghurde Pravin S. on
hi sachin,
According to your mirror.inf file

[Mirror.Mfg]
%Mirror% = mirror, Microsoft_Mirror_Sample1

"Microsoft_Mirror_Sample1" is your HardwareId.
so whenever you want to install your mirror driver you have to use this
HardwareId with devcon.exe.
-To install try this
"devcon install mirror.inf Microsoft_Mirror_Sample1"
it will install your mirror driver silenty, if it is signed with valid
cetrificate.
-To uninstall try this
"devcon remover Microsoft_Mirror_Sample1"
it will uninstall your mirror driver.



"SachinS" wrote:

> After running DevCon it says DevCon failed, But in device manager i can see a
> unknown device is installed but need to update/reinstall the driver. on
> reboot windows ask for driver but it does not use my one. I just need to go
> in device manager and update the driver.
>
> --
> SachinS
>
>
> "Tim Roberts" wrote:
>
> > SachinS <SachinS(a)discussions.microsoft.com> wrote:
> > >
> > >I think ChangeDisplaySettings and ChangeDisplaySettingsEx can be used only
> > >when driver is loaded (mirror.sys) at boot time, and this can only happen
> > >when we have installed the mirror driver using a given .inf file through Add
> > >Legacy Device from device manager. Now I want to install this without device
> > >manager's command. I just wanted to install it automatically so that
> > >Mirror.exe can use the installed driver.
> >
> > You can't do it silently. Imagine what a security risk that would be.
> >
> > >using DPinst.exe i am only able to put the package into driver store. so i
> > >need to install it again from device manger.
> >
> > Anything device manager can do, can also be done with devcon, and the
> > devcon source will show you how to do it in your own application.
> >
> > >Is this mirror driver a pnp or nonpnp?
> >
> > GDI drivers are not PnP.
> > --
> > Tim Roberts, timr(a)probo.com
> > Providenza & Boekelheide, Inc.
> >
From: SachinS on
Yes, now I can isntall using devcon.exe.
Thank you very much.

--
SachinS


"Pravin S. Waghurde" wrote:

> hi sachin,
> According to your mirror.inf file
>
> [Mirror.Mfg]
> %Mirror% = mirror, Microsoft_Mirror_Sample1
>
> "Microsoft_Mirror_Sample1" is your HardwareId.
> so whenever you want to install your mirror driver you have to use this
> HardwareId with devcon.exe.
> -To install try this
> "devcon install mirror.inf Microsoft_Mirror_Sample1"
> it will install your mirror driver silenty, if it is signed with valid
> cetrificate.
> -To uninstall try this
> "devcon remover Microsoft_Mirror_Sample1"
> it will uninstall your mirror driver.
>
>
>
> "SachinS" wrote:
>
> > After running DevCon it says DevCon failed, But in device manager i can see a
> > unknown device is installed but need to update/reinstall the driver. on
> > reboot windows ask for driver but it does not use my one. I just need to go
> > in device manager and update the driver.
> >
> > --
> > SachinS
> >
> >
> > "Tim Roberts" wrote:
> >
> > > SachinS <SachinS(a)discussions.microsoft.com> wrote:
> > > >
> > > >I think ChangeDisplaySettings and ChangeDisplaySettingsEx can be used only
> > > >when driver is loaded (mirror.sys) at boot time, and this can only happen
> > > >when we have installed the mirror driver using a given .inf file through Add
> > > >Legacy Device from device manager. Now I want to install this without device
> > > >manager's command. I just wanted to install it automatically so that
> > > >Mirror.exe can use the installed driver.
> > >
> > > You can't do it silently. Imagine what a security risk that would be.
> > >
> > > >using DPinst.exe i am only able to put the package into driver store. so i
> > > >need to install it again from device manger.
> > >
> > > Anything device manager can do, can also be done with devcon, and the
> > > devcon source will show you how to do it in your own application.
> > >
> > > >Is this mirror driver a pnp or nonpnp?
> > >
> > > GDI drivers are not PnP.
> > > --
> > > Tim Roberts, timr(a)probo.com
> > > Providenza & Boekelheide, Inc.
> > >