Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wpf 在托管刻录引导应用程序中包括映像_Wpf_Wix_Burn_Wix3.8 - Fatal编程技术网

Wpf 在托管刻录引导应用程序中包括映像

Wpf 在托管刻录引导应用程序中包括映像,wpf,wix,burn,wix3.8,Wpf,Wix,Burn,Wix3.8,我正在用wix开发一个安装程序,使用Burn和一个自定义引导程序应用程序。一切正常,但我无法在应用程序UI中包含一个简单的图像 我将图像包括到我的UI中,如下所示: <Image Source="logo.jpg" Height="100" HorizontalAlignment="Center" Margin="0,0,0,20" VerticalAlignment="Center" Width="250"/> 它在设计器中显示为正常。为了排除其他可能的错误,我将界面简化为

我正在用wix开发一个安装程序,使用Burn和一个自定义引导程序应用程序。一切正常,但我无法在应用程序UI中包含一个简单的图像

我将图像包括到我的UI中,如下所示:

<Image Source="logo.jpg" Height="100" HorizontalAlignment="Center"  Margin="0,0,0,20" VerticalAlignment="Center" Width="250"/>

它在设计器中显示为正常。为了排除其他可能的错误,我将界面简化为图像

我还将图像作为有效负载添加到包中

<Payload SourceFile="..\BootstrapperApplication\logo.jpg"/>

如果启动安装程序,该文件将显示在安装的临时文件夹中

我尝试了不同的方法,例如将is添加为静态ressource,更改映像的构建操作,但无法找到正确的方法。

您可以查看以了解WiX安装程序是如何做到这一点的。它似乎将图像嵌入为资源:

XAML:


CSProj:

<ItemGroup>
  <Resource Include="Resources\exit.png" />
  <Resource Include="Resources\gear.png" />
  <Resource Include="Resources\legal.png" />
  <Resource Include="Resources\news.png" />
  <Resource Include="Resources\wrench.png" />
</ItemGroup>


谢谢,不知何故,我没有考虑检查源代码。你找到解决方案了吗
<ItemGroup>
  <Resource Include="Resources\exit.png" />
  <Resource Include="Resources\gear.png" />
  <Resource Include="Resources\legal.png" />
  <Resource Include="Resources\news.png" />
  <Resource Include="Resources\wrench.png" />
</ItemGroup>