I use PltInstallFile and found it extremely easy to use.
The function is defined as:
int PltInstallFile(TCHAR *pUser, TCHAR *pFileSpec)
The first parameter is the name of the user (use PltGetUser to retrieve it) and the
second parameter is the fully qualified filename of the file you want to install.
Chris
On Mon, 06 Mar 2000 10:09:01 -0500 [EMAIL PROTECTED] wrote:
> Can PltInstallFile be made useful?
>
> In several messages on this forum there have been admonitions to use the
> API call to PltInstallFile to install files and, as is the duty of any go
> od citizen :-) if this is the recommended way, this is what I intended to
> do.
>
> Unfortunately, the CDK documentation does not offer a SINGLE example of u
> se of this API call and is quite impenetrably opaque as to what the FileI
> nstallType structure should be.
>
> typedef struct
> {
> TCHAR szDir[ 64 ];
> TCHAR szExt[ 256];
> DWORD dwMask;
> TCHAR szModule[ 256 ];
> DWORD dwCreatorID;
> TCHAR szName[ 256 ];
> } FileInstallType;
>
> I also searched the newsgroup archives with no better luck.
>
> The only field that appears obvious is szDir, the name of the folder cont
> aining the file to install. Most of the other fields seem to make sense f
> or a conduit but not for the installation of a simple prc file:
>
> � szExt - can this be blank?
>
> � dwMask - I could not find documentation on what to put here
>
> � szModule - The Install dll... What do I put if there is no dll, for
> example if the installer is an application?
>
> � dwCreatorID - is this needed and what should that be?
>
> � szName - documentation says name of the conduit. Is this the place t
> o put "MyApp.prc" ?
>
> Again, I could not find any documentation providing the answers. At this
> stage it appears simpler to reverse-engineer the registry setting than t
> o use this undocumented API call. I am at a loss to understand why a simp
> ler PltInstallPrc was not provided with two parameters being the name of
> the folder and the name of the prc file.
>
> Does anyone know the answer? I have written a simple Widows application
> that can be called from any installer (I am using Wise, myself) and I am
> proposing to make it freely available in source form. In the present form
> it does the user selection with a nice dialog and in a clean manner. I h
> ave not yet found the way to do the installation in the approved way...
>
>
> Why do this? More and more applications install some files on the PC - f
> or example the documentation - in addition to the prc files themselves.
> So it appears very desirable to offer a single installer file that does b
> oth and this should be easy if only PltInstallFile can be made useful.
>
>
> Jean Ichbiah
> Textware Solutions
> www.fitaly.com
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palm.com/devzone/mailinglists.html
This message sent using EMUmail. http://EmuMail.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html