DOCS BUG: "Detecting and installing .NET" only says how to detect, not how to install #7828
Replies: 6 comments 14 replies
-
About bundles. Rob has a good explanation here: https://robmensching.com/blog/posts/2012/6/25/b-is-for-bundle-and-thats-good-enough-for-me/. If you do use a bundle best is not to show MSI GUI at all, use the standard burn GUI (wixstdba I think it's called; you get it out of the box) or write your own custom burn GUI. There's ways to show the MSI gui through a bundle but at least in Wix 3.x it' was very problematic. Not sure about WiX 4. |
Beta Was this translation helpful? Give feedback.
-
<util:RegistrySearchRef Id="NETFRAMEWORK40CLIENT" />
<?define NetFx40ClientRedistLink = http://go.microsoft.com/fwlink/?LinkId=247730 ?>
<PackageGroup Id="dotNetInstaller">
<ExePackage Cache="remove" PerMachine="yes" DetectCondition="NETFRAMEWORK40CLIENT" Id="NetFx40ClientRedist" Vital="yes" Permanent="yes" Protocol="netfx4" DownloadUrl="$(var.NetFx40ClientRedistLink)" Compressed="default" Name="redist\dotNetFx40_Client_x86_x64.exe" SourceFile="$(sys.CURRENTDIR)\Files\redist\dotNetFx40_Client_x86_x64.exe" InstallArguments="/q /norestart /ChainingPackage "[WixBundleName]"" UninstallArguments="/uninstall /q /norestart /ChainingPackage "[WixBundleName]"">
</ExePackage>
</PackageGroup> Where did you get the magic incantation NETFRAMEWORK40CLIENT and all the paths and filenames from, and where in the docs is the equivalent for .Net 7? |
Beta Was this translation helpful? Give feedback.
-
From this doc:
I am literally looking for a fire and forget installer. I have an exe with its 4 dlls, some huge number of Microsoft dlls, and I want to install .Net framework and register it as a service. The only input will be the licence key. There are no features to choose from, no tiers, just a simple application. So I shouldn't be using Burn or bundles according to Rob - what should I be using instead? |
Beta Was this translation helpful? Give feedback.
-
.NET Framework (2.0-4.8.1) or .NET ( 5-8)? There's a very important distinction here from a deployment perspective. |
Beta Was this translation helpful? Give feedback.
-
It really helps the search engine if you spell wixstdba correctly. ![]() |
Beta Was this translation helpful? Give feedback.
-
Tried that but the service path is set up by |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
https://wixtoolset.org/docs/tools/wixext/dotnet/#net-and-net-core
I want to install .Net 7 runtime if it's not already installed.
I can detect .Net 7 with:
Does this also detect high .Net 7 versions? Or only exactly version 7.0.0? The doc doesn't say. What value does the variable have if it's installed or not installed? True/false? Or the version number? It doesn't say.
Or I can detect .Net 7 in a bundle - huh? What's a bundle, and how is that different from what's above? Do I need to do both with an OR between them? The docs don't say.
Ok, so now I have detected them. No information here of what to do next. How do I install .net 7? How do I skip installing it if the variable has a certain value?
Beta Was this translation helpful? Give feedback.
All reactions