You are viewing limited content. For full access, please sign in.

Question

Question

automate adding custom toolbar icons for users

asked on June 25, 2014

 

I have an external application with an .exe that I would like to add a ICON to the toolbar.  Currently we have to go in and configure LF for each of the machines running this application.

 

I knwo that in regedit there is the HKEY_CURRENT_USER >Software >Laserfiche >Client8 >Profile >Toolbars >Custom1 that lists the executable.  So this entry we could copy to those machines running the application.

 

However I am not sure under the HKEY_CURRENT_USER >Software >Laserfiche >Client8 >Toolbars- Bar0 or Bar1 or Bar2, etc.  which one controls the actual icon.  I would like to take that setting and copy it to the machines running the application also so that there will be no need for 'intervention'.  I am thinking of removing my icon and using regmon to determine which one it was so that I can identify it.

 

So Is there anything that I am missing? is there an easier way?

 

Thanks,

Bonnie

 

0 0

Answer

APPROVED ANSWER
replied on June 26, 2014

Hi Bonnie,

 

There's actually a string in each custom button key called "Icon" that indicates the path to the icon.  So in addition to pushing out the key to all your users, you'll also need to push out the icon file itself to everyone and make sure it's in the same location.

 

If I might make a suggestion, it may be worth your while to use the Client Automation Tools library available as part of the SDK to do this.  If you push out your button via the registry, users are still going to have to add the button to the toolbar manually.  If you use Client Automation Tools, you can programmatically place the button directly on the toolbar for your users.  There's even a sample version of a button-placing utility available as part of the SDK, if you want an example of how it works. Of course, it would require some coding know-how and a little research to get started, so if you've only got a few users, you may be better off just using the registry trick you're looking at currently.

0 0

Replies

replied on June 27, 2014

Is this using toolkit 8 or 9.

 

Thanks,

 

0 0
replied on June 30, 2014 Show version history

Hi Bonnie,

 

The Client Automation Tools library (CAT) was introduced in version 9.0.  So if you're using an older version of Laserfiche, you'll need to use the registry trick you mentioned earlier

0 0
replied on July 9, 2014

Hi,

 

Where is the "button-placing utility". I don't see it under LF 9.0 SDk.

0 0
replied on July 9, 2014 Show version history

When you installed the SDK, make sure you included the code samples. By default they install to C:\Program Files\Laserfiche\SDK 9.0\Samples (change to match your version of the SDK). The button manager code sample is in ClientAutomation Samples.zip, in a folder titled CustomButtonManager (under either the CSharp or VisualBasic folder).

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.