我使用与“受限”产品相同的InstallPrivileges进行升级时遇到问题,InstallScope =“ perUser”。初始/首次安装可以正常运行,并且不要求管理员特权。但是,在尝试升级时需要UAC提升。我如何让升级使用与以前安装的版本-> nonAdmin相同的访问级别。
我尝试了不同的技术,阅读了不同的论坛,但似乎没有任何效果。如果遇到相同的问题,或者您知道代码中有什么错误,可以请您帮忙吗?谢谢
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
<UI>
<UIRef Id="WixUI_InstallDir" />
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="InstallDirDlg" Order="2">1</Publish>
<Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="2">1</Publish>
</UI>
<Upgrade Id="$(var.UpgradeCode)" >
<UpgradeVersion Minimum="$(var.ProductVersion)"
IncludeMinimum="no"
OnlyDetect="yes"
Language="1033"
Property="NEWPRODUCTFOUND" />
<UpgradeVersion Minimum="1.0.0.0"
IncludeMinimum="yes"
Maximum="$(var.ProductVersion)"
IncludeMaximum="no"
Language="1033"
Property="UPGRADEFOUND" />
</Upgrade>
<MajorUpgrade AllowSameVersionUpgrades="yes" AllowDowngrades="no" Schedule="afterInstallInitialize" DowngradeErrorMessage="A newer version of [ProductName] is already installed." />