bal*_*dre 5 prerequisites setup-deployment visual-studio-2008 visual-studio
如何添加到我想要客户端的安装和部署项目中有更多组件,例如:
Microsoft Chart Controls
Microsoft SQL 2008 Express Edition (not 2005)
Run Code Online (Sandbox Code Playgroud)
等等...
替代文字http://img55.imageshack.us/img55/2586/200902021225eu9.png
这个选项不在VS 2008中,并且在窗口(上图)中它只有一个链接指向" 检查Microsoft Update以获取更多可再发行组件 ",但它会转到一个包含2个"引导程序包"的页面(我甚至都不知道)这是什么)
有关如何将其添加到项目而不是要求用户手动安装的任何想法?
谢谢.
看看文章吧
为 Visual Studio 2005 编写自定义引导程序包
如果您找到文件夹 C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages (VS 2005),或者对于 VS 2008,C:\Program Files\Microsoft SDKs\Windows\v6.0A\引导程序\包
“Packages”下的每个文件夹都是您在列表中看到的先决条件,如屏幕截图所示。
因此,如果您想添加一个名为 MyPrereq 的应用程序作为先决条件,您需要在“Packages”下创建自己的文件夹“MyPrereq”。然后你制作一个与此类似的product.xml文件
<?xml version="1.0" encoding="utf-8"?>
<Product ProductCode="MyPrereq" xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper">
<PackageFiles CopyAllPackageFiles="false">
<PackageFile Name="MyPrereq.exe" />
</PackageFiles>
<InstallChecks>
</InstallChecks>
<Commands Reboot="None">
<Command PackageFile="MyPrereq.exe" EstimatedInstallSeconds="90">
<InstallConditions>
</InstallConditions>
<ExitCodes>
<ExitCode Value="0" Result="Success"/>
<DefaultExitCode Result="Fail" String="GeneralFailure" FormatMessageFromSystem="true" />
</ExitCodes>
</Command>
</Commands>
</Product>
Run Code Online (Sandbox Code Playgroud)
和你的 package.xml 文件类似
<?xml version="1.0" encoding="utf-8"?>
<Package Name="MyPrereq" Culture="Culture" xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper">
<Strings>
<String Name="Culture">en</String>
<String Name="DisplayName">MyPrereq</String>
<String Name="GeneralFailure">A fatal error occurred. The installation failed.</String>
</Strings>
</Package>
Run Code Online (Sandbox Code Playgroud)
并将这些文件和安装包 (MyPrereq.exe) 放入该文件夹中。以现有包为例,了解放置文件的位置。
如果一切正确,您将能够在“选择要安装的先决条件”列表中看到您的 MyPrereq 选项。
归档时间: |
|
查看次数: |
5417 次 |
最近记录: |