hi all
i have a driver, that has no hardware associated with it.
how can my setup.exe install it?
assaf
hi all
i have a driver, that has no hardware associated with it.
how can my setup.exe install it?
assaf
On Fri, 2004-08-27 at 17:14, assaf wrote:
hi all
i have a driver, that has no hardware associated with it.
how can my setup.exe install it?
Just use the SCM API as if you were installing any other type of
service. I actually always just edit the registry directly, though -
add something to HKLM\SYSTEM\CCS\SERVICES. This is documented in the
PSDK.
-sd
Not always Driver will be associated with Driver. Setup.exe(or
Installer) can install the driver. Installing mean it will just update
some registry entries. So, when your driver loads, it will do what
ever it suppose to do.
Regards,
Yash K.S
On Sat, 28 Aug 2004 00:14:14 +0200, assaf wrote:
> hi all
>
> i have a driver, that has no hardware associated with it.
> how can my setup.exe install it?
>
> assaf
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
Yeah sure, if your driver is a legacy (non-PnP NT4 style) driver then just
use the service control manager api documented in the SDK to
install/uninstall your driver.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of assaf
Sent: Friday, August 27, 2004 6:14 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] how can my setup.exe install a driver that
has no hardware associated with it?hi all
i have a driver, that has no hardware associated with it.
how can my setup.exe install it?assaf
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256You are currently subscribed to ntdev as:
xxxxx@hollistech.com To unsubscribe send a blank email to
xxxxx@lists.osr.com
are there any code samples?
assaf
----- Original Message -----
From: “Steve Dispensa”
To: “Windows System Software Devs Interest List”
Sent: Friday, August 27, 2004 11:25 PM
Subject: Re: [ntdev] how can my setup.exe install a driver that has no
hardware associated with it?
> On Fri, 2004-08-27 at 17:14, assaf wrote:
> > hi all
> >
> > i have a driver, that has no hardware associated with it.
> > how can my setup.exe install it?
>
> Just use the SCM API as if you were installing any other type of
> service. I actually always just edit the registry directly, though -
> add something to HKLM\SYSTEM\CCS\SERVICES. This is documented in the
> PSDK.
>
> -sd
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@hotmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
Sure. Even Platform SDK contains some. It is easier to ask than to actually read docs or search, right?
Note there is no need to manually edit registry even if one is too lazy to write a piece of code. sc.exe which is part of OS installation allows complete legacy driver or service installation and configuration from command line. It exposes most of SCM API functionality.
Best regards,
Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http:://www.upek.com]
From: xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com] on behalf of assaf[SMTP:xxxxx@hotmail.com]
Reply To: Windows System Software Devs Interest List
Sent: Saturday, August 28, 2004 12:32 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] how can my setup.exe install a driver that has no hardware associated with it?are there any code samples?
assaf
----- Original Message -----
From: “Steve Dispensa”
> To: “Windows System Software Devs Interest List”
> Sent: Friday, August 27, 2004 11:25 PM
> Subject: Re: [ntdev] how can my setup.exe install a driver that has no
> hardware associated with it?
>
>
> > On Fri, 2004-08-27 at 17:14, assaf wrote:
> > > hi all
> > >
> > > i have a driver, that has no hardware associated with it.
> > > how can my setup.exe install it?
> >
> > Just use the SCM API as if you were installing any other type of
> > service. I actually always just edit the registry directly, though -
> > add something to HKLM\SYSTEM\CCS\SERVICES. This is documented in the
> > PSDK.
> >
> > -sd
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@hotmail.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@upek.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
hi michal
how r u?
could u plz tell me more about sc.exe ?
assaf
----- Original Message -----
From: “Michal Vodicka”
To: “Windows System Software Devs Interest List”
Sent: Saturday, August 28, 2004 12:27 AM
Subject: RE: [ntdev] how can my setup.exe install a driver that has no
hardware associated with it?
Sure. Even Platform SDK contains some. It is easier to ask than to actually
read docs or search, right?
Note there is no need to manually edit registry even if one is too lazy to
write a piece of code. sc.exe which is part of OS installation allows
complete legacy driver or service installation and configuration from
command line. It exposes most of SCM API functionality.
Best regards,
Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http:://www.upek.com]
> ----------
> From:
xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com] on
behalf of assaf[SMTP:xxxxx@hotmail.com]
> Reply To: Windows System Software Devs Interest List
> Sent: Saturday, August 28, 2004 12:32 AM
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] how can my setup.exe install a driver that has no
hardware associated with it?
>
> are there any code samples?
>
> assaf
>
> ----- Original Message -----
> From: “Steve Dispensa”
> To: “Windows System Software Devs Interest List”
> Sent: Friday, August 27, 2004 11:25 PM
> Subject: Re: [ntdev] how can my setup.exe install a driver that has no
> hardware associated with it?
>
>
> > On Fri, 2004-08-27 at 17:14, assaf wrote:
> > > hi all
> > >
> > > i have a driver, that has no hardware associated with it.
> > > how can my setup.exe install it?
> >
> > Just use the SCM API as if you were installing any other type of
> > service. I actually always just edit the registry directly, though -
> > add something to HKLM\SYSTEM\CCS\SERVICES. This is documented in the
> > PSDK.
> >
> > -sd
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@hotmail.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@upek.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
Start command prompt and run “sc” from command line (w2k and above). It will tell you more on its own. Then ask for help for commands you need. For example “sc create help” will display options how to install driver or service.
Best regards,
Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http:://www.upek.com]
From: xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com] on behalf of assaf[SMTP:xxxxx@hotmail.com]
Reply To: Windows System Software Devs Interest List
Sent: Saturday, August 28, 2004 2:20 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] how can my setup.exe install a driver that has no hardware associated with it?hi michal
how r u?could u plz tell me more about sc.exe ?
assaf
----- Original Message -----
From: “Michal Vodicka”
> To: “Windows System Software Devs Interest List”
> Sent: Saturday, August 28, 2004 12:27 AM
> Subject: RE: [ntdev] how can my setup.exe install a driver that has no
> hardware associated with it?
>
>
> Sure. Even Platform SDK contains some. It is easier to ask than to actually
> read docs or search, right?
>
> Note there is no need to manually edit registry even if one is too lazy to
> write a piece of code. sc.exe which is part of OS installation allows
> complete legacy driver or service installation and configuration from
> command line. It exposes most of SCM API functionality.
>
> Best regards,
>
> Michal Vodicka
> UPEK, Inc.
> [xxxxx@upek.com, http:://www.upek.com]
>
> > ----------
> > From:
> xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com] on
> behalf of assaf[SMTP:xxxxx@hotmail.com]
> > Reply To: Windows System Software Devs Interest List
> > Sent: Saturday, August 28, 2004 12:32 AM
> > To: Windows System Software Devs Interest List
> > Subject: Re: [ntdev] how can my setup.exe install a driver that has no
> hardware associated with it?
> >
> > are there any code samples?
> >
> > assaf
> >
> > ----- Original Message -----
> > From: “Steve Dispensa”
> > To: “Windows System Software Devs Interest List”
> > Sent: Friday, August 27, 2004 11:25 PM
> > Subject: Re: [ntdev] how can my setup.exe install a driver that has no
> > hardware associated with it?
> >
> >
> > > On Fri, 2004-08-27 at 17:14, assaf wrote:
> > > > hi all
> > > >
> > > > i have a driver, that has no hardware associated with it.
> > > > how can my setup.exe install it?
> > >
> > > Just use the SCM API as if you were installing any other type of
> > > service. I actually always just edit the registry directly, though -
> > > add something to HKLM\SYSTEM\CCS\SERVICES. This is documented in the
> > > PSDK.
> > >
> > > -sd
> > >
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as: xxxxx@hotmail.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@upek.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@upek.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
hi michal
hello everyone,
my driver is a mirror display driver.
i have an inf file that installs it perfect.
normally, i use the System -> Hardware -> Add new hardware wizard
from which i specify the inf file.
but this is not friendly for customers.
so, from my setup.exe, how can i ‘run’ the inf?
assaf
----- Original Message -----
From: “Michal Vodicka”
To: “Windows System Software Devs Interest List”
Sent: Saturday, August 28, 2004 2:34 AM
Subject: RE: [ntdev] how can my setup.exe install a driver that has no
hardware associated with it?
Start command prompt and run “sc” from command line (w2k and above). It will
tell you more on its own. Then ask for help for commands you need. For
example “sc create help” will display options how to install driver or
service.
Best regards,
Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http:://www.upek.com]
> ----------
> From:
xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com] on
behalf of assaf[SMTP:xxxxx@hotmail.com]
> Reply To: Windows System Software Devs Interest List
> Sent: Saturday, August 28, 2004 2:20 AM
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] how can my setup.exe install a driver that has no
hardware associated with it?
>
> hi michal
> how r u?
>
> could u plz tell me more about sc.exe ?
>
> assaf
>
> ----- Original Message -----
> From: “Michal Vodicka”
> To: “Windows System Software Devs Interest List”
> Sent: Saturday, August 28, 2004 12:27 AM
> Subject: RE: [ntdev] how can my setup.exe install a driver that has no
> hardware associated with it?
>
>
> Sure. Even Platform SDK contains some. It is easier to ask than to
actually
> read docs or search, right?
>
> Note there is no need to manually edit registry even if one is too lazy to
> write a piece of code. sc.exe which is part of OS installation allows
> complete legacy driver or service installation and configuration from
> command line. It exposes most of SCM API functionality.
>
> Best regards,
>
> Michal Vodicka
> UPEK, Inc.
> [xxxxx@upek.com, http:://www.upek.com]
>
> > ----------
> > From:
> xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com]
on
> behalf of assaf[SMTP:xxxxx@hotmail.com]
> > Reply To: Windows System Software Devs Interest List
> > Sent: Saturday, August 28, 2004 12:32 AM
> > To: Windows System Software Devs Interest List
> > Subject: Re: [ntdev] how can my setup.exe install a driver that has no
> hardware associated with it?
> >
> > are there any code samples?
> >
> > assaf
> >
> > ----- Original Message -----
> > From: “Steve Dispensa”
> > To: “Windows System Software Devs Interest List”
> > Sent: Friday, August 27, 2004 11:25 PM
> > Subject: Re: [ntdev] how can my setup.exe install a driver that has no
> > hardware associated with it?
> >
> >
> > > On Fri, 2004-08-27 at 17:14, assaf wrote:
> > > > hi all
> > > >
> > > > i have a driver, that has no hardware associated with it.
> > > > how can my setup.exe install it?
> > >
> > > Just use the SCM API as if you were installing any other type of
> > > service. I actually always just edit the registry directly, though -
> > > add something to HKLM\SYSTEM\CCS\SERVICES. This is documented in the
> > > PSDK.
> > >
> > > -sd
> > >
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as: xxxxx@hotmail.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@upek.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@upek.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
Hi,
You should check out the Setup API[1] which lets you open INF files, extract
info from them etc. I haven’t checked, but I assume this is the API the ‘Add
new hardware wizard’ uses to install drivers.
[1]
http://msdn.microsoft.com/library/?url=/library/en-us/setupapi/setup/start_p
age.asp?frame=true
Hope this helps you!
–andy
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-185733-
xxxxx@lists.osr.com] On Behalf Of assaf
Sent: Saturday, August 28, 2004 9:03 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] how can my setup.exe install a driver that has no
hardware associated with it?hi michal
hello everyone,my driver is a mirror display driver.
i have an inf file that installs it perfect.normally, i use the System -> Hardware -> Add new hardware wizard
from which i specify the inf file.
but this is not friendly for customers.so, from my setup.exe, how can i ‘run’ the inf?
assaf
----- Original Message -----
From: “Michal Vodicka”
> To: “Windows System Software Devs Interest List”
> Sent: Saturday, August 28, 2004 2:34 AM
> Subject: RE: [ntdev] how can my setup.exe install a driver that has no
> hardware associated with it?
>
>
> Start command prompt and run “sc” from command line (w2k and above). It
> will
> tell you more on its own. Then ask for help for commands you need. For
> example “sc create help” will display options how to install driver or
> service.
>
> Best regards,
>
> Michal Vodicka
> UPEK, Inc.
> [xxxxx@upek.com, http:://www.upek.com]
>
> > ----------
> > From:
> xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com]
> on
> behalf of assaf[SMTP:xxxxx@hotmail.com]
> > Reply To: Windows System Software Devs Interest List
> > Sent: Saturday, August 28, 2004 2:20 AM
> > To: Windows System Software Devs Interest List
> > Subject: Re: [ntdev] how can my setup.exe install a driver that has no
> hardware associated with it?
> >
> > hi michal
> > how r u?
> >
> > could u plz tell me more about sc.exe ?
> >
> > assaf
> >
> > ----- Original Message -----
> > From: “Michal Vodicka”
> > To: “Windows System Software Devs Interest List”
> > Sent: Saturday, August 28, 2004 12:27 AM
> > Subject: RE: [ntdev] how can my setup.exe install a driver that has no
> > hardware associated with it?
> >
> >
> > Sure. Even Platform SDK contains some. It is easier to ask than to
> actually
> > read docs or search, right?
> >
> > Note there is no need to manually edit registry even if one is too lazy
> to
> > write a piece of code. sc.exe which is part of OS installation allows
> > complete legacy driver or service installation and configuration from
> > command line. It exposes most of SCM API functionality.
> >
> > Best regards,
> >
> > Michal Vodicka
> > UPEK, Inc.
> > [xxxxx@upek.com, http:://www.upek.com]
> >
> > > ----------
> > > From:
> > xxxxx@lists.osr.com[SMTP:bounce-185693-
> xxxxx@lists.osr.com]
> on
> > behalf of assaf[SMTP:xxxxx@hotmail.com]
> > > Reply To: Windows System Software Devs Interest List
> > > Sent: Saturday, August 28, 2004 12:32 AM
> > > To: Windows System Software Devs Interest List
> > > Subject: Re: [ntdev] how can my setup.exe install a driver that has no
> > hardware associated with it?
> > >
> > > are there any code samples?
> > >
> > > assaf
> > >
> > > ----- Original Message -----
> > > From: “Steve Dispensa”
> > > To: “Windows System Software Devs Interest List”
> > > Sent: Friday, August 27, 2004 11:25 PM
> > > Subject: Re: [ntdev] how can my setup.exe install a driver that has no
> > > hardware associated with it?
> > >
> > >
> > > > On Fri, 2004-08-27 at 17:14, assaf wrote:
> > > > > hi all
> > > > >
> > > > > i have a driver, that has no hardware associated with it.
> > > > > how can my setup.exe install it?
> > > >
> > > > Just use the SCM API as if you were installing any other type of
> > > > service. I actually always just edit the registry directly, though
> -
> > > > add something to HKLM\SYSTEM\CCS\SERVICES. This is documented in
> the
> > > > PSDK.
> > > >
> > > > -sd
> > > >
> > > >
> > > >
> > > > —
> > > > Questions? First check the Kernel Driver FAQ at
> > > http://www.osronline.com/article.cfm?id=256
> > > >
> > > > You are currently subscribed to ntdev as: xxxxx@hotmail.com
> > > > To unsubscribe send a blank email to leave-ntdev-
> xxxxx@lists.osr.com
> > > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as: xxxxx@upek.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: unknown lmsubst tag argument:
> ‘’
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@upek.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@frisurf.no
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
It doesn't seem to be part of w2k... Unless it's hidden somewhere?
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
Andreas
----- Original Message -----
From: "Michal Vodicka"
To: "Windows System Software Devs Interest List"
Sent: Saturday, August 28, 2004 2:34 AM
Subject: RE: [ntdev] how can my setup.exe install a driver that has no
hardware associated with it?
Start command prompt and run "sc" from command line (w2k and above). It will
tell you more on its own. Then ask for help for commands you need. For
example "sc create help" will display options how to install driver or
service.
In Resource Kit I think.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Andreas Hansson”
To: “Windows System Software Devs Interest List”
Sent: Monday, August 30, 2004 6:09 PM
Subject: Re: [ntdev] how can my setup.exe install a driver that has no hardware
associated with it?
> It doesn’t seem to be part of w2k… Unless it’s hidden somewhere?
>
> —
> Microsoft Windows 2000 [Version 5.00.2195]
> (C) Copyright 1985-2000 Microsoft Corp.
>
> H:>sc create help
> ‘sc’ is not recognized as an internal or external command,
> operable program or batch file.
> —
>
>
> Andreas
>
>
> ----- Original Message -----
> From: “Michal Vodicka”
> To: “Windows System Software Devs Interest List”
> Sent: Saturday, August 28, 2004 2:34 AM
> Subject: RE: [ntdev] how can my setup.exe install a driver that has no
> hardware associated with it?
>
>
> Start command prompt and run “sc” from command line (w2k and above). It will
> tell you more on its own. Then ask for help for commands you need. For
> example “sc create help” will display options how to install driver or
> service.
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
It looks like what you need is DEVCON. This is a DDK tool and the code is
found in the setup section of the DDK samples.
This will allow you to ask the system to create a PDO with no hardware and
you can specify which INF to use for the FDO.
You have two alternatives: SC with no INF; or DEVCON with a INF.
Mat
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of assaf
Sent: Saturday, August 28, 2004 7:03 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] how can my setup.exe install a driver that has no
hardware associated with it?
hi michal
hello everyone,
my driver is a mirror display driver.
i have an inf file that installs it perfect.
normally, i use the System -> Hardware -> Add new hardware wizard
from which i specify the inf file.
but this is not friendly for customers.
so, from my setup.exe, how can i ‘run’ the inf?
assaf
----- Original Message -----
From: “Michal Vodicka”
To: “Windows System Software Devs Interest List”
Sent: Saturday, August 28, 2004 2:34 AM
Subject: RE: [ntdev] how can my setup.exe install a driver that has no
hardware associated with it?
Start command prompt and run “sc” from command line (w2k and above). It will
tell you more on its own. Then ask for help for commands you need. For
example “sc create help” will display options how to install driver or
service.
Best regards,
Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http:://www.upek.com]
> ----------
> From:
xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com] on
behalf of assaf[SMTP:xxxxx@hotmail.com]
> Reply To: Windows System Software Devs Interest List
> Sent: Saturday, August 28, 2004 2:20 AM
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] how can my setup.exe install a driver that has no
hardware associated with it?
>
> hi michal
> how r u?
>
> could u plz tell me more about sc.exe ?
>
> assaf
>
> ----- Original Message -----
> From: “Michal Vodicka”
> To: “Windows System Software Devs Interest List”
> Sent: Saturday, August 28, 2004 12:27 AM
> Subject: RE: [ntdev] how can my setup.exe install a driver that has no
> hardware associated with it?
>
>
> Sure. Even Platform SDK contains some. It is easier to ask than to
actually
> read docs or search, right?
>
> Note there is no need to manually edit registry even if one is too lazy to
> write a piece of code. sc.exe which is part of OS installation allows
> complete legacy driver or service installation and configuration from
> command line. It exposes most of SCM API functionality.
>
> Best regards,
>
> Michal Vodicka
> UPEK, Inc.
> [xxxxx@upek.com, http:://www.upek.com]
>
> > ----------
> > From:
> xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com]
on
> behalf of assaf[SMTP:xxxxx@hotmail.com]
> > Reply To: Windows System Software Devs Interest List
> > Sent: Saturday, August 28, 2004 12:32 AM
> > To: Windows System Software Devs Interest List
> > Subject: Re: [ntdev] how can my setup.exe install a driver that has no
> hardware associated with it?
> >
> > are there any code samples?
> >
> > assaf
> >
> > ----- Original Message -----
> > From: “Steve Dispensa”
> > To: “Windows System Software Devs Interest List”
> > Sent: Friday, August 27, 2004 11:25 PM
> > Subject: Re: [ntdev] how can my setup.exe install a driver that has no
> > hardware associated with it?
> >
> >
> > > On Fri, 2004-08-27 at 17:14, assaf wrote:
> > > > hi all
> > > >
> > > > i have a driver, that has no hardware associated with it.
> > > > how can my setup.exe install it?
> > >
> > > Just use the SCM API as if you were installing any other type of
> > > service. I actually always just edit the registry directly, though -
> > > add something to HKLM\SYSTEM\CCS\SERVICES. This is documented in the
> > > PSDK.
> > >
> > > -sd
> > >
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as: xxxxx@hotmail.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@upek.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@upek.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@encentrus.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
From your original post you wrote:
" normally, i use the System -> Hardware -> Add new hardware wizard from
which i specify the inf file.
but this is not friendly for customers.
so, from my setup.exe, how can i ‘run’ the inf?"
IMO using sc.exe or something similar will be a lot more unfriendly for
your customers then using the ‘Add new hw wiz’.
Do you create your ‘setup.exe’ yourself or do you use setup-products from
WISE or InstallShield? If you create it yourself then it is quite easy to
just use the Setup API from Platform SDK to install the driver from your INF
(that’s how you ‘run’ the INF…).
The easiest is to use the InstallHinfSection[1] API (you can call it via
rundll32.exe for use in batch files etc. if you prefer that), which can
install a section of your INF file.
[1]
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/setupapi/se
tup/installhinfsection.asp
–andy
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-185874-
xxxxx@lists.osr.com] On Behalf Of Andreas Hansson
Sent: Tuesday, August 31, 2004 12:09 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] how can my setup.exe install a driver that has no
hardware associated with it?It doesn’t seem to be part of w2k… Unless it’s hidden somewhere?
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.H:\>sc create help
‘sc’ is not recognized as an internal or external command,
operable program or batch file.Andreas
----- Original Message -----
From: “Michal Vodicka”
> To: “Windows System Software Devs Interest List”
> Sent: Saturday, August 28, 2004 2:34 AM
> Subject: RE: [ntdev] how can my setup.exe install a driver that has no
> hardware associated with it?
>
>
> Start command prompt and run “sc” from command line (w2k and above). It
> will
> tell you more on its own. Then ask for help for commands you need. For
> example “sc create help” will display options how to install driver or
> service.
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@frisurf.no
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
Come on, I don’t think the OP ever though of asking the user to directly use
sc. He was thinking of calling sc from his installation script.
Mat
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Andreas H?ber
Sent: Monday, August 30, 2004 11:44 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] how can my setup.exe install a driver that has no
hardware associated with it?
From your original post you wrote:
" normally, i use the System -> Hardware -> Add new hardware wizard from
which i specify the inf file.
but this is not friendly for customers.
so, from my setup.exe, how can i ‘run’ the inf?"
IMO using sc.exe or something similar will be a lot more unfriendly for
your customers then using the ‘Add new hw wiz’.
Do you create your ‘setup.exe’ yourself or do you use setup-products from
WISE or InstallShield? If you create it yourself then it is quite easy to
just use the Setup API from Platform SDK to install the driver from your INF
(that’s how you ‘run’ the INF…).
The easiest is to use the InstallHinfSection[1] API (you can call it via
rundll32.exe for use in batch files etc. if you prefer that), which can
install a section of your INF file.
[1]
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/setupapi/se
tup/installhinfsection.asp
–andy
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-185874-
xxxxx@lists.osr.com] On Behalf Of Andreas Hansson
Sent: Tuesday, August 31, 2004 12:09 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] how can my setup.exe install a driver that has no
hardware associated with it?It doesn’t seem to be part of w2k… Unless it’s hidden somewhere?
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.H:\>sc create help
‘sc’ is not recognized as an internal or external command,
operable program or batch file.Andreas
----- Original Message -----
From: “Michal Vodicka”
> To: “Windows System Software Devs Interest List”
> Sent: Saturday, August 28, 2004 2:34 AM
> Subject: RE: [ntdev] how can my setup.exe install a driver that has no
> hardware associated with it?
>
>
> Start command prompt and run “sc” from command line (w2k and above). It
> will
> tell you more on its own. Then ask for help for commands you need. For
> example “sc create help” will display options how to install driver or
> service.
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@frisurf.no
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@encentrus.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
OK, it seems sc.exe was part of w2k Resource Kit (I have it there) and was made part of XP installation later. Or maybe some w2k SP added it; I just don’t have live w2k installation available.
d:\>ver
4NT 4.01A Windows XP 5.1
d:\>which sc
sc is an external : E:\WINDOWS\system32\sc.exe
Best regards,
Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http://www.upek.com]
From: xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com] on behalf of Maxim S. Shatskih[SMTP:xxxxx@storagecraft.com]
Reply To: Windows System Software Devs Interest List
Sent: Monday, August 30, 2004 5:07 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] how can my setup.exe install a driver that has no hardware associated with it?In Resource Kit I think.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com----- Original Message -----
From: “Andreas Hansson”
> To: “Windows System Software Devs Interest List”
> Sent: Monday, August 30, 2004 6:09 PM
> Subject: Re: [ntdev] how can my setup.exe install a driver that has no hardware
> associated with it?
>
>
> > It doesn’t seem to be part of w2k… Unless it’s hidden somewhere?
> >
> > —
> > Microsoft Windows 2000 [Version 5.00.2195]
> > (C) Copyright 1985-2000 Microsoft Corp.
> >
> > H:>sc create help
> > ‘sc’ is not recognized as an internal or external command,
> > operable program or batch file.
> > —
> >
> >
> > Andreas
> >
> >
> > ----- Original Message -----
> > From: “Michal Vodicka”
> > To: “Windows System Software Devs Interest List”
> > Sent: Saturday, August 28, 2004 2:34 AM
> > Subject: RE: [ntdev] how can my setup.exe install a driver that has no
> > hardware associated with it?
> >
> >
> > Start command prompt and run “sc” from command line (w2k and above). It will
> > tell you more on its own. Then ask for help for commands you need. For
> > example “sc create help” will display options how to install driver or
> > service.
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@upek.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
It wasn’t apparent what OP really wants from original question(s). Now it seems SetupDi API is what he needs. DevCon DDK source can be a good place to start. It may be easy or may not; SetupDi is one of the most messy APIs available.
Best regards,
Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http://www.upek.com]
From: xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com] on behalf of Andreas H?ber[SMTP:xxxxx@frisurf.no]
Reply To: Windows System Software Devs Interest List
Sent: Monday, August 30, 2004 5:43 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] how can my setup.exe install a driver that has no hardware associated with it?From your original post you wrote:
" normally, i use the System -> Hardware -> Add new hardware wizard from
which i specify the inf file.
but this is not friendly for customers.so, from my setup.exe, how can i ‘run’ the inf?"
IMO using sc.exe or something similar will be a lot more unfriendly for
your customers then using the ‘Add new hw wiz’.Do you create your ‘setup.exe’ yourself or do you use setup-products from
WISE or InstallShield? If you create it yourself then it is quite easy to
just use the Setup API from Platform SDK to install the driver from your INF
(that’s how you ‘run’ the INF…).The easiest is to use the InstallHinfSection[1] API (you can call it via
rundll32.exe for use in batch files etc. if you prefer that), which can
install a section of your INF file.[1]
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/setupapi/se
tup/installhinfsection.asp–andy
> -----Original Message-----
> From: xxxxx@lists.osr.com [mailto:bounce-185874-
> xxxxx@lists.osr.com] On Behalf Of Andreas Hansson
> Sent: Tuesday, August 31, 2004 12:09 AM
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] how can my setup.exe install a driver that has no
> hardware associated with it?
>
> It doesn’t seem to be part of w2k… Unless it’s hidden somewhere?
>
> —
> Microsoft Windows 2000 [Version 5.00.2195]
> (C) Copyright 1985-2000 Microsoft Corp.
>
> H:\>sc create help
> ‘sc’ is not recognized as an internal or external command,
> operable program or batch file.
> —
>
>
> Andreas
>
>
> ----- Original Message -----
> From: “Michal Vodicka”
> > To: “Windows System Software Devs Interest List”
> > Sent: Saturday, August 28, 2004 2:34 AM
> > Subject: RE: [ntdev] how can my setup.exe install a driver that has no
> > hardware associated with it?
> >
> >
> > Start command prompt and run “sc” from command line (w2k and above). It
> > will
> > tell you more on its own. Then ask for help for commands you need. For
> > example “sc create help” will display options how to install driver or
> > service.
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@frisurf.no
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@upek.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
There is a "Windows 2000 Driver Install Sample " ( and even remove ) in the older XP DDK Version 2600 . It seems to be omitted in
the newer versions …
path : \2600\src\setup\install\install.htm
syntax : >install.exe MyDriver.inf MyDriver
This source could be what yoiu need …
C.
----- Original Message -----
From: “Andreas H?ber”
To: “Windows System Software Devs Interest List”
Sent: Monday, August 30, 2004 5:43 PM
Subject: RE: [ntdev] how can my setup.exe install a driver that has no hardware associated with it?
> >From your original post you wrote:
> " normally, i use the System -> Hardware -> Add new hardware wizard from
> which i specify the inf file.
> but this is not friendly for customers.
>
> so, from my setup.exe, how can i ‘run’ the inf?"
>
> IMO using sc.exe or something similar will be a lot more unfriendly for
> your customers then using the ‘Add new hw wiz’.
>
> Do you create your ‘setup.exe’ yourself or do you use setup-products from
> WISE or InstallShield? If you create it yourself then it is quite easy to
> just use the Setup API from Platform SDK to install the driver from your INF
> (that’s how you ‘run’ the INF…).
>
> The easiest is to use the InstallHinfSection[1] API (you can call it via
> rundll32.exe for use in batch files etc. if you prefer that), which can
> install a section of your INF file.
>
> [1]
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/setupapi/se
> tup/installhinfsection.asp
>
> --andy
>
> > -----Original Message-----
> > From: xxxxx@lists.osr.com [mailto:bounce-185874-
> > xxxxx@lists.osr.com] On Behalf Of Andreas Hansson
> > Sent: Tuesday, August 31, 2004 12:09 AM
> > To: Windows System Software Devs Interest List
> > Subject: Re: [ntdev] how can my setup.exe install a driver that has no
> > hardware associated with it?
> >
> > It doesn’t seem to be part of w2k… Unless it’s hidden somewhere?
> >
> > —
> > Microsoft Windows 2000 [Version 5.00.2195]
> > (C) Copyright 1985-2000 Microsoft Corp.
> >
> > H:>sc create help
> > ‘sc’ is not recognized as an internal or external command,
> > operable program or batch file.
> > —
> >
> >
> > Andreas
> >
> >
> > ----- Original Message -----
> > From: “Michal Vodicka”
> > To: “Windows System Software Devs Interest List”
> > Sent: Saturday, August 28, 2004 2:34 AM
> > Subject: RE: [ntdev] how can my setup.exe install a driver that has no
> > hardware associated with it?
> >
> >
> > Start command prompt and run “sc” from command line (w2k and above). It
> > will
> > tell you more on its own. Then ask for help for commands you need. For
> > example “sc create help” will display options how to install driver or
> > service.
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@frisurf.no
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@compaqnet.be
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
> so, from my setup.exe, how can i ‘run’ the inf?"
IMO using sc.exe or something similar will be a lot more unfriendly for
your customers then using the ‘Add new hw wiz’.Do you create your ‘setup.exe’ yourself or do you use setup-products from
WISE or InstallShield? If you create it yourself then it is quite easy to
just use the Setup API from Platform SDK to install the driver from your
INF
(that’s how you ‘run’ the INF…).
Its easy enough to create a plugin for the Wise installer that contains the
necessary guts of Devcon or one of the other installation tools. I did this
for a couple of my installs where I had to install legacy or USB drivers or
streaming drivers or some combination.
I would imagine there is a plugin concept for InstallShield too, but I don’t
use it so don’t know.
Basic technique is to work with devcon or one of the other install tools
until you know the calls you need to make to do the install, then pull that
part out into a dll for the installer.
Loren
I would suggest writing a small install program and calling it from your
installer. It’s amazing how picky some customers can be about which
install program you use, and it’s handier to have a portable way to do
your install.
Interesting question, though: devcon is a DDK sample, and the MSDN
license allows you to use and distribute the sample code. Does that
imply that one could just ship devcon and use it as your install
program, I wonder? Off to the lawyers… (just kidding).
Loren Wilton wrote:
>so, from my setup.exe, how can i ‘run’ the inf?"
>
>IMO using sc.exe or something similar will be a lot more unfriendly for
>your customers then using the ‘Add new hw wiz’.
>
>Do you create your ‘setup.exe’ yourself or do you use setup-products from
>WISE or InstallShield? If you create it yourself then it is quite easy to
>just use the Setup API from Platform SDK to install the driver from yourINF
>(that’s how you ‘run’ the INF…).
Its easy enough to create a plugin for the Wise installer that contains the
necessary guts of Devcon or one of the other installation tools. I did this
for a couple of my installs where I had to install legacy or USB drivers or
streaming drivers or some combination.I would imagine there is a plugin concept for InstallShield too, but I don’t
use it so don’t know.Basic technique is to work with devcon or one of the other install tools
until you know the calls you need to make to do the install, then pull that
part out into a dll for the installer.Loren
–
…/ray..
Please remove “.spamblock” from my email address if you need to contact
me outside the newsgroup.