单击 UAC "Change when these notifications appear" 时,Wix Bootstrapper 被取消
Wix Bootstrapper is cancelled when UAC "Change when these notifications appear" is clicked
我创建了一个 Wix Bootstrapper (v3.11),它安装了 .NET 4.5,然后在我的应用程序中安装了一些 MSI。选中许可协议复选框并单击“安装”按钮后,会弹出 UAC 对话框(这是预期的)。
但是,如果您在 UAC 对话框中单击 显示更多详细信息 link,然后单击 更改这些通知出现的时间 link 您的安装程序将被取消,您将看到一个弹出对话框,上面写着 "User cancelled installation."
User cancelled installation error
有没有办法避免安装被取消而弹出错误对话框?
这是一个简单的 Bundle.wxs 重现问题的示例。
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Bundle Name="Dummy_Setup_for_UAC_Test"
Version="1.0.0.0"
Manufacturer="Tester"
UpgradeCode="37561e88-cadf-4b9c-94c3-5510325e51d2">
<BootstrapperApplicationRef
Id="WixStandardBootstrapperApplication.RtfLicense" />
<Chain>
<PackageGroupRef Id="NetFx45Web"/>
</Chain>
</Bundle>
</Wix>
单击 Change when these notifications appear
时,Windows 取消提升请求。对于任何 UAC 同意提示都是如此。所以这不是您可以为捆绑包更改的东西。
我创建了一个 Wix Bootstrapper (v3.11),它安装了 .NET 4.5,然后在我的应用程序中安装了一些 MSI。选中许可协议复选框并单击“安装”按钮后,会弹出 UAC 对话框(这是预期的)。
但是,如果您在 UAC 对话框中单击 显示更多详细信息 link,然后单击 更改这些通知出现的时间 link 您的安装程序将被取消,您将看到一个弹出对话框,上面写着 "User cancelled installation."
User cancelled installation error
有没有办法避免安装被取消而弹出错误对话框?
这是一个简单的 Bundle.wxs 重现问题的示例。
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Bundle Name="Dummy_Setup_for_UAC_Test"
Version="1.0.0.0"
Manufacturer="Tester"
UpgradeCode="37561e88-cadf-4b9c-94c3-5510325e51d2">
<BootstrapperApplicationRef
Id="WixStandardBootstrapperApplication.RtfLicense" />
<Chain>
<PackageGroupRef Id="NetFx45Web"/>
</Chain>
</Bundle>
</Wix>
单击 Change when these notifications appear
时,Windows 取消提升请求。对于任何 UAC 同意提示都是如此。所以这不是您可以为捆绑包更改的东西。