Now Installation is done properly. and its loading into my outlook.
However on uninstallation I am getting exception.
Unable to access some registry key.
HKEY_CURRENT_USER->HKEY_CURRENT_USER\Software->HKEY_CURRENT_USER\Software\Microsoft- >HKEY_CURRENT_USER\Software\Microsoft\Protected
Storage System Provider->S-1-5-21-2387995053-655477512-1356042935-1849.
"Ken Slovak - [MVP - Outlook]" wrote:
> If your addin isn't registered obviously it won't run. Look at the
> registration properties for your setup project and see what's going on
> there. There should be entries for your addin going to
> HKCU\Software\Microsoft\Office\Outlook\Addins\. There also should be entries
> for HKCU\Software\Classes\ that set the registration for your addin assembly
> classes.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Professional Programming Outlook 2007.
> Reminder Manager, Extended Reminders, Attachment Options.
> http://www.slovaktech.com/products.htm
>
>
> "Neetu" <Neetu@discussions.microsoft.com> wrote in message
> news:A99E71AB-607E-4FB8-B13E-F6D19797BE47@microsoft.com...
> >I am testing installer in my own development machine only.
> > Code Access has been added into machine. however there is no entry of my
> > addin in registry.
>
>
I have no idea what that key is, you have to examine it in the registry
editor to see what it references, and see in your installer if you are
setting up that registry key.
"Neetu" <Neetu@discussions.microsoft.com> wrote in message
news:A6715719-4C76-4619-AD8A-17A61743E301@microsoft.com...
> Hello Ken,
>
> I went through this article for Addin deployment
> http://msdn.microsoft.com/en-us/library/bb386179.aspx.
>
> Now Installation is done properly. and its loading into my outlook.
>
> However on uninstallation I am getting exception.
>
> Unable to access some registry key.
> HKEY_CURRENT_USER->HKEY_CURRENT_USER\Software->HKEY_CURRENT_USER\Software\Microsoft- >HKEY_CURRENT_USER\Software\Microsoft\Protected
> Storage System Provider->S-1-5-21-2387995053-655477512-1356042935-1849.
Cindy M -WordMVP- Messages: 483 Registered: June 2006 Location: NULL
Senior Member
Hi =?Utf-8?B?ZHBvbXQ=?=,
> what I want to do is to change D&D behavior when an image from explorer
> is dropped to word. The standard behavior of Word is to embed the image - I
> want to insert only a reference/link to the image. I did not find any
> possiblity to let Word link the image. When doing a D&D with right mouse
> button, Word displays a context
> menu with "link here", but it's grayed out.
>
> Any suggestions how I could achive to get a linked image when
> doing D&D from explorer to Word - either by changing some Word settings or by
> implemting an add-in - are greatly appreciated.
>
I can't really provide any concrete help, just give you some information.
1. There is no setting in Word you can change to enable Word to do this
automatically.
2. Word provides no drag-and-drop events. You'd need to use an Add-in and work
with what Word exposes to the Windows API. There have been some discussions
along this line in the VSTO forum (http://social.msdn.microsoft.com/Forums/en-
US/vsto/threads/#page:1), for example. Those mainly focus on drag-and-drop from
a task pane in the Word application to the document, but I imagine the same
principles would apply to most scenarios.
Beyond that, the WindowSelectionChange event of the Word Application should
fire when something is dropped on the document. Problem is, it will fire at
just about anything except typing text...
v-jzho Messages: 139 Registered: August 2008 Location: NULL
Senior Member
Hello dpomt,
Based on my research, the right click drag/drop can fit this demand in my
side. When I right click a picture file and drag it from the Windows
Explorer into my Word document, I can see there pops up a context menu with
the following options,
*Move Here
*Copy Here
*Create Shortcut Here
*Create Hyperlink Here
*Cancel.
Only the Create Shortcut Here option is disabled(gray out). And when I
click the "Create Hyperlink Here", it drops the picture's url into the
document, but the picture is not embedded in that document. I have tried in
the Word 2003 and 2007. They both work like this way. Is this behavior you
are trying to achieve? If I misunderstood the issue, please feel free to
correct me!
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at: msdnmg@microsoft.com.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at http://support.microsoft.com/select/default.aspx?target=assi stance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
dpomt Messages: 16 Registered: August 2008 Location: NULL
Junior Member
Hello Ji,
thanks for your quick reply.
> Only the Create Shortcut Here option is disabled(gray out). And when I
> click the "Create Hyperlink Here", it drops the picture's url into the
> document, but the picture is not embedded in that document. I have tried in
> the Word 2003 and 2007. They both work like this way. Is this behavior you
> are trying to achieve? If I misunderstood the issue, please feel free to
> correct me!
I have to clarify: what I want to do is not to insert a hyperlink (this
works fine) but a shortcut (the option that is grayed out).
Re: How do I get the CurrentUICulture in my Office AddIn to match Windows? [message #443779]
Mon, 17 November 2008 02:27
Cindy M -WordMVP- Messages: 483 Registered: June 2006 Location: NULL
Senior Member
Hi David,
> Lets say a user is running on the English version of Windows but is
> running Office in German. In that case I want my AddIn to be in German
> - to match office. So I need to set the CurrentUICulture to match that
> of Office.
>
Right. My question crossed with your discussion with Ji and Tony. (Off-
line reader, and I forgot to hit "send" before closing down that day.)
> Spoke too soon - for Excel & PPT it only has LanguageSettings and that
> wants a MsoAppLanguageID - what do I pass for that ID as I think that
> sets the language - and I need to get the language in use.
>
This appears to be what you need. It returns the msoLanguageID (such as
1033) the user is seeing.
Here's the entire Enum listing from the Office 2007 Help:
msoLanguageIDExeMode 4 Execution mode language.
msoLanguageIDHelp 3 Help language.
msoLanguageIDInstall 1 Install language.
msoLanguageIDUI 2 User interface language.
msoLanguageIDUIPrevious 5 User interface language used prior to the
current user interface language.
>Hi David,
>
>> Lets say a user is running on the English version of Windows but is
>> running Office in German. In that case I want my AddIn to be in German
>> - to match office. So I need to set the CurrentUICulture to match that
>> of Office.
>>
>Right. My question crossed with your discussion with Ji and Tony. (Off-
>line reader, and I forgot to hit "send" before closing down that day.)
>
>> Spoke too soon - for Excel & PPT it only has LanguageSettings and that
>> wants a MsoAppLanguageID - what do I pass for that ID as I think that
>> sets the language - and I need to get the language in use.
>>
>This appears to be what you need. It returns the msoLanguageID (such as
>1033) the user is seeing.
>
>Application.LanguageSettings.LanguageID
>(Office.MsoAppLanguageId.msoLanguageIDUI)
>
>Here's the entire Enum listing from the Office 2007 Help:
>
>msoLanguageIDExeMode 4 Execution mode language.
>msoLanguageIDHelp 3 Help language.
>msoLanguageIDInstall 1 Install language.
>msoLanguageIDUI 2 User interface language.
>msoLanguageIDUIPrevious 5 User interface language used prior to the
>current user interface language.
>
>
>Cindy Meister
>INTER-Solutions, Switzerland
>http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
>http://www.word.mvps.org
>
>This reply is posted in the Newsgroup; please post any follow question
>or reply in the newsgroup and not by e-mail :-)
Re: AddIn running on 2003 & 2007 - same system [message #443781]
Mon, 17 November 2008 02:54
Cindy M -WordMVP- Messages: 483 Registered: June 2006 Location: NULL
Senior Member
Hi David,
> We have a customer who has both Office 2003 & Office 2007 installed on
> their computer. They want our AddIn to run on both. And they want the
> Ribbon in the 2007 version so just installing the 2003 version is not
> cutting it for them.
>
> How can we do this?
>
I'd say they need to install (and pay for?) both, not just one or the
other. I'd probably set them to "load-on-demand", then create a third
add-in (load automatically) to load the appropriate one, based on which
application version it has loaded into.
You might point out to them that Microsoft does not support parallel
installation of Office applications (and hasn't supported them for over
a decade). (I'm sure that's documented somewhere, on-line, but I don't
know where, right off-hand.) You yourself know that, from your ventures
into the VSTO technology. Given that fact, it shouldn't be surprising
that your software doesn't support that, either. (I almost typed
"reasonable", but changed my mind when I thought about what clients
consider reasonable <sigh>).
Beyond that, if you seriously want to support the parallel installation
scenario, I think you need to look at splitting out your application-
specific code from the main add-in. The main add-in checks which
application version it's loading in, then calls the application-specific
code in the outside DLL. This means your main add-in would reference the
2003 PIAs, I guess...
>Hi David,
>
>> We have a customer who has both Office 2003 & Office 2007 installed on
>> their computer. They want our AddIn to run on both. And they want the
>> Ribbon in the 2007 version so just installing the 2003 version is not
>> cutting it for them.
>>
>> How can we do this?
>>
>I'd say they need to install (and pay for?) both, not just one or the
>other. I'd probably set them to "load-on-demand", then create a third
>add-in (load automatically) to load the appropriate one, based on which
>application version it has loaded into.
>
>You might point out to them that Microsoft does not support parallel
>installation of Office applications (and hasn't supported them for over
>a decade). (I'm sure that's documented somewhere, on-line, but I don't
>know where, right off-hand.) You yourself know that, from your ventures
>into the VSTO technology. Given that fact, it shouldn't be surprising
>that your software doesn't support that, either. (I almost typed
>"reasonable", but changed my mind when I thought about what clients
>consider reasonable <sigh>).
>
>Beyond that, if you seriously want to support the parallel installation
>scenario, I think you need to look at splitting out your application-
>specific code from the main add-in. The main add-in checks which
>application version it's loading in, then calls the application-specific
>code in the outside DLL. This means your main add-in would reference the
>2003 PIAs, I guess...
>
>Cindy Meister
>INTER-Solutions, Switzerland
>http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
>http://www.word.mvps.org
>
>This reply is posted in the Newsgroup; please post any follow question
>or reply in the newsgroup and not by e-mail :-)
what does office2003-kb907417sfxcab-ENU.exe do? [message #444040]
Mon, 17 November 2008 16:10
David Thielen Messages: 1375 Registered: June 2006 Location: NULL
Senior Member
Hi;
We are running into maore and more companies where their security
settings won't let them run a .exe - and we need the hotfix in
office2003-kb907417sfxcab-ENU.exe
What does that do? We can then write a .msi program to do the same
thing. Or is there a .msi equivilent?
We have a winform application that uses VSTO to add tasks to Outlook with the option of setting reminders. The problem is that if Outlook is Not running in their desktop, or the Outlook TaskTray applet is not visible when a reminder occurs. The reminder is still displayed giving the user the option to dismiss the task, but from that point on they cannot open Outlook! I am guessing that is because Outlook sees that the process is already running (but it is a subordinate process) an ignores the open command and tries to make the subordinate process explorer window active? How do I solve this?
Now I want to change the default displayName "Personal Folder" (Italian
speak: "Cartelle Personali") with my company name. First I get the object
store:
private Store CheckStore(string storePath)
{
foreach (Store obj in this.DefaultNameSpace.Stores)
{
if (obj.FilePath == storePath)
return obj;
}
return null;
}
and, conseguently, add this code after create .pst file:
this.DefaultNameSpace.AddStoreEx(@"C:\DATI\IDROESSE\IDROESSE.PST ",
OlStoreType.olStoreDefault);
Store sto = this.CheckStore(@"C:\DATI\IDROESSE\IDROESSE.PST");
if (sto != null)
the call to SetProperty generate an UnauthorizedAccessException. The
permission on the path C:\DATI\IDROESSE\ is full control for each Domain
Users. Why I get an Exception? How can I resolve the problem?
thanks in advance
Rolando Tonin
PR_DISPLAY_NAME is read only for a store, it's set by the store provider.
You would have to write your own store provider in Extended MAPI to be able
to set that property as desired.
"Rolando Tonin" <RolandoTonin@discussions.microsoft.com> wrote in message
news:330630FD-A8DD-4660-B06F-EF5BC70B41A5@microsoft.com...
> I’m developing an Outlook2007
> AddIn in C# with Visual Studio 2008 and VSTO 3.0.
> I create an .pst file with this code:
>
> this.DefaultNameSpace.AddStoreEx(@"C:\DATI\IDROESSE\IDROESSE.PST ",
> OlStoreType.olStoreDefault);
>
> Now I want to change the default displayName "Personal Folder" (Italian
> speak: "Cartelle Personali") with my company name. First I get the object
> store:
>
> private Store CheckStore(string storePath)
> {
> foreach (Store obj in this.DefaultNameSpace.Stores)
> {
> if (obj.FilePath == storePath)
> return obj;
> }
> return null;
> }
> and, conseguently, add this code after create .pst file:
>
> this.DefaultNameSpace.AddStoreEx(@"C:\DATI\IDROESSE\IDROESSE.PST ",
> OlStoreType.olStoreDefault);
> Store sto = this.CheckStore(@"C:\DATI\IDROESSE\IDROESSE.PST");
> if (sto != null)
>
> sto.PropertyAccessor.SetProperty("http://schemas.microsoft.com/mapi/proptag/0x3001001E",
> "Idroesse");
>
> the call to SetProperty generate an UnauthorizedAccessException. The
> permission on the path C:\DATI\IDROESSE\ is full control for each Domain
> Users. Why I get an Exception? How can I resolve the problem?
> thanks in advance
> Rolando Tonin