我想將自定義引導程序包添加到Visual Studio 2010中的clickonce安裝,但該軟件包未顯示在「先決條件」菜單中。我在我的軟件包的「C:\ Program Files(x86)\ Microsoft SDKs \ Windows \ v7.0A \ Bootstrapper \ Packages」目錄中添加了一個文件夾。Bootstrapper軟件包在先決條件菜單中未顯示
我在Visual Studio中打開了我的product.xml和package.xml,但都沒有顯示任何錯誤。
我試圖檢查註冊表來驗證我是否將我的文件放在正確的位置,但HKLM \ Software \ Microsoft \ GenericBootstrapper和HKCU \ Software \ Microsoft \ GenericBootstrapper都不在註冊表中。
我在添加文件後也嘗試了完全重新啓動。
這裏是我的XML文件: product.xml
<?xml version="1.0" encoding="utf-8" ?>
<Product
xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper"
ProductCode="RedemptionDLL">
<RelatedProducts>
<DependsOnProduct Code="Microsoft.Windows.Installer.3.1" />
</RelatedProducts>
<PackageFiles>
<PackageFile Name="RedemptionDLL.msi"/>
</PackageFiles>
<Commands>
<Command PackageFile="RedemptionDLL.msi" Arguments="">
<InstallConditions>
<BypassIf Property="IsMsiInstalled"
Compare="ValueGreaterThan" Value="0"/>
<FailIf Property="AdminUser"
Compare="ValueNotEqualTo" Value="True"
String="NotAnAdmin"/>
</InstallConditions>
<ExitCodes>
<ExitCode Value="0" Result="Success"/>
<ExitCode Value="1641" Result="SuccessReboot"/>
<ExitCode Value="3010" Result="SuccessReboot"/>
<DefaultExitCode Result="Fail" String="GeneralFailure"/>
</ExitCodes>
</Command>
</Commands>
</Product>
package.xml中
<?xml version="1.0" encoding="utf-8" ?>
<Package
xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper"
Name="DisplayName"
Culture="Culture"
<Strings>
<String Name="DisplayName">RedemptionDLL</String>
<String Name="Culture">en</String>
<String Name="NotAnAdmin">You must be an administrator to install this package. Please contact your administrator.</String>
<String Name="GeneralFailure">A general error has occurred while
installing this package.</String>
</Strings>
</Package>