That said, if you’re really desperate to have double clicking on the INF
file work, you could write the setup program Doron recommends, and
create a DefaultInstall section that CopyFiles your install files
somewhere and AddReg’s your setup program into the RunOnce key. The
setup program will then run “soon”, for values of “soon” that depend on
the OS version (including as late as “after a reboot” for NT 4).
RunOnce is generally deprecated in INF files, but it could be argued
that the usual reasons for not doing this (server-side installs and
other non-GUI environments) don’t really apply to the situation of
someone double-clicking on the INF file…
I wouldn’t do this myself (I doubt I’ll ever be that desperate, and I
don’t like being laughed at :-)… but it’s “possible”.
Doron Holan wrote:
This is not possible. There is not enough context in the INF to know
which pnp device to install just by double clicking on the INF. You
need an install app if you want to automate this.
D
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@wipro.com
Sent: Monday, April 26, 2004 11:36 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Regarding .INF file
Hi all,
I have written a .INF file for my serial port driver.
Now to install my driver what needs to be done is
Open device manager, right on “communication Port[COM1]” and select
“properties”.
Click on the driver tab and then click on “update driver” and then
proceed till the end.
Now if have to automate this whole process, so that if the user just
double clicks on the .inf file the driver should be automatically
installed, then what is the extra stuff I need to add in the .INF file ?
Thanx
Kiran
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
–
…/ray..
Please remove “.spamblock” from my email address if you need to contact
me outside the newsgroup.