Расширенное загрузочное приложение, меняющее логотип - PullRequest
0 голосов
/ 12 октября 2018

Я использовал расширенную аппликацию wix bootstrapper и wixballextentionExt.dll для выбора радиокнопок, но я не могу сменить логотип, потому что я не могу использовать старый файл ballextention.dll.Как мне поменять логотип с balextentionEXT.Что такое WixVariable для логотипа, я нашел лицензию и тему, но не могу найти логотип.

   <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>

1 Ответ

0 голосов
/ 12 октября 2018

Я нашел решение, это от 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.

...