|
Hello,
I've been playing with my VSTO 2005 SE Outlook addin under Vista RC2 using Office 2007 B2TR and the VSTO 2005 SE beta loader (I also run around a lot with scissors)
My first issue has been with the installer. I get a 'Error: 2869' that requires my users to go and either turn off UAC (can you imagine!) or run the MSI with 'Run as Administrator'. Obviously I don't like this and would feel bad for lots of good reasons.
What seems to fail is some custom action [RunInstaller] code that allocates the .NET Security Policy around my wee Add-in assembly. This code seems to work fine under XP before.
I had a look at how the VSTO Team recommends doing it and saw the tutorial/examples of SetSecurity/CaspolSecurityPolicyCreator.
It looks like that code seems to build a command line to shell out a Caspol.exe call and update the policy level like that. My code (that doesnt work under Vista) actually uses the 'code way', i.e. some 'machinePolicyLevel.RootCodeGroup.AddChild(codeGroup);' style calls.
So my question is (finally, he has a question..) was the VSTO example done like that on purpose, because it works under Vista or was it just 'one of those' things and nothing to do with my VSTO installer error?
Thanks for any help.
David |