Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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 written some code like this

<WixVariable Id="WixMbaPrereqPackageId" Value="Netfx4Full" />
<Chain DisableRollback="yes" DisableSystemRestore="yes">
 
<PackageGroupRef Id="DotNetFramework4"/> 


then again in fragment tag my code is


<util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4.6\Full" Value="Version" Variable="Netfx4FullVersion" />
   <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4.6\Full" Value="Version" Variable="Netfx4x64FullVersion" Win64="yes" />


and then
Posted
Updated 5-Oct-16 7:02am
v2
Comments
#realJSOP 5-Oct-16 7:23am    
Why is this tagges as a C# question. It has absolutely nothing to do with C#.
Member 10192073 5-Oct-16 7:47am    
sorry but, i have made a project in C# and made setup via wix but now I want to give Prerequisites like .net framework 4.6 install but its not going fine....so i need help pls
#realJSOP 5-Oct-16 13:01pm    
My point is that you need to change the tag. I did it for you.
Member 10192073 6-Oct-16 0:08am    
ok sir, thanks but I could not fix my problem yet
Member 10192073 6-Oct-16 0:12am    
ok sir, thanks but I could not fix my problem yet

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900