[wix-users] Burn enabling Net Feature on Windows Server
Herman van Drie
hvandrie at outlook.com
Fri Mar 8 04:13:25 PST 2019
NetFx3 package is no longer included in Windows as a component. You'll see that is has the 'removed' status.
When you enable it like you do, it attempts to download the component from internet.
If you previously 'added' the package from the media: dism /online /add-package /packagepath:%SourceMedia%\sources\sxs\microsoft-windows-netfx3-ondemand-package.cab
Than your command should run fine.
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Camille Zanni via wix-users
Sent: vrijdag 8 maart 2019 13:07
To: 'wix-users at lists.wixtoolset.org' <wix-users at lists.wixtoolset.org>
Cc: Camille Zanni <caz at schneider.ch>
Subject: [wix-users] Burn enabling Net Feature on Windows Server
I made a Burn installer, which activates Net Feature and installs .Net 4.7.
DisplayName="Aktivierung Feature DotNet 3.5 Client"
InstallCommand="dism.exe /online /enable-feature /featurename:NetFx3"
InstallCondition="NTProductType = "1" AND NOT Netfx35Version"
This works fine on Windows 10, but not on Windows Server 2012.
I found out, that the feature names are different and that I could use "Install-WindowsFeature". So i changed my ExePackage for Windows Servers.
InstallCommand="powershell.exe Install-WindowsFeature NET-Framework-Features -IncludeAllSubFeature"
InstallCondition="NTProductType > "1" AND NOT Netfx35Version "
But every time I try to install I get
Error 0x80070001: Process returned error: 0x1 Error 0x80070001: Failed to execute EXE package.
Error 0x80070001: Failed to configure per-machine EXE package.
Applied execute package: FeatureNet35Server, result: 0x80070001, restart:
Error 0x80070001: Failed to execute EXE package.
I tried to add or remove PerMachine or run the Installer as Administrator, but nothing helped.
Any suggestions would really help me out?
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users