Article View: borland.public.cppbuilder.nativeapi
Article #11737Re: How to install a cab file
From: Hans Galema
Date: Thu, 22 Jan 2004 13:01
Date: Thu, 22 Jan 2004 13:01
35 lines
2013 bytes
2013 bytes
eric67 wrote:
> How can I install a cab file from code?
Never did that. So I don't know. But reading your post I miss info
for beeing able to follow the story, and willing to learn have some questions.
What is the filename of the cab file?
In which directory is it ? (Complete path).
> WinExec("c:/windows/sistem32/rundll32.exe
> setupapi,InstallHinfSection DefaultInstall 132
> c:/mysetuppath/sample.inf" ..);
> and the dll is actually copied to destination
And that I do not understand. I miss here the cabfilename/path
and not the dll is named but the inf. How does rundll32.exe
find your cabfile ?
> ....I think I should install the cab file i.e I
> can't manually explode the cab and run the inf file. Am I right?
Of course it is possible to manually extract files from a cabfile.
> I think I have two choices:
> 1) rewrite the inf file (never done! howto?)
....
> 2) install the cab file directly
Whith that you meant: extract the files in the cabfile and
running the inf ?
Hans.
Technical Details
Message-ID:
<400fc877$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<400edac4@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,8e64f91dc9dc3b30 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-01-22 05:09:59 PST Date: Thu, 22 Jan 2004 14:01:10 +0100 From: Hans Galema <dontusethis@dontusethis.nl> User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.6b) Gecko/20031208 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: How to install a cab file References: <400edac4@newsgroups.borland.com> In-Reply-To: <400edac4@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.108.11 Message-ID: <400fc877$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1074776183 129.125.108.11 (22 Jan 2004 04:56:23 -0700) Lines: 35 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail