Uninstalling of Outlook addin (CommandBars)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am creating Outlook (and Word) addin. I have problem with issue when my
command bar remains in Outlook after addin uninstallation.

In Word, I solved it by setting CustomizationContext and it works great. In
Outlook I set temporary flag to true (Ken Slovak - Outlook MVP recomended it
as best practice). It works, but... I don't think this is best practice,
because command bar is not preserving its state. For example when user drags
command bar to another location, or disables it - in Word this user
customization is persisted in template used in CustomizationContext, but in
Outlook it doesn't (because of using temporary flag).

Now I have 2 choices in Outlook. Do not preserve state of command bar or do
not uninstall addin correctly.

It doesn't really exist something similar to Words CustomizationContext in
Outlook?

Thank you.
 
No, I tried it. If I set temporary flag to false, so I reuse toolbar,
position is saved (I don't know where Outlook saves this setting).

„Michael Bauer [MVP - Outlook]" napísal (napísala):
 
Outlook saves it in outcmd.dat, but saving it that way adds a problem -- if the user disables or uninstalls the add-in, the toolbar will remain. Michael's suggestion is the best practice approach.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


pozi said:
No, I tried it. If I set temporary flag to false, so I reuse toolbar,
position is saved (I don't know where Outlook saves this setting).

„Michael Bauer [MVP - Outlook]" napísal (napísala):
Even with Temporary set to False Outlook doesn't care about the bar's
position. You have to add that capabilities on your own, e.g. store the
values in the registry.

Am Sat, 22 Sep 2007 09:44:02 -0700 schrieb pozi:
 
Thank you very much.

I hoped there must be some other solution. Programming of saving/loading of
toolbar position or its visibility status means much more work to me :-(. I
believe, MS adds some Word-like "customizationcontext" to next Outlook
versions.

„Sue Mosher [MVP-Outlook]" napísal (napísala):
Outlook saves it in outcmd.dat, but saving it that way adds a problem -- if the user disables or uninstalls the add-in, the toolbar will remain. Michael's suggestion is the best practice approach.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


pozi said:
No, I tried it. If I set temporary flag to false, so I reuse toolbar,
position is saved (I don't know where Outlook saves this setting).

„Michael Bauer [MVP - Outlook]" napísal (napísala):
Even with Temporary set to False Outlook doesn't care about the bar's
position. You have to add that capabilities on your own, e.g. store the
values in the registry.

Am Sat, 22 Sep 2007 09:44:02 -0700 schrieb pozi:

I am creating Outlook (and Word) addin. I have problem with issue when my
command bar remains in Outlook after addin uninstallation.

In Word, I solved it by setting CustomizationContext and it works great.
In
Outlook I set temporary flag to true (Ken Slovak - Outlook MVP recomended
it
as best practice). It works, but... I don't think this is best practice,
because command bar is not preserving its state. For example when user
drags
command bar to another location, or disables it - in Word this user
customization is persisted in template used in CustomizationContext, but
in
Outlook it doesn't (because of using temporary flag).

Now I have 2 choices in Outlook. Do not preserve state of command bar or
do
not uninstall addin correctly.

It doesn't really exist something similar to Words CustomizationContext in
Outlook?

Thank you.
 
Back
Top