Tool Manager autoload

254 views
Skip to first unread message

Sally4

unread,
Mar 17, 2012, 8:19:49 AM3/17/12
to MapInfo-L
Is there a way to *programatically* remove the autoload settings in
Tool Manager that are created by default when MI is installed or
updated?

Or even better, to remove certain programs from the default Tool
Manager list?

Bill Thoen

unread,
Mar 17, 2012, 10:56:48 AM3/17/12
to mapi...@googlegroups.com
Ii vaguely remember that there's some code by MapInfo (in the Mapbasic
Samples directory? The source code for the Tool Manager?) that tells you
how to register program to the Tools menu via a DLL, so maybe you can
look at that and see if there's enough info there so that you can figure
out how to reverse the process.

Sally4

unread,
Mar 17, 2012, 11:02:41 AM3/17/12
to MapInfo-L
I have looked in the MapBasic \Samples directory, and there are MB
listings for the individual Tools but not for the Tool Manager.

In the MapInfo \Tools directory there is a file REGINFO.INI which is a
listing of all the tools together with their Autoload settings. This
would be easy to update from a MB program but it doesn't appear to do
anything! It doesn't update if you manually change the Autoload
settings through the menu. In fact you can actually remove the file
altogether - it doesn't change anything.

zer...@gmail.com

unread,
Mar 17, 2012, 11:18:18 AM3/17/12
to MapInfo-L
AFAIK, autoload settings was store in registry, and if I'm not mistaken registry key for each value was different in each installation. So if you want to 'programatically' manage tool manager settings then I think you should played around in registry. I think the problem is that differences of the registry key for each machine. Eg: the easyloader tool will be registered as key 55678 in one machine but it will have a different key number in another machine.

Regards,
Zery
Powered by Telkomsel BlackBerry®

From: Sally4 <Sallya...@btinternet.com>
Date: Sat, 17 Mar 2012 08:02:41 -0700 (PDT)
Subject: [MI-L] Re: Tool Manager autoload
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en

Sally4

unread,
Mar 17, 2012, 12:52:04 PM3/17/12
to MapInfo-L
Thank you Zery, yes you are right. Every tool has its own key in
HKEY_USERS.
Since my users have different versions of Windows and MapInfo, I don't
think it would be wise to try and deal with this with registry tweaks.

I don't see where that REGINFO.INI file comes into it. It seems to be
redundant, perhaps it's for backwards compatibility with early
versions of Windows.


On Mar 17, 3:18 pm, zery...@gmail.com wrote:
> AFAIK, autoload settings was store in registry, and if I'm not mistaken registry key for each value was different in each installation. So if you want to 'programatically' manage tool manager settings then I think you should played around in registry. I think the problem is that differences of the registry key for each machine. Eg: the easyloader tool will be registered as key 55678 in one machine but it will have a different key number in another machine.
>
> Regards,
> ZeryZery</div>
> Powered by Telkomsel BlackBerry®
>
>
>
>
>
>
>
> -----Original Message-----
> From: Sally4 <Sallyann1...@btinternet.com>
>
> Sender: mapi...@googlegroups.com
> Date: Sat, 17 Mar 2012 08:02:41
> To: MapInfo-L<mapi...@googlegroups.com>
> Reply-To: mapi...@googlegroups.com

Peter Horsbøll Møller

unread,
Mar 18, 2012, 5:44:09 AM3/18/12
to mapi...@googlegroups.com
The reg file could be used to load the tools into the registry. Not sure if that is the case and why it is there afterwards.

You could programmatically loop thru the tools in the registry and turn AutoLoad "off" for those that are "on".
But that would require that the person/user running your tool has permissions to edit the registry.

Reading/writing registry keys has been discussed in this thread: 

And there is also a knowledgebase article discussing how to add a MapBasic tool to the Tool Manager - maybe you can use some of the stuff discussed there as well: 

Peter Horsbøll Møller
Pitney Bowes Software


2012/3/17 Sally4 <Sallya...@btinternet.com>

Sally4

unread,
Mar 18, 2012, 8:45:02 AM3/18/12
to MapInfo-L

On Mar 18, 9:44 am, Peter Horsbøll Møller <mapinf...@horsboll-
moller.dk> wrote:
> The reg file could be used to load the tools into the registry. Not sure if
> that is the case and why it is there afterwards.
>
> You could programmatically loop thru the tools in the registry and turn
> AutoLoad "off" for those that are "on".
> But that would require that the person/user running your tool has
> permissions to edit the registry.
>
That would not be appropriate in this case Peter. The reason for
removing tools is that the customer wants his users to stay within the
custom applications and not use some of the extra tools that could
make unwelcome changes.

> Reading/writing registry keys has been discussed in this thread:https://groups.google.com/forum/?fromgroups#!topic/mapinfo-l/3-tZ25Begmk
>
> And there is also a knowledgebase article discussing how to add a MapBasic
> tool to the Tool Manager - maybe you can use some of the stuff discussed
> there as well:http://testdrive.mapinfo.com/techsupp/miprod.nsf/2dcd2e03799251b18525...
>
That's a very interesting article. I will see where it leads me. Thank
you Peter.

Spencer M. Simpson Jr.

unread,
Mar 19, 2012, 10:45:10 AM3/19/12
to mapi...@googlegroups.com

Administrators should have no problem giving users write permissions to specific keys under HKEY_CURRENT_USERS – in fact, they may already have the required permission, because the MapInfo AddUser process, which runs under the user’s own context, has to write stuff there.      I was able to do this in REGEDIT for a non-admin user on a Windows 7 box

 


Spencer

peter horsboll moller

unread,
Mar 19, 2012, 12:26:20 PM3/19/12
to mapi...@googlegroups.com
Yeah, you are right.
Otherwise the MI Pro users wouldn't be able to turn on/off autoload or add tools of their own to the Tool Manager

Peter



Fra: Spencer M. Simpson Jr. <ssim...@baltometro.org>
Sendt: 19. marts 2012 15:45
Til: mapi...@googlegroups.com
Emne: RE: [MI-L] Re: Tool Manager autoload
--
Reply all
Reply to author
Forward
0 new messages