2017-07-30 17 views
0

パッケージチェーンにドライバMSIを含めることを検討していますが、参照方法がわかりません。WiXブートストラップのサードパーティMsiをバンドルする

私は、これは私が持っているものMSIは私のプロジェクトフォルダ/リソース/ DriverInstaller.msi

にある次のコードですが、私は、ビルド

未定義のプリプロセッサ変数「$にこのエラーが表示されます(var.InstallerBootstrapper.ProjectDir) 'と入力します。

<?xml version="1.0" encoding="utf-8"?> 
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"> 
    <Bundle Name="Installer" Version="4.0.0.0" Manufacturer="Laxus Hipot" UpgradeCode="7cbb781f-c5cc-4805-b599-713357824532"> 
    <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense"> 
     <bal:WixStandardBootstrapperApplication LicenseFile="Resources\EULA.rtf" LogoFile="Resources\Icon.png" /> 
    </BootstrapperApplicationRef> 
    <Chain> 
     <MsiPackage Id="DriverInstaller" SourceFile="$(var.InstallerBootstrapper.ProjectDir)Resources\DriverInstaller.msi" /> 
     <MsiPackage Id="Installer" SourceFile="$(var.InstallerSetup.TargetPath)" /> 
    </Chain> 
    </Bundle> 
</Wix> 

答えて

1

リファレンスwixprojファイル内の関連するプロジェクト "InstallerBootstrapper" InstallerBootstrapper。 たとえば

<ProjectReference Include="..\InstallerBootstrapper.csproj"> 
     <Name>InstallerBootstrapper</Name> 
     <Project>{project guid}</Project> 
</ProjectReference> 
関連する問題