[wix-users] Per User Installs and ICE Errors

Nir Bar nir.bar at panel-sw.com
Wed Jun 17 08:17:14 PDT 2020

Use my WiX extension https://www.nuget.org/packages/PanelSwWixExtension/


 <panelsw:Dism EnableFeature="NetFx3"/>



Nir Bar

WiX Expert

---- On Wed, 17 Jun 2020 18:13:45 +0300 Rick Papo via wix-users <wix-users at lists.wixtoolset.org> wrote ----

I am building a WiX BA to install an older product which requires the 
presence of .NET 3.5, and have gotten to the part where I make sure .NET 3.5 
is installed, and if not, install it as part of the bootstrapper bundle. 
Ignoring the bulk of the script, there are two parts that matter here.  The 
first is to detect whether or not .NET 3.5 is already installed: 
 <!--check if .NET Framework 3.5 is installed--> 
 <Variable Name="Netfx35Version" Type="numeric" bal:Overridable="yes" 
 <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework 
Setup\NDP\v3.5" Value="Version" Variable="Netfx35Version" Result="exists" /> 
This works.  I am aware of the NETFRAMEWORK35 variable, but have not been 
able to get it to cooperate with me. 
The second part is in the CHAIN section: 
 <!-- .NET 3.5 --> 
 <ExePackage Id="NetFX35Enable" 
 DisplayName="Enabling .NET 3.5." 
 InstallCondition='NOT Netfx35Version' 
 InstallCommand="/Online /Enable-Feature /FeatureName:NetFx3" 
There are two problems here.  The first is, why am I not using 
[SYSTEM64FOLDER]?  Because the WiX compiler can't find the definition. 
The second problem is that when I actually try to run this, DISM.exe dies 
with error code 0xB, which from bits and pieces I find on the internet means 
that it wants to run in the system folder, and since we have no control over 
the working directory in EXEPACKAGE, that option is out. 
Has somebody found a better solution to this problem? 
--Rick Papo 
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

More information about the wix-users mailing list