I posted it a while ago, but here it is again.

The "magic" bit in the registry is based upon your
Palm user ID #.  For -me- the registry entry is:

--- begin mr-inst.reg ---
REGEDIT4

[HKEY_CURRENT_USER\Software\U.S. Robotics\Pilot Desktop\HotSync Manager]
"Install31250"=dword:00000001
--- end mr-inst.reg ---

So ... run the standard install app once.  Run regedit and
go to the HotSync Manager key in the registry.  There will
be an "Install#####" value there.  You don't even have
to remember the #, just export the key into a file (mine
is called mr-inst.reg because my user directory is \Pilot\mr
... there have been other threads discussing the odd way that
palm treats user names if you put in your middle initial, so I
won't go into that here).

Aaaanyway.  Now that you've got your magic registry file
it's simple to create a batch file like this:

--- begin add.bat ---
copy "%1" p:\mr\install
regedit p:\mr-inst.reg
--- end add.bat ---

Again, your install directory will be based on your user name,
so you'll have to change this batch file to match the path of your
install directory.

That's it!  You're done!  You can now install files w/ one simple
command line.

What's better is that after the first one has been installed
from the batch file, you can just copy any others -- the registry
bit only needs to be set once, not once for each file.

--
-Richard M. Hartman
[EMAIL PROTECTED]

186,000 mi/sec: not just a good idea, it's the LAW!


Chris Faherty wrote in message <11420@palm-dev-forum>...
>
>On 12-May-2000 revcom wrote:
>
>> I am trying to run InstApp in a windows .BAT file. I can say:
>>
>> InstApp myapp.prc
>
>Actually you can copy the files yourself into the /Palm/username/Install
>directory.  The problem is that there is some magical registry bit that
>InstApp sets to indicate that there are files to install.  I wish I could
>find that stupid bit or remove its requirement in the install conduit
because
>it utterly destroys my cron experiment where I wanted to simply do this:
>
>cd ~/Pilot/showtimes
>if [ $? == 0 ]; then
>  ./getdata.pl
>  cd ~/Pilot/Install
>  if [ $? == 0 ]; then
>    smbclient file://house/c -N -c 'prompt;cd /Palm/dennyf/Install;mput *'
>  fi
>fi
>
>Now it just copies the files but Palm just sits there Duh! and doesn't know
>there are new files to sync with that user.
>
>
>/* Chris Faherty <[EMAIL PROTECTED]>                 */
>/* Your Stock has crashed - you must now restart your system */
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to