I need to add the Advance Find button to the toolbar in outlook 2007 during my unattended deployment.
I know it stores the setting in the outcmd.dat file but don't think copying it everywhere is the correct solution.
Has anyone done anything like this??
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
The best way to do this would be to use the Outlook automation interface.

The quickest way to do that would be to record a macro in Outlook which adds the button. You'll then need to adapt the code produced from VBA to VB Script. Alt+F11 gets you into the VBA editor in Outlook (and other Office apps, of course). Mostly, that consists merely removing any data typing, i.e. where a line says something like 'Dim oOutlook As Outlook.Application', you edit it to 'Dim oOutlook'. Of course, you'll need to create the oOutlook object in your VBS code, too. Once you have working code (you can - and should - test it as a stand-alone script), add it as a Custom Action to your transform, ensuring that it executes once Outlook is installed.

You should be able to easily find sample code for Outlook automation. Try http://www.slipstick.com as a starting point.
Answered 05/15/2008 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity