2012-01-13 53 views
2

我们使用Windows Installer/MSI 而不是 ClickOnce。如何设置VSTO 4.0先决条件?

我们沿用了国家对我们的 VSTO的Outlook加载项创建一个Windows Installer这个详细的Microsoft文章:

Deploying a Visual Studio Tools for the Office System 3.0 Solution for the 2007 Microsoft Office System Using Windows Installer

这很好,但总是与这些长期的,复杂的,详细的脚本安装说明有问题了解什么是安全的,以适应我们自己的情况。

在我们的案例中,我们使用的是VS2010和VSTO4,说明适用于VSTO3。所以我们使用这些指令创建的启动器会抱怨缺少的VSTO3。

我们需要改变什么?我们为VSTO4插入什么?以下是文章的相关摘要:

6. In the Properties window, perform the following tasks. 
    a) Set the value of (Name) to Search for VSTO 3.0 Runtime. 
    b) Change the value of Property to VSTORUNTIME. 
    c) Set the value of RegKey to Software\Microsoft\vsto runtime Setup\v9.0.21022 
    d) Leave the Root property set to vsdrrHKLM. 
    e) Change the Value property to Install. 

7. In the Launch Conditions(ExcelAddInSetup) editor, select the Condition1 launch condition, right-click the condition and select Properties Window. 

8. In the Properties window, perform the following tasks. 
    a) Set (Name) to Verify VSTO 3.0 Runtime availability. 
    b) Change the value of the Condition property to the following VSTORUNTIME = "#1" 
    c) Leave the InstallURL property blank. 
    d) Change the value of the Message property to The Visual Studio Tools for Office 3.0 Runtime is not installed. Please run Setup.exe. 

正是这种最后一个错误(我们自己启动条件错误,如果你喜欢),这是在目标计算机上射击。

未安装Visual Studio Tools for Office 3.0 Runtime。 请运行Setup.exe

回答