I am having a problem with the upgrade using the same InstallPrivileges as the Product which is 'limited', InstallScope="perUser". The initial/first install works fine and did not ask for admin privilege. However, when trying to upgrade it requires UAC elevation. How can I have the upgrade use the same access level as the previous installed build --> nonAdmin.
I tried different techniques and read different forums but nothing seems to work. Can you please help out if you encountered the same or you know what is wrong in the code? Thanks
<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." />