-
Continuing from similar thread: Bundle produced and tested on source system with .NET 3.5 present runs normally. Log file exhibits the following:
On newer Windows platforms with .NET 3.5 absent this is same excerpt after failure at launch:
Per Rob's reply, is there some way to coerce light to use or prefer a specific .NET version when building?
I agree there are plentiful ways to specify that requirement for packages in a chain or within an installer, but in this case things seem to crash before we get to evaluating any properties such as:
Which is built into the bundle. This property/condition has no effect on the failure at launch. Either I'm looking for the wrong thing or in the wrong place. What is it that controls the failed lookup for 'InstallFolder'? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
See this WiX documentation on how to install .NET Framework and customize the Framework used for your BA. |
Beta Was this translation helpful? Give feedback.
-
The detect BA function is your code. If you don't want this missing registry key to cause your bundle to fail (not crash, it wouldn't log anything if it crashed), then update your detect BA function to not return a failing
You are asking the wrong question. Your bundle is failing at runtime, which has nothing to do which version of .NET was used to build it. Your BA functions code is presumably native code that has no .NET Framework dependencies. The WiX bundle code definitely has no .NET dependencies.
These don't do anything in bundles, they are for MSI only. v4 warns about this, but v3 silently ignored them. See Rob's link for how to do it bundles, along with bal:Condition.
You have included a |
Beta Was this translation helpful? Give feedback.
The detect BA function is your code. If you don't want this missing registry key to cause your bundle to fail (not crash, it wouldn't log anything if it crashed), then update your detect BA function to not return a failing
HRESULT
.You are asking the wrong question. Your bundle is failing at runtime, which has nothing to do which version of .NET was used to build it. Your BA functions code is presumably native code that has no .NET Framework dependencies. The WiX bundle code definitely has no .NET dependencies.