共用方式為


撰寫的 Windows Installer 封裝

 

如需 Visual Studio 2017 的最新文件請參閱 Visual Studio 2017 文件

資料磁碟機的 Windows Installer 模型。 您不需要撰寫程序的指令碼,將檔案複製並寫入登錄項目,例如,您撰寫資料列和資料行包含檔案和登錄資料的資料庫資料表中。

資料庫項目

若要安裝 VSPackage 時,Windows Installer 套件必須包含資料庫項目,以執行下列工作︰

  • 搜尋系統以找出的版本Visual StudioVSPackage 支援 (使用 Windows Installer 資料表包含 AppSearch、 CompLocator、 RegLocator、 DrLocator,以及簽章)。

  • 如果不支援的版本,請取消安裝Visual Studio安裝或 (使用 LaunchCondition 資料表) 不符合 VSPackage 的其他系統需求。

  • 安裝 VSPackage 和相依檔案 (使用目錄、 元件和檔案資料表)。

  • 登錄 (使用登錄資料表) 中加入 VSPackage 的適當資訊。

  • 整合在 VSPackageVisual Studio藉由呼叫devenv.exe /setup (使用 CustomAction 資料表)。

如需詳細資訊,請參閱Windows Installer

安裝程式工具

許多協力廠商的安裝工具會提供 Windows Installer 封裝的開發環境。 兩個免費的工具如下所示︰

  • InstallShield 限量版

    您可以透過 Visual Studio 取得 InstallShield 的限制的版本新的專案] 對話方塊。 展開其他專案類型,然後選取安裝和部署。 選取 [InstallShield 範本。

  • Windows Installer XML Toolset

    工具組會建置 XML 原始程式檔的 Windows Installer 套件。 工具組是 Microsoft 的開放原始碼專案。 您可以下載來源程式碼和可執行檔http://sourceforge.net/projects/wix

適用於整合的商業產品Visual Studio使用Visual Studio SDK,請參閱https://visualstudiogallery.com

另請參閱

使用 Windows Installer 安裝 Vspackage