如何在捆绑安装程序期间取消隐藏 Wix 图标?

问题描述 投票:0回答:1

我已经使用 WiX Burn 创建了一个安装程序包,但遇到了一个问题,即安装程序在安装过程中不显示任何类型的任务栏图标。这使得在安装过程中单击窗口外很难再次找到安装程序窗口。

编辑:也许还值得一提的是,我正在使用 WixV4 并在 VisualStudio 中构建。

我认为重要的是要注意我正在使用 MSI 的内部 UI。 当我创建一个没有任何自定义 UI 的捆绑包时,我记得它加载了一个任务栏图标,因此我只能假设它与使用 MSI 的内部 UI 相关。

<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
<?include ../Version.wxi ?>
<Bundle Name="Serverbundle"  Version="$(var.ProductVersion)" Manufacturer="company" UpgradeCode="SOMEGUID">
    <BootstrapperApplication>
    <WixInternalUIBootstrapperApplication xmlns="http://wixtoolset.org/schemas/v4/wxs/bal"  />
    </BootstrapperApplication>
    <util:RegistrySearch Variable="PostGREInstalled" Id="Postgre_RegKey" Root="HKLM" Key="SOFTWARE\PostgreSQL\Installations\postgresql-x64-15\" Result="exists" Bitness="always64" />
    <util:RegistrySearch Variable="HostBundleInstalled" Id="HostBundle_RegKey" Root="HKLM" Key="SOFTWARE\WOW6432Node\Microsoft\Updates\.NET\Microsoft .NET 6.0.20 - Windows Server Hosting (x86)\" Result="exists" Bitness="always64" />
    <Chain>
        <!--Install Prerequisites (IIS)-->
        <MsiPackage SourceFile="$(var.Prerequisites.TargetDir)$(var.Prerequisites.TargetName).msi" Permanent="yes" Visible="false"/>
        <!-- Install dotnet 3.1 hosting bundle-->
        <ExePackage SourceFile="./dotnet-hosting-6.0.20-win.exe" DetectCondition="HostBundleInstalled" Permanent="yes" DownloadUrl="https://download.visualstudio.microsoft.com/download/pr/d7124775-38c9-460f-a269-7bc131b3dfbf/7f60bcc6030e408cf11a935d5451ffa4/dotnet-hosting-6.0.20-win.exe"  InstallArguments="/passive"/>
        <!-- Install Postgresql-->
        <ExePackage SourceFile="./postgresql-15.2-2-windows-x64.exe" DetectCondition="PostGREInstalled" Permanent="yes" DownloadUrl="https://sbp.enterprisedb.com/getfile.jsp?fileid=1258478" InstallArguments="--mode unattended --unattendedmodeui minimal" />
        <!-- Install BluefinServerDFE-->
        <MsiPackage SourceFile="INTERNALUI.msi"/>
    </Chain>
</Bundle>

我认为可能需要设置某种标志或变量;但谷歌搜索最终会拉出所有与任务栏本身上没有出现的快捷方式有关的结果。我想澄清一下,我的问题是在安装过程中没有出现任务栏图标,因此如果我失去安装程序窗口的焦点,它就会被埋在背景中并且很难找到。希望这只是我缺少的一个简单的设置,但如果有人有任何想法,我会洗耳恭听。 谢谢

wix burn wix4
1个回答
0
投票

我想你可能会遇到这个问题:

https://github.com/wixtoolset/issues/issues/7874

目前还没有 100% 已知的解决方法。指定 SplashScreenSourceFile 有很大帮助,但不是 100%。

© www.soinside.com 2019 - 2024. All rights reserved.