🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #6525

Re: Installing printer drivers from within an application using the .INF file

#6525
From: Remy Lebeau (TeamB)
Date: Fri, 06 May 2005 09:30
30 lines
2109 bytes
"Terry" <unknown@unknown.com> wrote in message
news:427ad0de$1@newsgroups.borland.com...

>   ShellExecute(NULL, "Install", "d:\\test\\hp201ip5.inf", NULL, NULL,
> SW_SHOWNORMAL);

Use "install", not "Install".  Notice the lowercase "i".  Also, try passing
"d:\\test" as the lpDirectory parameter.

Also, what is the actual return value of ShellExecute()?  If <= 32, then an
error is occuring.

> However, the INF file has a section called SourceDisksName.x86,
> parameter 1 = %DiskID1%,,,""
>
> How do I pass it the parameter for DiskID1 or do I need to?

No.  "DiskID1" is merely a string variable that the .inf itself is
specifying in its "[Strings]" section, and has nothing to do with the actual
source directory to begin with.  If you read up on INF documentation, you
will find that the particular placement of %DiskID1% in the
"[SourceDiskNames.x86]" section is merely a display string that is shown if
a "file not found" dialog is shown to the user.

The way your .inf file is set up, all of the source files are in the same
folder as the .inf itself.


Gambit
Technical Details
Message-ID: <427b38ec@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <427a6de2$2@newsgroups.borland.com> <427a7c38$1@newsgroups.borland.com> <427ad0de$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6289a58596aed8d8
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <427a6de2$2@newsgroups.borland.com> <427a7c38$1@newsgroups.borland.com> <427ad0de$1@newsgroups.borland.com>
Subject: Re: Installing printer drivers from within an application using the .INF file
Date: Fri, 6 May 2005 02:30:59 -0700
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <427b38ec@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1115371756 68.69.17.41 (6 May 2005 02:29:16 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail