カスタム ブートストラップ パッケージを Visual Studio 2010 のクリック ワンス インストールに追加しようとしていますが、パッケージが前提条件メニューに表示されません。パッケージ用に「C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages」ディレクトリにフォルダーを追加しました。
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>