TargetPlatform属性 - > VSTO 2010 Addin [英] TargetPlatform property -> VSTO 2010 Addin

查看:67
本文介绍了TargetPlatform属性 - > VSTO 2010 Addin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我使用VSTO 2010(Office组件for 4.0 Target Framework)创建了一个Outlook Addin。我想为以下场景创建一个Windows Installer:


1。 Outlook 2010 - 32位和Windows 7 - 32位


2。 Outlook 2010 - 32位和Windows 7 - 64位


3。 Outlook 2010 - 64位和Windows 7 - 32位


4。 Outlook 2010 - 64位和Windows 7 - 64位


我想知道我必须创建多少个不同的MSI?


我应该设置什么在Tar​​getPlatform(x86或x64)?


是针对Outlook或Windows机器的TargetPlatform吗?


 


<另外,我还使用VC ++类库项目和C#类库。我应该使用VC ++的哪些先决条件(x86或x64)?是否有一个引导程序可以使用两者中的任何一个类似于VSTO 2010运行时的引导程序?


 


我知道有很多问题但如果有人能回答的话会很好。


谢谢


Kulvinder

解决方案

只是一个更新:


我有一台Windows 7 64位机器和Outlook 2010 - 32位。


<我将我的Windows安装程序的目标平台更改为x64并在我的机器上运行安装程序,一旦打开Outlook,我得到一个提示是否我信任该加载项。但是,在早期的情况下,当我使用x32作为目标平台运行相同的插件时,
我没有收到任何此类提示。我为什么收到消息?我是管理员用户,我认为两者都是"Program Files"。和"Program Files(x86)"和"Program Files(x86)"。是受信任的文件夹,在这两种情况下都不应该提示Trust。任何人都可以请b $ b解释吗?


 


谢谢


Hi,

I have created an Outlook Addin using using VSTO 2010 (Office component for 4.0 Target Framework). I want to created a Windows Installer for the following scenarios :

1. Outlook 2010 - 32 bit and Windows 7 - 32 bit

2. Outlook 2010 - 32 bit and Windows 7 - 64 bit

3. Outlook 2010 - 64 bit and Windows 7 - 32 bit

4. Outlook 2010 - 64 bit and Windows 7 - 64 bit

I want to know how many different MSI i have to create ?

What should i set in TargetPlatform (x86 or x64) ?

Is TargetPlatform for Outlook or for windows machine ?

 

Also, i am using VC++ class library project as well along with C# class library. Which prerequisite for VC++ i should use (x86 or x64) ? Is there are a bootstrapper that can use either of the two on its own similar to the one for VSTO 2010 runtime ?

 

I know there are a lot of questions but it will be great if somebody can answer.

Thanks


Kulvinder

解决方案

Just an update :

I have a Windows 7 64 bit machine and Outlook 2010 - 32 bit.

I changed the target platform of my windows installer to x64 and run the setup on my machine and as soon as i opened Outlook, i got a prompt whether i trust the add-in or not. However, in the earlier case when i run the same addin with x32 as target platform, i didnt receive any such prompt. Why did i got the message ? I am the administrator user and i thought both "Program Files" and "Program Files (x86)" are trusted folders and there should be no prompt for Trust in both the cases. Can anyone explain please ?

 

Thanks


这篇关于TargetPlatform属性 - &gt; VSTO 2010 Addin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆