[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/



<Component>

 <panelsw:Dism EnableFeature="NetFx3"/>

</Component>


--

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" 
Value="0"/> 
 <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." 
 SourceFile="c:\Windows\System32\Dism.exe" 
 InstallCondition='NOT Netfx35Version' 
 InstallCommand="/Online /Enable-Feature /FeatureName:NetFx3" 
 PerMachine="yes" 
 Permanent="yes" 
 Compressed="yes" 
 Cache="always" 
 /> 
 
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