hi, Please help me,
how I can give RegistrySearch for .net framework 4.6  in creating setup via Wix in C#,
 
and if its not found then download it from our website with silently Install
 
I have write some code like this
 
 
 
 
DisplayName="Microsoft .NET Framework 4.6"
Cache="yes"
Compressed="no"
PerMachine="yes"
Permanent="yes"
Vital="yes"
SuppressSignatureVerification="no"
Name="Prerequisites\NDP46-KB3045560-Web.exe"
Description="Installing [Prerequisites] Microsoft .Net Framework silently"
InstallCommand="/q /norestart"
SourceFile=".\Prerequisites\NDP46-KB3045560-Web.exe"
InstallCondition="NOT VersionNT64"
DetectCondition="Netfx4FullVersion"
DownloadUrl="$(var.DownloadURL)NDP46-KB3045560-Web.exe"
/>
DisplayName="Microsoft .NET Framework 4.6"
Cache="yes"
Compressed="no"
PerMachine="yes"
Permanent="yes"
Vital="yes"
SuppressSignatureVerification="no"
Name="Prerequisites\NDP46-KB3045560-Web.exe"
Description="Installing [Prerequisites] Microsoft .Net Framework silently"
InstallCommand="/q /norestart"
SourceFile=".\Prerequisites\NDP46-KB3045560-Web.exe"
InstallCondition="VersionNT64"
DetectCondition="Netfx4FullVersion AND (NOT VersionNT64 OR Netfx4x64FullVersion)"
DownloadUrl="$(var.DownloadURL)NDP46-KB3045560-Web.exe"
/>
 
but when I am going to run exe then setup failed....
 
please help me how I can fix this issue.