-
Get this EULA message box after I updated to Wix Toolset 4 with HeatWave for 2022. It has probably a simple solution but I cant 't figure out how to fix it. I check for .net framework 4.7.2 or later in Bundle.wxs
local NetFx472.wxs: <!--Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.-->
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal">
<!--.NET Framework installation state properties
Official documentation can be found at the following location:
.NET Framework 4.5/4.5.1/4.5.2/4.6/4.6.1/4.6.2/4.7/4.7.1/4.7.2 - http://msdn.microsoft.com/en-us/library/w0x726c2(v=vs.110).aspx-->
<?define NetFx472MinRelease = 461808 ?>
<?define NetFx472WebLink = http://go.microsoft.com/fwlink/?LinkId=863262 ?>
<?define NetFx472RedistLink = http://go.microsoft.com/fwlink/?LinkId=863265 ?>
<?define NetFx472EulaLink = http://referencesource.microsoft.com/license.html ?>
<Fragment>
<PropertyRef Id="WIXNETFX4RELEASEINSTALLED" bal:PrereqPackage="yes" />
<Property Id="WIX_IS_NETFRAMEWORK_472_OR_LATER_INSTALLED" Secure="yes" />
<SetProperty Id="WIX_IS_NETFRAMEWORK_472_OR_LATER_INSTALLED" Value="1" After="AppSearch" Condition="WIXNETFX4RELEASEINSTALLED >= "#$(var.NetFx472MinRelease)"" />
</Fragment>
<Fragment>
<util:RegistrySearchRef Id="NETFRAMEWORK45" />
<WixVariable Id="WixMbaPrereqPackageId" Value="NetFx472Web" />
<WixVariable Id="WixMbaPrereqLicenseUrl" Value="$(var.NetFx472EulaLink)" Overridable="yes" />
<WixVariable Id="NetFx472WebDetectCondition" Value="NETFRAMEWORK45 >= $(var.NetFx472MinRelease)" Overridable="yes" />
<WixVariable Id="NetFx472WebInstallCondition" Value="" Overridable="yes" />
<WixVariable Id="NetFx472WebPackageDirectory" Value="redist\" Overridable="yes" />
<PackageGroup Id="NetFx472Web">
<ExePackage bal:PrereqLicenseUrl="yes" bal:PrereqPackage="yes" PerMachine="yes" DetectCondition="!(wix.NetFx472WebDetectCondition)" InstallCondition="!(wix.NetFx472WebInstallCondition)" Id="NetFx472Web" Vital="yes" Permanent="yes" Protocol="netfx4" LogPathVariable="NetFx472FullLog" InstallArguments="/qb /norestart /ChainingPackage "[WixBundleName]" /log "NetFx472FullLog.html"" RepairArguments="/qb /norestart /repair /ChainingPackage "[WixBundleName]" /log "NetFx472FullLog.html"" UninstallArguments="/uninstall /qb /norestart /ChainingPackage "[WixBundleName]" /log "NetFx472FullLog.html"">
<ExePackagePayload Description="Microsoft .NET Framework 4.7.2 Setup" Hash="507ECDADC23A27C2283BA130A2AA51650E6BC05B" ProductName="Microsoft .NET Framework 4.7.2" Size="1447320" Version="4.7.3062.0" Name="!(wix.NetFx472WebPackageDirectory)NDP472-KB4054531-Web.exe" DownloadUrl="$(var.NetFx472WebLink)" />
</ExePackage>
</PackageGroup>
</Fragment>
<Fragment>
<util:RegistrySearchRef Id="NETFRAMEWORK45" />
<WixVariable Id="NetFx472RedistDetectCondition" Value="NETFRAMEWORK45 >= $(var.NetFx472MinRelease)" Overridable="yes" />
<WixVariable Id="NetFx472RedistInstallCondition" Value="" Overridable="yes" />
<WixVariable Id="NetFx472RedistPackageDirectory" Value="redist\" Overridable="yes" />
<PackageGroup Id="NetFx472Redist">
<ExePackage Id="NetFx472Redist" bal:PrereqLicenseUrl="yes" bal:PrereqPackage="yes" PerMachine="yes" DetectCondition="!(wix.NetFx472RedistDetectCondition)" InstallCondition="!(wix.NetFx472RedistInstallCondition)" Vital="yes" Permanent="yes" Protocol="netfx4" LogPathVariable="NetFx472FullLog" InstallArguments="/q /norestart /ChainingPackage "[WixBundleName]" /log "NetFx472FullLog.html"" RepairArguments="/q /norestart /repair /ChainingPackage "[WixBundleName]" /log "NetFx472FullLog.html"" UninstallArguments="/uninstall /q /norestart /ChainingPackage "[WixBundleName]" /log "NetFx472FullLog.html"">
<ExePackagePayload Description="Microsoft .NET Framework 4.7.2 Setup" Hash="D3A416DC5FC75758D41B4C0158ACA69270D2A904" ProductName="Microsoft .NET Framework 4.7.2" Size="71607232" Version="4.7.3062.0" Name="!(wix.NetFx472RedistPackageDirectory)NDP472-KB4054530-x86-x64-AllOS-ENU.exe" DownloadUrl="$(var.NetFx472RedistLink)" />
</ExePackage>
</PackageGroup>
</Fragment>
</Wix> I get following error
Then I chage the PackageGroupRef Id to NetFx472Redist2 in Bundle and in NetFx472.wxs <PackageGroup Id="NetFx472Redist2">
<ExePackage Id="NetFx472Redist2" ... all error and warnings disappears and it is building, butt I get the above EULA message box. I have rewrite it and try to follow https://wixtoolset.org/docs/tools/wixext/dotnet/. It builds but with the same message box appear In Bundel.wsx <PropertyRef Id="WIX_IS_NETFRAMEWORK_472_OR_LATER_INSTALLED" />
<Launch Message="This application requires .NET Framework 4.7.2 or later."
Condition="Installed OR WIX_IS_NETFRAMEWORK_472_OR_LATER_INSTALLED" />
<util:RegistrySearchRef Id="WixNetFramework4xInstalledRelease" />
...
<PackageGroup Id="Checks">
<!--Install .Net Framework 4.7.2-->
<PackageGroupRef Id="NetFx472RedistAsPrereq" />
<!--<PackageGroupRef Id="NetFx472Redist" />--> The local file NetFx472.wxs is removed. I also get the following warning that I don't understand D:\a\wix4\wix4\src\ext\NetFx\wixlib\NetFx472.wxs(20): warning WIX1150: The binder doesn't know how to place the following symbol into the output: SymbolName: 'Property', Id: 'WIX_IS_NETFRAMEWORK_472_OR_LATE |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks for trying to upgrade to v4. You will want to start by reading through https://wixtoolset.org/docs/fourthree/faqs/. If you are still having problems then you'll have to look at the bundle log that is created in %TEMP%. The last thing would be to provide a full example with all of your code, preferably a repo here on Github, and then wait for someone to spend their free time to investigate the issue. |
Beta Was this translation helpful? Give feedback.
Thanks for trying to upgrade to v4. You will want to start by reading through https://wixtoolset.org/docs/fourthree/faqs/. If you are still having problems then you'll have to look at the bundle log that is created in %TEMP%. The last thing would be to provide a full example with all of your code, preferably a repo here on Github, and then wait for someone to spend their free time to investigate the issue.