我使用wix bootstrapper扩展应用程序和wixballextensionExt.dll进行单选按钮选择,但我无法更改徽标,因为ı无法使用旧的ballextension.dll。如何使用balextentionEXT更改徽标。什么是徽标的WixVariableıd?找不到许可证和主题,但找不到徽标。
<BootstrapperApplicationRef Id="WixExtendedBootstrapperApplication.RtfLicense" >
<Payload SourceFile="Logo.png"/>
<Payload SourceFile="LogoSide.png"/>
<Payload Name="1033\thm.wxl" Compressed="yes" SourceFile="1033\thm.wxl" />
</BootstrapperApplicationRef>
<WixVariable Id="WixExtbaThemeXml" Value="thm.xml" />
<WixVariable Id="WixExtbaLicenseRtf" Value="Resources\EULA.rtf" />
<Variable Name="RadioClient" Type="numeric" Value="0" />
<Variable Name="RadioServer" Type="numeric" Value="0" />
<Variable Name="RadioFull" Type="numeric" Value="1" />
在旧的balextention.dll中,我使用了此代码,但现在我无法使用它。
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense">
<bal:WixStandardBootstrapperApplication LicenseUrl="Resources\EULA.rtf" ThemeFile="thm.xml"
LicenseFile="Resources\EULA.rtf"
LogoFile="Resources\icon.png" LogoSideFile="Resources\icon.ico"
/>
<Payload Name="1033\thm.wxl" SourceFile="1033\thm.wxl" />
</BootstrapperApplicationRef>
答案 0 :(得分:0)
我从BalCompiler.cs找到解决方案
if (!String.IsNullOrEmpty(launchTarget))
{
this.Core.CreateVariableRow(sourceLineNumbers, "LaunchTarget", launchTarget, "string", false, false);
}
if (!String.IsNullOrEmpty(launchTargetElevatedId))
{
this.Core.CreateVariableRow(sourceLineNumbers, "LaunchTargetElevatedId", launchTargetElevatedId, "string", false, false);
}
if (!String.IsNullOrEmpty(launchArguments))
{
this.Core.CreateVariableRow(sourceLineNumbers, "LaunchArguments", launchArguments, "string", false, false);
}
if (YesNoType.Yes == launchHidden)
{
this.Core.CreateVariableRow(sourceLineNumbers, "LaunchHidden", "yes", "string", false, false);
}
if (!String.IsNullOrEmpty(launchWorkingDir))
{
this.Core.CreateVariableRow(sourceLineNumbers, "LaunchWorkingFolder", launchWorkingDir, "string", false, false);
}
if (!String.IsNullOrEmpty(licenseFile))
{
this.Core.CreateWixVariableRow(sourceLineNumbers, "WixExtbaLicenseRtf", licenseFile, false);
}
if (null != licenseUrl)
{
this.Core.CreateWixVariableRow(sourceLineNumbers, "WixExtbaLicenseUrl", licenseUrl, false);
}
if (!String.IsNullOrEmpty(logoFile))
{
this.Core.CreateWixVariableRow(sourceLineNumbers, "WixExtbaLogo", logoFile, false);
}
if (!String.IsNullOrEmpty(logoSideFile))
{
this.Core.CreateWixVariableRow(sourceLineNumbers, "WixExtbaLogoSide", logoSideFile, false);
}
if (!String.IsNullOrEmpty(themeFile))
{
this.Core.CreateWixVariableRow(sourceLineNumbers, "WixExtbaThemeXml", themeFile, false);
}
if (!String.IsNullOrEmpty(localizationFile))
{
this.Core.CreateWixVariableRow(sourceLineNumbers, "WixExtbaThemeWxl", localizationFile, false);
}
现在ı可以使用Wix扩展应用程序来客户端数据库和完全安装。