As you probably know, you have to figure out a way to select the Palm
desktop user. In any case to ensure that your pdb/prc is going to the
correct Palm, you need to select the Palm desktop user. I am assuming the PC
has more than one Palm desktop user. I have a similar app ( a separate exe,
very similar to the install tool) where the user can select the Palm desktop
user from a combo box. I use PltGetUserCount and PltGetUser to fill the
combo box. Once you get the Palm desktop user the call to PltInstallFile is
very simple. If you need more help, I can mail you some sample code.
HTH.
-Sugho-
From: Tom Zerucha <[EMAIL PROTECTED]>
Reply-To: "Palm Developer Forum" <[email protected]>
To: "Palm Developer Forum" <[email protected]>
Subject: Re: Finding Developers - Install Aide how?
Date: Mon, 28 Aug 2000 14:58:11 -0400
On Mon, Aug 28, 2000 at 01:43:49PM -0400, Brian Mathis wrote:
> On Mon, 28 Aug 2000, Tom Zerucha wrote:
> [...]
> > The second question concerns doing an install conduit, specifically
> > asking for an example that installs a database with all the calls in
> > context. They say use the install aide, and list all the calls, but
> > nothing between. There are NO official palm examples, at least for
> > Windows. Alternately, how to call the install tool.
>
> In other words, "Palm won't write my program for me"? They gave you the
> info you probably need, unless you are trying to do something
> non-standard. I'm looking in the docs right now, and it seems (based on
> your short description here) PltInstallFile() would do the trick. What
> else do you need? Of course you'd need to write the supporting code
> around it.
PltInstallFile requires a user id as a parameter, and there is no
"default" user. Do I just grab whatever is in the first slot in the
get user list call? Can I just leave this NULL (it doesn't seem like
it). Is this called from a conduit DLL or external EXE program (at
least under windows - these seem to be integrated on the Mac)?
I identified the call early on. And the fact that I have to write
supporting code around it. Precisely what that supporting code has to
do and how to make it do it IS the question. No they don't have to
write it for me, but they should tell me what to write (or provide an
example).
There are various examples floating around, but they don't have any
comments either way from anyone from Palm Inc saying that is the right
or wrong way to do things.
I am actually trying to avoid doing something nonstandard, but there
is NO information as to what that standard is. Just a bunch of
disconnected calls into various DLLs.
I know how to make it work by hacking the registry and doing file
copies because I can see what happens when the installer does its
thing. I don't know how to produce the same effect with Palm's calls.
Especially if the program runs somewhere outside the palm install
directory, which is very likely since I am writing a utility, not a
conduit - how do I use a DLL I can't find?
No, they don't give the information I need, or at least I am unable to
interpret what I have. I haven't asked many questions on the PalmOS
API, nor about the conduit API because the information for those
things IS available and there are enough pieces floating around to
understand what each call does in the context of the system.
That is not true of the install aide API, nor is the installer program
documented (I can blindly pass it lists of files as if they were
dragged and dropped on the icon, but that doesn't seem to work all the
time nor on all systems - that generated a lot of bug reports on lots
of windows systems).
I have a PDB (or prc) somewhere on a windows system (95,98,NT, or 2K)
and would like to have it installed next hotsync. I only have a call
that takes a parameter that I don't know how to set (calls returning a
list of possible settings isn't the same thing) in an DLL I can't
find.
For now, my users have to generate the pdb somewhere they can write to
and manually do the install.
If it's that simple, it should be shorter than this message:
installpdb(char *pdbpath) {
//Insert your reply here
PltInstallFile(
//and here
);
}
main(int argc, char *argv[]) {
if( argc != 2) exit(-1);
installpdb(argv[1]);
}
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/