翻訳への提案を行います
 
他のユーザーによる提案:

progress indicator
他の提案はありません。
 印刷用ページ       送信     
クリックして評価とフィードバックをお寄せください
MSDN
MSDN ライブラリ
Visual Studio 2010 Beta 2
Visual Studio
Visual Studio で Office 開発
 チュートリアル: 単一の ClickOnce インストーラーで複数の ...
すべて縮小/すべて展開 すべて縮小
コンテンツの表示:   英語と日本語を並べて表示コンテンツの表示: 英語と日本語を並べて表示
このページは、ベータ版用に機械翻訳されたものです。翻訳者による翻訳は、製品の正規版で提供される予定です。詳細についてはよくある質問 を参照してください。またぜひこちら からアンケートにもご協力ください。
Walkthrough: Deploying Multiple Office Solutions in a Single ClickOnce Installer

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Applies to

Project type

  • Document-level projects

  • Application-level projects

Microsoft Office version

  • 2007 Microsoft Office system

  • Microsoft Office "14"

You can deploy multiple Office solutions in a single package to simplify the installation and update process. This requires that you modify and re-sign the application and deployment manifests after publishing and before installation.

This walkthrough illustrates the following tasks:

  • Creating two Office solutions to deploy, and one Office solution as the installer project.

  • Modifying the application manifest of the installer project to install two Office solutions.

  • Re-signing the application and deployment manifests.

Note Note

Your computer might show different names or locations for some of the Visual Studio user interface elements in the following instructions. The Visual Studio edition that you have and the settings that you use determine these elements. For more information, see Working with Settings.

You need the following components to complete this walkthrough:

  •  

  • Word 2007 or Word “14”.

  • Outlook 2007 or Outlook “14”.

  • Excel 2007 or Excel “14”.

  • A test computer.

Start by creating three Office projects, one of which functions as the installer. The other two will be deployed to the end user computer.

To create and develop new Word, Outlook, and Excel projects

  1. Create a Word document-level project for the .NET Framework 3.5. Name the project ContosoInstaller, and save the project to the %USERPROFILE%\Documents\Visual Studio 10\Projects directory.

    The ContosoInstaller project will be used as the installer. For more information, see How to: Create Office Projects in Visual Studio.

  2. In the ContosoInstaller solution, add an Outlook application-level project with the name ContosoOutlookAddIn, and add your code to the Outlook project.

  3. In the ContosoInstaller solution, add an Excel document-level project with the name ContosoExcelWorkbook, and add your code to the Excel project.

Use the Publish Wizard or the Project Page of the Project Designer to publish the Office solutions to the development computer.

To publish the Word, Outlook, and Excel projects

  1. Publish the ContosoInstaller project to c:\publish folder. For more information, see How to: Deploy an Office Solution by Using ClickOnce.

  2. Publish the ContosoOutlookAddIn project to the c:\publish folder.

  3. Publish the ContosoExcelWorkbook project to the c:\publish folder.

Use the XML editor in Visual Studio to add install dependencies, entry points and assemblies to the application manifest.

Adding the Install Dependencies

Modify the application manifest to install the ContosoOutlookAddin and ContosoExcelWorkbook assemblies, and remove references to the ContosoInstaller assembly.

To add installation dependencies to the application manifest

  1. From the c:\publish\Application Files folder, move the contents of the ContosoOutlookAddIn_1_0_0_0 and ContosoExcelWorkbook_1_0_0_0 directories to the ContosoInstaller_1_0_0_0 directory.

  2. Open the ContosoInstaller.dll.manifest, ContosoOutlookAddIn.dll.manifest, and ContosoExcelWorkbook.dll.manifest files in an XML editor.

  3. From the ContosoOutlookAddIn.dll.manifest file, copy the ContosoOutlookAddIn.dll install dependency. The following code is what you should be looking for: only the <dsig:DigestValue> element will vary.

      <dependency>
        <dependentAssembly
          dependencyType="install" 
          allowDelayedBinding="true"
          codebase="ContosoOutlookAddIn.dll"
          size="10240">
          <assemblyIdentity
            name="ContosoOutlookAddIn" 
            version="1.0.0.0" 
            language="neutral" 
            processorArchitecture="msil" />
          <hash>
            <dsig:Transforms>
              <dsig:Transform Algorithm=
                "urn:schemas-microsoft-com:HashTransforms.Identity" />
            </dsig:Transforms>
            <dsig:DigestMethod Algorithm=
              "http://www.w3.org/2000/09/xmldsig#sha1" />
            <dsig:DigestValue>i4e</dsig:DigestValue>
          </hash>
        </dependentAssembly>
      </dependency>
    
  4. In the ContosoInstaller.dll.manifest file, paste the ContosoOutlookAddIn.dll install dependency at the end of the dependency section.

  5. From the ContosoExcelWorkbook.dll.manifest file, copy the ContosoExcelWorkbook.dll install dependency. The following code resembles what you should be looking for: only the <dsig:DigestValue> element will vary.

      <dependency>
        <dependentAssembly
          dependencyType="install"
          allowDelayedBinding="true"
          codebase="ContosoExcelWorkbook.dll"
          size="12800">
          <assemblyIdentity
            name="ContosoExcelWorkbook" 
            version="1.0.0.0"
            language="neutral"
            processorArchitecture="msil" />
          <hash>
            <dsig:Transforms>
              <dsig:Transform Algorithm=
                "urn:schemas-microsoft-com:HashTransforms.Identity" />
            </dsig:Transforms>
            <dsig:DigestMethod Algorithm=
              "http://www.w3.org/2000/09/xmldsig#sha1" />
            <dsig:DigestValue>i4e</dsig:DigestValue>
          </hash>
        </dependentAssembly>
      </dependency>
    
  6. In the ContosoInstaller.dll.manifest file, paste the ContosoOutlookAddIn.dll install dependency at the end of the dependency section.

  7. In the ContosoInstaller.dll.manifest file, remove the ContosoInstaller.dll install dependency.

Adding the Entrypoints

Modify the application manifest to load the ContosoOutlookAddin and ContosoExcelWorkbook assemblies into the <vstav3> namespace.

To add the entrypoints in the vstav3 namespace to the application manifest

  1. In the ContosoInstaller.dll.manifest file, remove the text between the <vstav3:entryPointsCollection> and </vstav3:entryPointsCollection> elements.

  2. From the ContosoOutlookAddIn.dll.manifest file, copy the text between the <vstav3:entryPointsCollection> and </vstav3:entryPointsCollection> elements. The following code resembles what you should be looking for.

          <vstav3:entryPoints>
            <vstav3:entryPoint
              class="ContosoOutlookAddIn.ThisAddIn">
              <assemblyIdentity
                name="ContosoOutlookAddIn"
                version="1.0.0.0"
                language="neutral"
                processorArchitecture="msil" />
            </vstav3:entryPoint>
          </vstav3:entryPoints>
    
  3. In the ContosoInstaller.dll.manifest file, paste the code after the <vstav3:entryPointsCollection> element.

  4. Add the id attribute to the <vstav3:entryPoints> element to differentiate this entrypoint from others.

          <vstav3:entryPoints id="ContosoOutlook">
    
  5. From the ContosoExcelWorkbook.dll.manifest file, copy the text between the <vstav3:entryPointsCollection> and </vstav3:entryPointsCollection> elements. The following code resembles what you should be looking for.

          <vstav3:entryPoints>
            <vstav3:entryPoint 
              class="ContosoExcelWorkbook.ThisWorkbook">
              <assemblyIdentity
                name="ContosoExcelWorkbook"
                version="1.0.0.0"
                language="neutral"
                processorArchitecture="msil" />
            </vstav3:entryPoint>
            <vstav3:entryPoint
               class="ContosoExcelWorkbook.Sheet1">
              <assemblyIdentity
                name="ContosoExcelWorkbook"
                version="1.0.0.0"
                language="neutral"
                processorArchitecture="msil" />
            </vstav3:entryPoint>
            <vstav3:entryPoint
              class="ContosoExcelWorkbook.Sheet2">
              <assemblyIdentity
                name="ContosoExcelWorkbook"
                version="1.0.0.0"
                language="neutral"
                processorArchitecture="msil" />
            </vstav3:entryPoint>
            <vstav3:entryPoint
              class="ContosoExcelWorkbook.Sheet3">
              <assemblyIdentity
                name="ContosoExcelWorkbook"
                version="1.0.0.0"
                language="neutral"
                processorArchitecture="msil" />
            </vstav3:entryPoint>
          </vstav3:entryPoints>
    
  6. In the ContosoInstaller.dll.manifest file, paste the code after the <vstav3:entryPointsCollection> element.

  7. Add the id attribute to the <vstav3:entryPoints> element to differentiate this entry point from other entry points.

          <vstav3:entryPoints id="ContosoExcel">
    

Adding the assemblies

Modify the application manifest to load the ContosoOutlookAddin and ContosoExcelWorkbook assemblies into the <vstov4> namespace.

To add the assemblies to the vstov4 namespace in the application manifest

  1. In the ContosoInstaller.dll.manifest file, remove any text between the <vstov4:customizations xmlns:vstov4="urn:schemas-microsoft-com:vsto.v4"> and </vstov4:customizations> elements.

  2. In the ContosoOutlookAddIn.dll.manifest file, copy the text between the <vstov4:customizations xmlns:vstov4="urn:schemas-microsoft-com:vsto.v4"> and </vstov4:customizations> elements. The following code is what you should be looking for.

            <vstov4:customization>
              <vstov4:appAddIn
                application="Outlook"
                loadBehavior="3"
                keyName="ContosoOutlookAddIn">
                <vstov4:friendlyName>
                  ContosoOutlookAddIn
                </vstov4:friendlyName>
                <vstov4:description>
                  ContosoOutlookAddIn - Outlook add-in created with
                  Visual Studio Tools for Office
                </vstov4:description>
              </vstov4:appAddIn>
            </vstov4:customization>
    
  3. In the ContosoInstaller.dll.manifest file, paste the code after the <vstov4:customizations xmlns:vstov4="urn:schemas-microsoft-com:vsto.v4"> element.

  4. Add the id attribute to the <vstav3:customization> element to differentiate this customization from others. This id is the same id that was added to the <vstav3:entryPoints> element in the previous procedure.

            <vstov4:customization id="ContosoOutlook">
    
  5. From the ContosoExcelWorkbook.dll.manifest file, copy the text between the <vstov4:customizations xmlns:vstov4="urn:schemas-microsoft-com:vsto.v4"> and </vstov4:customizations> elements. The following code resembles what you should be looking for: only the <solutionId> element will vary.

            <vstov4:customization>
              <vstov4:document
                solutionId="73e" />
            </vstov4:customization>
    
  6. In the ContosoInstaller.dll.manifest file, paste the code after the <vstov4:customizations xmlns:vstov4="urn:schemas-microsoft-com:vsto.v4"> element.

  7. Add the id attribute to the <vstov4:customizations xmlns:vstov4="urn:schemas-microsoft-com:vsto.v4"> element to differentiate this customization from others. This id is the same id that was added to the <vstav3:entryPoints> element in the previous procedure.

            <vstov4:customization id="ContosoExcel">
    

Sign the application and deployment manifests with a certificate. This ensures that the files have not been tampered with.

To re-sign the application and deployment manifests

  1. Copy the ContosoInstaller_TemporaryKey.pfx certificate file from the %USERPROFILE%\Documents\Visual Studio 10\Projects\ContosoInstaller\ContosoInstaller solution directory into the c:\publish\Application Files\ContosoInstaller_1_0_0_0directory.

  2. Open the Visual Studio command prompt.

  3. Change to the c:\publish\Application Files\ContosoInstaller_1_0_0_0 directory.

  4. Sign the modified application manifest with the following command:

    mage -sign ContosoInstaller.dll.manifest -certfile ContosoInstaller_TemporaryKey.pfx
    

    The message "ContosoInstaller.dll.manifest successfully signed" appears.

  5. Change to the c:\publish directory.

  6. Update and sign the deployment manifest with the following command:

    mage -update ContosoInstaller.vsto -appmanifest "Application Files\ContosoInstaller_1_0_0_0\ContosoInstaller.dll.manifest" -certfile "Application Files\ContosoInstaller_1_0_0_0\ContosoInstaller_TemporaryKey.pfx"
    

    The message "ContosoInstaller.vsto successfully signed" appears.

  7. Copy the ContosoInstaller.vsto file to the c:\publish\Application Files\ContosoInstaller_1_0_0_0 directory.

The following procedure ensures that the manifest installs the Outlook add-in and the Excel workbook.

To test the multi-project deployment

  1. Copy the c:\publish directory to a test computer.

  2. Run the Setup program to install the multi-project deployment.

    The Microsoft Office Customization Installer appears.

  3. Click Install.

    The Microsoft Office Customization Installer dialog box shows the following message: "The Microsoft Office customization was successfully installed."

  4. Open Outlook to verify that the add-in works.

  5. Open the Excel workbook file to verify that the document-level customization works.

  6. Verify that the multi-project deployment has a single entry in the list of installed applications.

    The Add/Remove Programs in Windows XP or Programs and Features in Windows Vista shows ContosoInstaller.

The following procedure removes any unnecessary files from the publish directory.

To clean up the publish directory

  1. Remove the following files from the c:\publish\Application Files\ContosoInstaller_1_0_0_0 directory.

    • ContosoExcelWorkbook.dll.manifest

    • ContosoExcelWorkbook.vsto

    • ContosoInstaller.dll.deploy

    • ContosoInstaller.docx

    • ContosoInstaller_TemporaryKey.pfx

    • ContosoOutlookAddIn.dll.manifest

    • ContosoOutlookAddIn.vsto

  2. Remove the following files from the c:\publish directory.

    • ContosoExcelWorkbook.vsto

    • ContosoInstaller.docx

    • ContosoOutlookAddIn.vsto

Visual Studio 2010
チュートリアル: 単一の ClickOnce インストーラーで複数の Office ソリューションを配置する

[このドキュメントはプレビュー版であり、後のリリースで変更されることがあります。 空白のトピックは、プレースホルダーとして挿入されています。]

対象

プロジェクトの種類

  • ドキュメント レベルのプロジェクト

  • アプリケーション レベルのプロジェクト

Microsoft Office のバージョン

  • 2007 Microsoft Office System

  • Microsoft Office "14"

インストールを簡略化し、プロセスの更新、単一パッケージ内の複数の Office ソリューションを展開できます。 配置マニフェストの発行とインストールの前に変更し、アプリケーションを再署名するしする必要があります。

このチュートリアルでは、次の作業について説明します。

  • インストーラー プロジェクトとして 2 つの Office ソリューションを展開して 1 つの Office ソリューションを作成します。

  • 2 つの Office ソリューションをインストールするインストーラー プロジェクトのアプリケーション マニフェストの変更。

  • マニフェスト、アプリケーションと展開を再署名します。

メモ メモ

お使いのマシンで、Visual Studio ユーザー インターフェイスの一部の要素の名前や場所が、次の手順とは異なる場合があります。これらの要素は、使用している Visual Studio のエディションや独自の設定によって決まります。詳細については、「設定の操作」を参照してください。

このチュートリアルを実行するには、次のコンポーネントが必要です。

  •  

  • Word 2007 または Word "14"。

  • Outlook 2007 または Outlook "14" します。

  • Excel 2007 または Excel "14" します。

  • テスト コンピューターです。

まず、インストーラーとして機能するのいずれか、3 つの Office プロジェクトを作成します。 他の 2 つは、エンドユーザーのコンピューターに配置されます。

作成して新しい Word、Outlook、および Excel プロジェクトを開発するには

  1. .NET Framework 3. 5 用の Word ドキュメント レベル プロジェクトを作成します。 プロジェクト を ContosoInstaller を名前をプロジェクトを付けて保存 %USERPROFILE%\Documents\Visual Studio 10\Projects ディレクトリにします。

    ContosoInstaller プロジェクトは、インストーラーとして使用されます。 詳細については、「方法 : Visual Studio で Office プロジェクトを作成します。」を参照してください。

  2. ソリューションを ContosoInstaller 中に、は名 を ContosoOutlookAddIn で、Outlook アプリケーション レベルのプロジェクトを追加し、Outlook プロジェクトに、コードを追加します。

  3. ソリューションを ContosoInstaller で名 を ContosoExcelWorkbook で、Excel ドキュメント レベルのプロジェクトを追加し、Excel プロジェクトにコードを追加します。

使用して、発行ウィザード または プロジェクト ページ のプロジェクト デザイナーを発行する Office ソリューション開発用コンピューター。

Word、Outlook、および Excel プロジェクトを発行するには

  1. c:\publish フォルダーに ContosoInstaller プロジェクトを発行します。 詳細については、「方法 : ClickOnce を使用して、Office ソリューションを展開します。」を参照してください。

  2. c:\publish フォルダーに ContosoOutlookAddIn プロジェクトを発行します。

  3. c:\publish フォルダーに ContosoExcelWorkbook プロジェクトを発行します。

Visual Studio を追加するには、XML エディターを使用して、アプリケーション マニフェストを依存関係、エントリ ポイントおよびアセンブリをインストールします。

インストールの依存関係の追加

ContosoOutlookAddin および ContosoExcelWorkbook アセンブリをインストールするには、アプリケーション マニフェストを変更し、 アセンブリの ContosoInstaller への参照を削除します。

インストールの依存関係をアプリケーション マニフェストに追加するには

  1. c:\publish\Application ファイル、 フォルダーから、ContosoOutlookAddIn_1_0_0_0 の ContosoExcelWorkbook_1_0_0_0 ディレクトリの内容を ContosoInstaller_1_0_0_0 ディレクトリに移動します。

  2. XML エディターで、ContosoInstaller.dll.manifest の 、 ContosoOutlookAddIn.dll.manifest、および ContosoExcelWorkbook.dll.manifest ファイルを開きます。

  3. 、ContosoOutlookAddIn.dll.manifest ファイルからコピー の ContosoOutlookAddIn.dll の依存関係をインストールします。 次のコードはする必要がありますが探しています。<dsig:DigestValue> 要素だけが異なります。

      <dependency>
        <dependentAssembly
          dependencyType="install" 
          allowDelayedBinding="true"
          codebase="ContosoOutlookAddIn.dll"
          size="10240">
          <assemblyIdentity
            name="ContosoOutlookAddIn" 
            version="1.0.0.0" 
            language="neutral" 
            processorArchitecture="msil" />
          <hash>
            <dsig:Transforms>
              <dsig:Transform Algorithm=
                "urn:schemas-microsoft-com:HashTransforms.Identity" />
            </dsig:Transforms>
            <dsig:DigestMethod Algorithm=
              "http://www.w3.org/2000/09/xmldsig#sha1" />
            <dsig:DigestValue>i4e</dsig:DigestValue>
          </hash>
        </dependentAssembly>
      </dependency>
    
  4. 、ContosoInstaller.dll.manifest ファイルでは貼り付け の ContosoOutlookAddIn.dll のインストール、依存関係] セクションの末尾に依存します。

  5. 、ContosoExcelWorkbook.dll.manifest ファイルからコピー の ContosoExcelWorkbook.dll の依存関係をインストールします。 次のコードは探してよう<dsig:DigestValue> 要素だけが異なります。

      <dependency>
        <dependentAssembly
          dependencyType="install"
          allowDelayedBinding="true"
          codebase="ContosoExcelWorkbook.dll"
          size="12800">
          <assemblyIdentity
            name="ContosoExcelWorkbook" 
            version="1.0.0.0"
            language="neutral"
            processorArchitecture="msil" />
          <hash>
            <dsig:Transforms>
              <dsig:Transform Algorithm=
                "urn:schemas-microsoft-com:HashTransforms.Identity" />
            </dsig:Transforms>
            <dsig:DigestMethod Algorithm=
              "http://www.w3.org/2000/09/xmldsig#sha1" />
            <dsig:DigestValue>i4e</dsig:DigestValue>
          </hash>
        </dependentAssembly>
      </dependency>
    
  6. 、ContosoInstaller.dll.manifest ファイルでは貼り付け の ContosoOutlookAddIn.dll のインストール、依存関係] セクションの末尾に依存します。

  7. インストールの依存関係を ContosoInstaller.dll、ContosoInstaller.dll.manifest ファイル削除します。

追加の Entrypoints

名前空間に、ContosoOutlookAddin の ContosoExcelWorkbook <vstav3> アセンブリを読み込むアプリケーション マニフェストを変更します。

vstav3 名前空間内の entrypoints、アプリケーション マニフェストに追加するには

  1. ContosoInstaller.dll.manifest ファイルで、 <vstav3:entryPointsCollection></vstav3:entryPointsCollection> 要素とテキストを削除します。

  2. ContosoOutlookAddIn.dll.manifest ファイルからには、 <vstav3:entryPointsCollection></vstav3:entryPointsCollection> 要素とテキスト コピーします。 次のコードにする必要がありますが探して似ています。

          <vstav3:entryPoints>
            <vstav3:entryPoint
              class="ContosoOutlookAddIn.ThisAddIn">
              <assemblyIdentity
                name="ContosoOutlookAddIn"
                version="1.0.0.0"
                language="neutral"
                processorArchitecture="msil" />
            </vstav3:entryPoint>
          </vstav3:entryPoints>
    
  3. ContosoInstaller.dll.manifest ファイルでコード <vstav3:entryPointsCollection> 要素の後に貼り付けます。

  4. このエントリポイントを他のユーザーに区別して id 要素に、 <vstav3:entryPoints> 属性を追加します。

          <vstav3:entryPoints id="ContosoOutlook">
    
  5. ContosoExcelWorkbook.dll.manifest ファイルからには、 <vstav3:entryPointsCollection></vstav3:entryPointsCollection> 要素とテキスト コピーします。 次のコードにする必要がありますが探して似ています。

          <vstav3:entryPoints>
            <vstav3:entryPoint 
              class="ContosoExcelWorkbook.ThisWorkbook">
              <assemblyIdentity
                name="ContosoExcelWorkbook"
                version="1.0.0.0"
                language="neutral"
                processorArchitecture="msil" />
            </vstav3:entryPoint>
            <vstav3:entryPoint
               class="ContosoExcelWorkbook.Sheet1">
              <assemblyIdentity
                name="ContosoExcelWorkbook"
                version="1.0.0.0"
                language="neutral"
                processorArchitecture="msil" />
            </vstav3:entryPoint>
            <vstav3:entryPoint
              class="ContosoExcelWorkbook.Sheet2">
              <assemblyIdentity
                name="ContosoExcelWorkbook"
                version="1.0.0.0"
                language="neutral"
                processorArchitecture="msil" />
            </vstav3:entryPoint>
            <vstav3:entryPoint
              class="ContosoExcelWorkbook.Sheet3">
              <assemblyIdentity
                name="ContosoExcelWorkbook"
                version="1.0.0.0"
                language="neutral"
                processorArchitecture="msil" />
            </vstav3:entryPoint>
          </vstav3:entryPoints>
    
  6. ContosoInstaller.dll.manifest ファイルでコード <vstav3:entryPointsCollection> 要素の後に貼り付けます。

  7. このエントリ ポイントとその他のエントリ ポイントを区別して id 要素に、 <vstav3:entryPoints> 属性を追加します。

          <vstav3:entryPoints id="ContosoExcel">
    

アセンブリの追加

名前空間に、ContosoOutlookAddin の ContosoExcelWorkbook <vstov4> アセンブリを読み込むアプリケーション マニフェストを変更します。

アプリケーション マニフェスト内の vstov4 名前空間に、アセンブリを追加するには

  1. 、ContosoInstaller.dll.manifest ファイルで <vstov4:customizations xmlns:vstov4="urn:schemas-microsoft-com:vsto.v4"></vstov4:customizations> 要素間の任意のテキストを削除します。

  2. 、ContosoOutlookAddIn.dll.manifest ファイルで <vstov4:customizations xmlns:vstov4="urn:schemas-microsoft-com:vsto.v4"></vstov4:customizations> 要素間のテキストをコピーします。 次のコードは探しては。

            <vstov4:customization>
              <vstov4:appAddIn
                application="Outlook"
                loadBehavior="3"
                keyName="ContosoOutlookAddIn">
                <vstov4:friendlyName>
                  ContosoOutlookAddIn
                </vstov4:friendlyName>
                <vstov4:description>
                  ContosoOutlookAddIn - Outlook add-in created with
                  Visual Studio Tools for Office
                </vstov4:description>
              </vstov4:appAddIn>
            </vstov4:customization>
    
  3. ContosoInstaller.dll.manifest ファイルでコード <vstov4:customizations xmlns:vstov4="urn:schemas-microsoft-com:vsto.v4"> 要素の後に貼り付けます。

  4. 他のユーザーからこのカスタマイズを区別する id 要素に、 <vstav3:customization> 属性を追加します。 この ID は、前の手順で <vstav3:entryPoints> 要素に追加された同じ ID されています。

            <vstov4:customization id="ContosoOutlook">
    
  5. ContosoExcelWorkbook.dll.manifest ファイルからには、 <vstov4:customizations xmlns:vstov4="urn:schemas-microsoft-com:vsto.v4"></vstov4:customizations> 要素とテキスト コピーします。 次のコードは探してよう<solutionId> 要素だけが異なります。

            <vstov4:customization>
              <vstov4:document
                solutionId="73e" />
            </vstov4:customization>
    
  6. ContosoInstaller.dll.manifest ファイルでコード <vstov4:customizations xmlns:vstov4="urn:schemas-microsoft-com:vsto.v4"> 要素の後に貼り付けます。

  7. 他のユーザーからこのカスタマイズを区別する id 要素に、 <vstov4:customizations xmlns:vstov4="urn:schemas-microsoft-com:vsto.v4"> 属性を追加します。 この ID は、前の手順で <vstav3:entryPoints> 要素に追加された同じ ID されています。

            <vstov4:customization id="ContosoExcel">
    

証明書でアプリケーションと配置マニフェストを署名します。 これにより、ファイルが改ざんされていないこと。

アプリケーションと配置マニフェストに再署名するには

  1. Copy the ContosoInstaller_TemporaryKey.pfx certificate file from the %USERPROFILE%\Documents\Visual Studio 10\Projects\ContosoInstaller\ContosoInstaller solution directory into the c:\publish\Application Files\ContosoInstaller_1_0_0_0directory.

  2. Visual Studio コマンド プロンプトを開きます。

  3. を c:\publish\Application Files\ContosoInstaller_1_0_0_0 ディレクトリを変更します。

  4. 次のコマンドを使って、変更されたアプリケーション マニフェストを署名します。

    mage -sign ContosoInstaller.dll.manifest -certfile ContosoInstaller_TemporaryKey.pfx
    

    メッセージ"ContosoInstaller.dll.manifest しました"表示されます。

  5. c:\publish ディレクトリに変更します。

  6. 更新し、次のコマンドで配置マニフェストの署名します。

    mage -update ContosoInstaller.vsto -appmanifest "Application Files\ContosoInstaller_1_0_0_0\ContosoInstaller.dll.manifest" -certfile "Application Files\ContosoInstaller_1_0_0_0\ContosoInstaller_TemporaryKey.pfx"
    

    メッセージ"ContosoInstaller.vsto しました"表示されます。

  7. c:\publish\Application Files\ContosoInstaller_1_0_0_0 ディレクトリに、ContosoInstaller.vsto ファイルをコピーします。

次の手順により、Outlook アドインおよび、ブックをマニフェスト インストールします。 こと。

複数のプロジェクトから成る、展開をテストするには

  1. テスト コンピューターに c:\publish ディレクトリをコピーします。

  2. 複数のプロジェクトから成る、展開をインストールするセットアップを実行します。

    の Microsoft Office のカスタマイズのインストーラーが表示されます。

  3. [インストール] をクリックします。

    Microsoft Office のカスタマイズのインストーラー ダイアログ ボックスに次のメッセージが表示されます。"Microsoft Office のカスタマイズが正常にインストールします。

  4. このアドインで動作することを確認する Outlook を起動します。

  5. ドキュメント レベルのカスタマイズが動作することを確認 Excel ブック ファイルを開きます。

  6. 複数のプロジェクトから成る、展開がインストールされているアプリケーションの一覧に単一のエントリされることを確認します。

    では、Windows XP でアプリケーションの追加と削除 または プログラムと機能 Windows Vista では ContosoInstaller を示します。

次の手順は不要なファイルを発行ディレクトリにされなくなります。

発行ディレクトリをクリーンアップするには

  1. c:\publish\Application Files\ContosoInstaller_1_0_0_0 ディレクトリから次のファイルを削除します。

    • ContosoExcelWorkbook.dll.manifest

    • ContosoExcelWorkbook.vsto

    • ContosoInstaller.dll.deploy

    • ContosoInstaller.docx

    • ContosoInstaller_TemporaryKey.pfx

    • ContosoOutlookAddIn.dll.manifest

    • ContosoOutlookAddIn.vsto

  2. c:\publish ディレクトリから次のファイルを削除します。

    • ContosoExcelWorkbook.vsto

    • ContosoInstaller.docx

    • ContosoOutlookAddIn.vsto

© 2009 Microsoft Corporation. All rights reserved. 使用条件 | 商標 | プライバシー
Page view tracker