最小化/恢复 EULA 窗口后,信息消失

发布于 2024-09-27 21:30:40 字数 2374 浏览 0 评论 0原文

我使用 ScrollableText 控件来显示 EULA,除了以下情况外,一切正常: 当显示 EULA 对话框时,选择一些单词,然后最小化 EULA 窗口。恢复窗口后,整个许可证信息消失了。但在控件中选择某些区域后,会出现 EULA 文本。

有人可以帮助我了解问题的根本原因吗?

我已经在 WindowsXP SP3 和 Windows Installer 4.5 上尝试过使用 3.0.5419.0 版本,但遇到了同样的问题。

WIX 源代码如下:

<?xml version="1.0" encoding="UTF-8"?>
    <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">

    <?define ProductName="WixProject"?>
    <?define ProductVersion="1.0.1"?>
    <?define Manufacturer="WixProject"?>
    <?define Language="1033"?>
    <?define ProductCode="{830E8896-AD07-4fbb-8828-4165D2C84887}"?>
    <?define UpcradeCode="{BA074C59-1F12-4a95-8BD8-177E18234AB3}"?>

    <Product Id='$(var.ProductCode)'
         Version='$(var.ProductVersion)'
         Name='$(var.ProductName)'
         Language='$(var.Language)'
         Manufacturer='$(var.Manufacturer)'
         UpgradeCode='$(var.UpcradeCode)'>

        <Package InstallerVersion="200" Compressed="yes" />

        <Upgrade Id='$(var.UpcradeCode)'>
            <UpgradeVersion OnlyDetect="no" IncludeMaximum="no"    Property="OLD_VERSION_FOUND" Maximum='$(var.ProductVersion)' />
        </Upgrade>

        <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />

        <Directory Id="TARGETDIR" Name="SourceDir">
            <Directory Id="ProgramFilesFolder">
                <Directory Id="INSTALLLOCATION" Name="WixProject1">
                    <Component Id="ReadMeC" Guid="{3DC5A180-EC42-4466-8E4B-1BA37BFF189C}" SharedDllRefCount="yes" Win64="no">
                        <File Id="ReadMeF" Name="ReadMe.txt" Source="ReadMe.txt" Vital="yes" />
                    </Component>
                </Directory>
            </Directory>
        </Directory>

        <InstallExecuteSequence>
            <FindRelatedProducts Sequence="200" />
            <RemoveExistingProducts After='InstallFinalize' />
        </InstallExecuteSequence>

        <Feature Id="ProductFeature" Title="WixProject1" Level="1">
            <ComponentRef Id="ReadMeC" />
        </Feature>

        <UIRef Id="WixUI_Minimal" />
    </Product>
</Wix>

这是一个非常简单的 WIX 文件,仅安装一个文件并使用 WixUI_Minimal UI。 即使对于这个安装程序,我也可以看到同样的问题。 谢谢。

I'm using ScrollableText control to display EULA and everything works fine except the following scenario:
When EULA dialog is displayed select some word(s) then minimize the EULA window. After restoring the window whole license information disappeared. But after selecting some area in the control the EULA text is appears.

Could somebody help me to understand the root cause of the problem.

I have tried it with 3.0.5419.0 build on WindowsXP SP3 and Windows Installer 4.5 and have the same problem.

The WIX source is following:

<?xml version="1.0" encoding="UTF-8"?>
    <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">

    <?define ProductName="WixProject"?>
    <?define ProductVersion="1.0.1"?>
    <?define Manufacturer="WixProject"?>
    <?define Language="1033"?>
    <?define ProductCode="{830E8896-AD07-4fbb-8828-4165D2C84887}"?>
    <?define UpcradeCode="{BA074C59-1F12-4a95-8BD8-177E18234AB3}"?>

    <Product Id='$(var.ProductCode)'
         Version='$(var.ProductVersion)'
         Name='$(var.ProductName)'
         Language='$(var.Language)'
         Manufacturer='$(var.Manufacturer)'
         UpgradeCode='$(var.UpcradeCode)'>

        <Package InstallerVersion="200" Compressed="yes" />

        <Upgrade Id='$(var.UpcradeCode)'>
            <UpgradeVersion OnlyDetect="no" IncludeMaximum="no"    Property="OLD_VERSION_FOUND" Maximum='$(var.ProductVersion)' />
        </Upgrade>

        <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />

        <Directory Id="TARGETDIR" Name="SourceDir">
            <Directory Id="ProgramFilesFolder">
                <Directory Id="INSTALLLOCATION" Name="WixProject1">
                    <Component Id="ReadMeC" Guid="{3DC5A180-EC42-4466-8E4B-1BA37BFF189C}" SharedDllRefCount="yes" Win64="no">
                        <File Id="ReadMeF" Name="ReadMe.txt" Source="ReadMe.txt" Vital="yes" />
                    </Component>
                </Directory>
            </Directory>
        </Directory>

        <InstallExecuteSequence>
            <FindRelatedProducts Sequence="200" />
            <RemoveExistingProducts After='InstallFinalize' />
        </InstallExecuteSequence>

        <Feature Id="ProductFeature" Title="WixProject1" Level="1">
            <ComponentRef Id="ReadMeC" />
        </Feature>

        <UIRef Id="WixUI_Minimal" />
    </Product>
</Wix>

This is the very simple WIX file which installs only one file and uses WixUI_Minimal UI.
Even for this installer I can see the same problem.
Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

浪菊怪哟 2024-10-04 21:30:40

ScrollableText 控件非常有限(以及一般的 MSI UI)。我很难指出这种行为的确切原因,但可能是 Rob 的建议 有帮助(例如,在写字板中重新保存您的 license.rtf,然后重试)。

知道到底有什么帮助(当你设法把它挖出来时)也很有趣。 :-)

The ScrollableText control is quite limited (as well as MSI UI in general). It's hard for me to point out the exact reason of such behavior, but probably one of Rob's suggestions helps (for instance, re-save your license.rtf in WordPad and try again).

It would also be interesting to know what exactly helped (when you manage to dig it out). :-)

左秋 2024-10-04 21:30:40

我所有的 InstallShield 安装程序甚至都没有启用最小化按钮,而且我从来没有错过过它。我的 WiX 安装程序具有最小化功能,但我没有重现您的问题。您安装了哪个版本的 MSI?你能在不同版本的不同机器上重现这个吗?

我可以使用 WiX 自己的安装程序重现此行为。我想我以前从未尝试过选择一些文本然后最小化安装程序。这显然是 MSI 内部 UI 中的一个缺陷,除了像 InstallShield 那样启用“最小化”按钮之外,您无能为力。

All of my InstallShield installers don't even the minimize button enabled and I've never missed it. My WiX installers have minimize capabilities but I haven't reproduced your problem. What version of MSI do you have installed? Can you repro this on different machines with different versions?

I can reproduce this behavior using WiX's own installer. I guess I've just never tried to select some text then minimize the installer before. This is clearly a defect in MSI's internal UI and there isn't going to be anything you can do about it other then not enable the Minimize button like InstallShield does.

秋意浓 2024-10-04 21:30:40

我向 WIX 开发人员询问了这个问题,他们说问题出在 Windows Installer RichEdit 控件中。

详情请参考以下链接:

http:// /sourceforge.net/tracker/?func=detail&atid=642714&aid=3087369&group_id=105970

I have asked about this issue from the WIX developers and they say that the problem is in the Windows Installer RichEdit control.

For details please refer to the link below:

http://sourceforge.net/tracker/?func=detail&atid=642714&aid=3087369&group_id=105970

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文