二级ms office软件_如何将MS Office 2007修补程序作为必备软件包括在安装项目中

二级ms office软件

In this article, I will show how to use the Bootstrapper Manifest Generator (aka BMG) tool to build a bootstrap for MS Office Hotfix (You can use similar steps for any hotfix).

在本文中,我将展示如何使用Bootstrapper清单生成器(aka BMG)工具为MS Office Hotfix构建引导程序(您可以对任何修补程序使用类似的步骤)。

This tool will help us to build the folder required in the Visual Studio packages folder and it will show in the prerequisite window for the developer to add to its project window.

此工具将帮助我们构建Visual Studio软件包文件夹中所需的文件夹,并将显示在先决条件窗口中,供开发人员添加到其项目窗口中。

This list of Prerequisites, generated by Visual Studio, is based on the content of this specific folder:

Visual Studio生成的以下先决条件列表基于此特定文件夹的内容:

[Drive:]\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages

[驱动器:] \ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ Bootstr 包\包 年龄

Each sub folder in this Packages folder represents a Prerequisite (Redistributable package) and contains the following files:

此Packages文件夹中的每个子文件夹代表一个必备组件(可再发行组件包),并且包含以下文件:

- Product.xml manifest file

-Product.xml清单文件

- Package.xml manifest file

-Package.xml清单文件

- Redistributable files (Optional. If not found, the software will be downloaded over the Internet.)

-可再发行文件(可选。如果找不到,则该软件将通过Internet下载。)

The Bootstrapper Manifest Generator tool can downloaded from http://code.msdn.microsoft.com/bmg.

可以从http://code.msdn.microsoft.com/bmg下载Bootstrapper清单生成器工具。

We will be generating the Prerequisite for MS Office 2007. A recent hotfix (KB976811 available through KB976477) for Office 2007 allows us to register and load VSTO add-ins under HKLM for Office 2007.

我们将生成MS Office 2007的先决条件。Office 2007的最新修补程序(可通过KB976477获得KB976811 )使我们可以在HKLM下为Office 2007注册和加载VSTO加载项。

Target audience

目标观众

Developers using VS 2008 .NET to add hotfixes as prerequisites. In this case, we are adding  MS Office hotfix so that we can later on use this item to build a VSTO solutions for all users.

使用VS 2008 .NET来添加修补程序作为先决条件的开发人员。 在这种情况下,我们将添加MS Office修补程序,以便以后可以使用此项目为所有用户构建VSTO解决方案。

The following steps are required:

需要执行以下步骤:

1. Download the hotfix and unzipped to [Drive:]\temp ([Drive:]\temp\office-kb976477-fullfile-x86-glb.exe)

1.下载此修补程序,然后解压缩到[Drive:] \ temp([Drive:] \ temp \ office-kb97 6477-满 ile-x86-gl b.exe)

Note: MS will send the hotfix download link via email. Unzip the downloaded file with the provided password and make sure to test the hotfix before applying in your production environment.

注意:MS将通过电子邮件发送修补程序下载链接。 使用提供的密码解压缩下载的文件,并确保在生产环境中应用之前测试此修补程序。

2. Start the BMG tool (BMG.exe)

2.启动BMG工具(BMG.exe)

Note: Default location is "C:\Program Files\Microsoft\Bootstrapper Manifest Generator for VS2008\BMG.exe"

注意:默认位置是“ C:\ Program Files \ Microsoft \ Bootstrapp er清单生成器,用于VS2008 \ BMG.exe”

BMG new dialog

Figure 1 BMG main window

图1 BMG主窗口

3. In the main menu select File then New.

3.在主菜单中,选择文件,然后选择新建。

4. In the New Project dialog, select Package Manifest and click OK.

4.在“新建项目”对话框中,选择“打包清单”,然后单击“确定”。

BMG

5. In the new Project dialog, enter the Project Name as 'Hot fix KB976477 - Office 2007 All users'

5.在新的“项目”对话框中,将项目名称输入为“修补程序KB976477-Office 2007所有用户”

6. Click in the textbox for Product Code to automatically enter a value in it ('Hot.fix.KB976477.-.Office.2007.All.users')

6.在“产品代码”文本框中单击以在其中自动输入一个值('Hot.fix.KB976477 .-。Offic e.2007.All .user')

display

7. In the toolbar click Add Install File icon. In the Add File dialog box perform the following steps:

7.在工具栏中,单击“添加安装文件”图标。 在“添加文件”对话框中,执行以下步骤:

7.1 Click Browse and select the executable file which will install the Office hotfix ('office-kb976477-fullfile -x86-glb.e xe')

7.2 Click OK.

7.3 In the New Project dialog, notice that the filename and language are setup with the information from the previous steps.

8. In the New Project dialog, go to the field Display Name (the value shown as the Prerequisite name in Visual Studio), enter the value 'Hot fix KB976477 - Office 2007 All users'
7.1单击浏览,然后选择将安装Office修补程序的可执行文件('office-kb976477-fullfile -x86-glb.e xe')

7.2单击确定。

7.3在“新建项目”对话框中,请注意,已使用前面步骤中的信息设置了文件名和语言。

8.在“新建项目”对话框中,转到“显示名称”字段(该值在Visual Studio中显示为“先决条件名称”),输入值“修补程序KB976477-Office 2007所有用户”

9. In the New Project dialog, click the tab page Exit Codes

9.在“新建项目”对话框中,单击标签页“退出代码”

9.2 In Result combobox, select value 'Success'

9.2在“结果”组合框中,选择值“成功”

9.3 Uncheck Format Message From System

9.3取消选中来自系统的格式化消息

exit codes

10. In the toolbar click Build icon, the following steps are required:

10.在工具栏中单击“生成”图标,需要执行以下步骤:

10.1 Build Results will be opened, wait until the build is finished.

10.1构建结果将被打开,请等待构建完成。

10.3 Click the hyperlink on top of the window, next to 'Build Output'

10.3单击窗口顶部“构建输出”旁边的超链接。

10.4 In Windows Explorer, the folder containing the prerequisite package (Product.xml, office-kb976477-fullfile-x86-glb.exe and en folder) will be opened

10.4在Windows资源管理器中,该文件夹包含必备软件包(Product.xml,office-kb976477-fullfile-x 86-glb.exe 和en文件夹)将被打开

10.5 Copy this folder (Hot fix KB976477 - Office 2007 All users support) to the Packages folder

10.5将此文件夹(修补程序KB976477-Office 2007所有用户支持)复制到Packages文件夹

[Drive:]\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages

[驱动器:] \ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ Bootstr 包\包 年龄

10.6 The Prerequisite should now be in folder:

10.6现在,前提条件应该在以下文件夹中:

[Drive:]\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\Hot fix KB976477 - Office 2007 All users support

[驱动器:] \ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ Bootstr 包\包 年龄\修补程序KB976477-Office 2007所有用户支持

11. In Visual Studio (in my case VS2008 SP1), the Prerequisites window shows the newly added Prerequisite item "Hot fix KB976477 - Office 2007 All users support".

11.在Visual Studio(在我的情况下为VS2008 SP1)中,“先决条件”窗口显示了新添加的先决条件项“修补程序KB976477-Office 2007所有用户支持”。

VS prerequisites

You can now build your Setup Project that includes this prerequisite. This prerequisite is critical if you are planning to build VSTO solutions for all users. (see reference 2)

现在,您可以构建包含此先决条件的安装项目。 如果您打算为所有用户构建VSTO解决方案,那么此先决条件至关重要。 (请参阅参考资料2)

Reference

参考

(1) Creating Bootstrapper Packages

(1) 创建引导程序包

(2) Deploying your VSTO Add-In to All Users

(2) 将VSTO外接程序部署到所有用户

(3)  Create an Using VSTO Add-In to automate frequent Excel 2007 tasks

(3) 创建一个使用VSTO加载项自动执行常见的Excel 2007任务

翻译自: https://www.experts-exchange.com/articles/3227/How-to-Include-MS-Office-2007-Hotfix-as-Prerequisite-into-a-setup-project.html

二级ms office软件

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值