原文: Outlook: Deploying an Outlook 2013 add-in (using InstallShield LE)

Today I had to create an installer for an Outlook 2013 add-in (created using Visual Studio 2013), and as the process is different to previous versions I thought I'd document it here.  I will only detail the differences from previous versions - I am assuming that you have completed the first three steps that are the same as described here.

Add a new project to the solution, and select InstallShield Limited Edition Project (note that you will have to have installed this - the first time you select to add it, you will be guided through the process)

使用 InstallShield limited edition 打包部署Outlook 2013 Office add-in插件-LMLPHP

Select Application Information, and enter details for your add-in.

使用 InstallShield limited edition 打包部署Outlook 2013 Office add-in插件-LMLPHP

Select the installation requirements for your add-in.  Currently it seems that Office 2013 is not available as a pre-requisite, so the only one to include is .Net 4.5 (or whichever framework your add-in uses).

使用 InstallShield limited edition 打包部署Outlook 2013 Office add-in插件-LMLPHP

Add the application files.  As for previous versions of VSTO, you need to add the project output, and also the manifest and vsto files from the output folder of the add-in project.

使用 InstallShield limited edition 打包部署Outlook 2013 Office add-in插件-LMLPHP

Set the registry keys.  These also are the same as previous versions.  The screenshot here shows the keys for a 32 bit add-in (i.e. with 32 bit Outlook).  64 bit would use the 64 bit registry.

(注意:

****示例用的是HKEY_LOCAL_MACHINE ,也可能是HKEY_CURRENT_USER,

****Outlook也可以是相应的Word/Excel/PowerPoint等)

Windows Registry Editor Version 5.00 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Outlook\Addins\NameOfAddin]
"Manifest"="[INSTALLDIR]NameOfAddin.vsto|vstolocal"
"Description"="addinxxxxx"
"FriendlyName"="addinxxxxxx"
"LoadBehavior"=3    ------------------DWORD Value

使用 InstallShield limited edition 打包部署Outlook 2013 Office add-in插件-LMLPHP

Choose your options for the installation interface.

使用 InstallShield limited edition 打包部署Outlook 2013 Office add-in插件-LMLPHP

Finally, check the setting for your build.  I chose a single image build, as this creates a setup.exe.  Once done, you can build the setup project and then locate the setup.exe in the output folder.  This can be deployed to users.

使用 InstallShield limited edition 打包部署Outlook 2013 Office add-in插件-LMLPHP

05-02 13:50
查看更多