Outlook 2003 VSTO Addin deployment on Windows Vista - Registry and other issues - How to
-
Hello everybody, First of all thanks a lot for all of yours' support on forums, blogs and dev networks with the help of which development becomes very easy and motivating. I've developed an addin for Outlook 2003 using VSTO SE and VS 2005 (C#). By referring to the articles regarding deployment I was able to manage to create its MSI installer from setup and deployment project in the solution. The addin gets properly installed on other machines having Outlook 2003 and works there fine. All the security policies are granted properly as well. I am using SetSecurity project for granting trust to assemblies. For that I had referred to articles Deploying Visual Studio 2005 Tools for Office Solutions Using Windows Installer Part 1 & 2 (http://msdn.microsoft.com/en-us/library/aa537173(office.11).aspx) (http://msdn.microsoft.com/en-us/library/aa537179.aspx) Now I want to deploy the same addin for Windows Vista. I am aware of the issues faced due to UAC. The major issue is regarding admin access to installer and need of presence of registry keys in HKLM when UAC is turned off. In my installer project I can add those additional registry keys in Registry view. Now my questions are (finally ...) 1. I want to know whether it is possible to use a single installer for Windows XP and Windows Vista. If yes, how can I determine OS version in my Custom Actions or Launch Conditions? 2. If answer to previous question is positive then are there any changes required in method of granting trust to assemblies For Windows Vista? I've already stated that I'm using modified version of SetSecurity project for that. 3. How can determine in Windows Vista whether the UAC has been turned on or off? How can I set a registry launch condition for that so that I can register additional keys in HKLM hive. I'm anyways going to add keys in HKCU for both XP as well as Vista. 4. How can I add those registry keys if I find that it's Windows Vista and UAC is turned off? I've read articles. They say all about where to change in the registry of Windows Vista, but not how to change it. * Deploying Application Level Addins (http://msdn.microsoft.com/en-us/library/ms269007(VS.80).aspx) * Deploying Visual Studio 2005 Tools for the Office System SE Solutions Using Windows Installer (Part 1 of 2) (http://msdn.microsoft.com/en-us/library/bb332051.aspx) * Deploying Visual Studio 2005 Tools for the Office System SE Solutions Using Windows Installer: Walkthroughs (Part 2 of 2) (http://msdn.microsoft.com/en-us/library
-
Hello everybody, First of all thanks a lot for all of yours' support on forums, blogs and dev networks with the help of which development becomes very easy and motivating. I've developed an addin for Outlook 2003 using VSTO SE and VS 2005 (C#). By referring to the articles regarding deployment I was able to manage to create its MSI installer from setup and deployment project in the solution. The addin gets properly installed on other machines having Outlook 2003 and works there fine. All the security policies are granted properly as well. I am using SetSecurity project for granting trust to assemblies. For that I had referred to articles Deploying Visual Studio 2005 Tools for Office Solutions Using Windows Installer Part 1 & 2 (http://msdn.microsoft.com/en-us/library/aa537173(office.11).aspx) (http://msdn.microsoft.com/en-us/library/aa537179.aspx) Now I want to deploy the same addin for Windows Vista. I am aware of the issues faced due to UAC. The major issue is regarding admin access to installer and need of presence of registry keys in HKLM when UAC is turned off. In my installer project I can add those additional registry keys in Registry view. Now my questions are (finally ...) 1. I want to know whether it is possible to use a single installer for Windows XP and Windows Vista. If yes, how can I determine OS version in my Custom Actions or Launch Conditions? 2. If answer to previous question is positive then are there any changes required in method of granting trust to assemblies For Windows Vista? I've already stated that I'm using modified version of SetSecurity project for that. 3. How can determine in Windows Vista whether the UAC has been turned on or off? How can I set a registry launch condition for that so that I can register additional keys in HKLM hive. I'm anyways going to add keys in HKCU for both XP as well as Vista. 4. How can I add those registry keys if I find that it's Windows Vista and UAC is turned off? I've read articles. They say all about where to change in the registry of Windows Vista, but not how to change it. * Deploying Application Level Addins (http://msdn.microsoft.com/en-us/library/ms269007(VS.80).aspx) * Deploying Visual Studio 2005 Tools for the Office System SE Solutions Using Windows Installer (Part 1 of 2) (http://msdn.microsoft.com/en-us/library/bb332051.aspx) * Deploying Visual Studio 2005 Tools for the Office System SE Solutions Using Windows Installer: Walkthroughs (Part 2 of 2) (http://msdn.microsoft.com/en-us/library
Chaitanya Joshi wrote:
how can I determine OS version in my Custom Actions or Launch Conditions?
Chaitanya Joshi wrote:
How can I add those registry keys if I find that it's Windows Vista and UAC is turned off?
See here[^] ( Also notice where this page is in MSDN (see the location links at the top ), it's in the Windows Installer Documentation. You may find many answers here, like this one, if you just look )
-
Chaitanya Joshi wrote:
how can I determine OS version in my Custom Actions or Launch Conditions?
Chaitanya Joshi wrote:
How can I add those registry keys if I find that it's Windows Vista and UAC is turned off?
See here[^] ( Also notice where this page is in MSDN (see the location links at the top ), it's in the Windows Installer Documentation. You may find many answers here, like this one, if you just look )
Thanks Led... Very precious links. But word about MSDN links... I was not investigating what registry keys were to be added but where to add them as in which section of VS Setup & Deployment Project by checking the necessary conditions. Thanks for help though...
-
Thanks Led... Very precious links. But word about MSDN links... I was not investigating what registry keys were to be added but where to add them as in which section of VS Setup & Deployment Project by checking the necessary conditions. Thanks for help though...