I Just started learning about wix and due to very less learning resources and very less time i was only able to learn little bit about wix i have been assigned a task where i have to install dotnet 4.8 using wix so i started with a setup project and written some code with the help of few resources but i am getting errors when i try to build my project so if someone can please guide how to acheive this task i will be very thankful
so right now my code looks like this
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">
<Product Id="CA3206CD-642B-4871-A1E2-3B56F420038E"
Name="task1"
Language="1033"
Version="1.0.0.0"
Manufacturer="Naveen Ltd"
UpgradeCode="593c152e-5028-4c9c-a633-4553055047df">
<Package
InstallerVersion="200"
Compressed="yes"
InstallScope="perMachine" />
<PropertyRef Id="NETFRAMEWORK48"/>
<Condition Message="This application requires .NET Framework 4.8">
<![CDATA[Installed OR NetFramework48Version]]>
</Condition>
<CustomAction
Id="InstallNetFx48"
Execute="deferred"
Impersonate="no"
Return="check"
FileKey="MyAppSetupFile"
ExeCommand='"[SourceDir]dotnetRedis\ndp48-x86-x64-allos-enu.exe" /q /norestart' />
<InstallExecuteSequence>
<Custom
Action="InstallNetFx48"
After="InstallInitialize"><![CDATA[NOT IsNetFx48Installed]]></Custom>
</InstallExecuteSequence>
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<MediaTemplate EmbedCab="yes" />
<UIRef Id="WixUI_Minimal"/>
<Feature
Id="ProductFeature"
Title="task1"
Level="1">
<ComponentGroupRef Id="ProductComponents" />
</Feature>
</Product>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="task1" />
</Directory>
</Directory>
</Fragment>
<Fragment>
<util:RegistrySearch
Root="HKLM"
Key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full"
Value="Release"
Variable="NetFx48Release"
Result="value"
Win64="yes" />
</Fragment>
<Fragment>
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"/>
</Fragment>
</Wix>
when i tried to build got these errors
Unresolved reference to symbol 'File:MyAppSetupFile' in section 'Product:{CA3206CD-642B-4871-A1E2-3B56F420038E}'.
Unresolved reference to symbol 'Property:NETFRAMEWORK48' in section 'Product:{CA3206CD-642B-4871-A1E2-3B56F420038E}'.
**
my project structure looks like this**