Outlook VSTO deployment - complete solution... soon!
Mads has written a post about the pain with deploying Outlook VSTO solution. I was prepared for the same pain, because I had planned to create a similar deployment solution next week - but he was first :). He also posted an article for complete solution which is still in work.
The idea is to create a custom prerequisite for VS2005 Bootstrapper which should check for VSTOR, PIAs and eventually Office 2003/Outlook installation. But there are some problems with verification of publishers' url... Links to the custom prereqs Mads and I created are in his article.
By the way a small and simple VSTO question. What happens when you run this code (myFolder is an Outlook folder != null :)):
PostItem pi = myFolder.Items.Add(Outlook.OlItemType.olPostItem) as Outlook.PostItem; "subjectsubjectsubject";
pi.Body = "bodybodybody";pi.UnRead = true;
pi.Delete();
Answer: The code will run but an "unexpected" thing happens - one would expect that the PostItem is deleted but if you set the UnRead property to true and then try to delete the post, the empty post will be added to the folder.