Wix310.exe installer does not detect .net 3.5 on Server 2012R2 #5436

Open
kentonbmax opened this Issue Nov 15, 2016 · 8 comments

Projects

None yet

4 participants

@kentonbmax
kentonbmax commented Nov 15, 2016 edited

Bugs

If this issue is a bug:

  • Which version of WiX are you building with?
    3.10

(WiX version in major.minor.release.build format)
3.3007

  • Which version of Visual Studio are you building with (if any)?
    none

(Visual Studio version, including year and update)
none

  • Which version of .NET are you building with?
    none

(.NET version)
none

  • If the problem occurs when installing your packages built with WiX, what is the version of Windows the package is running on?

(Windows version)
Server 2012R2

  • Describe the problem and the steps to reproduce it.
  1. .net 3.5 is installed by default in 2012R2.
  2. Run wixtoolset installer
  3. Fails to detect .net 3.5.1

Feature requests

If this issue is a feature request:

  • Describe the scenario and benefits that the feature supports.

(Provide lots of specific detail so we understand the context around the feature.)

  • Describe how you're accomplishing the feature today (if possible).

(Be as specific as you can and err on the side of providing too much information.)

  • Describe what you'd like the new feature to do.

(There's no need to design it but suggestions are appreciated.)

@barnson
Member
barnson commented Nov 15, 2016

Please attach the Burn log.

@kentonbmax

looking for the default location. I tried using the 3.9 installer as well, same issue. Fails to detect .net 3.5.1 on Server 2012R2

@kentonbmax

[12F8:1498][2016-11-15T13:05:56]i000: Setting string variable 'WixBundleName' to value 'WiX Toolset v3.10.3.3007'
[12F8:1498][2016-11-15T13:05:56]i000: Setting string variable 'WixBundleManufacturer' to value '.NET Foundation'
[12F8:1498][2016-11-15T13:05:56]i000: Loading managed bootstrapper application.
[12F8:1498][2016-11-15T13:05:56]i000: Creating BA thread to run asynchronously.
[12F8:1BE8][2016-11-15T13:05:56]i000: Running the WiX BA.
[12F8:1498][2016-11-15T13:05:56]i100: Detect begin, 9 packages
[12F8:1BE8][2016-11-15T13:05:56]i000: Creating a UI.
[12F8:1498][2016-11-15T13:05:56]i000: Setting string variable 'NETFRAMEWORK35_SP_LEVEL' to value '0'
[12F8:1498][2016-11-15T13:05:56]i000: Setting string variable 'NETFRAMEWORK40' to value '1'
[12F8:1498][2016-11-15T13:05:56]i000: Registry key not found. Key = 'SOFTWARE\Microsoft\Windows Installer XML\3.10'
[12F8:1498][2016-11-15T13:05:56]i000: Setting string variable 'VS2012WDExpressInstalled' to value ''
[12F8:1498][2016-11-15T13:05:56]i000: Setting string variable 'VS2013WDExpressInstalled' to value ''
[12F8:1498][2016-11-15T13:05:56]i000: Setting string variable 'VS2010VCExpressInstalled' to value ''
[12F8:1498][2016-11-15T13:05:56]i052: Condition 'PreviousInstallFolder' evaluates to false.
[12F8:1498][2016-11-15T13:05:56]i000: Setting string variable 'VS2015InstallFolder' to value 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE'
[12F8:1498][2016-11-15T13:05:56]i000: Registry value not found. Key = 'SOFTWARE\Microsoft\VisualStudio\12.0', Value = 'InstallDir'
[12F8:1498][2016-11-15T13:05:56]i000: Registry value not found. Key = 'SOFTWARE\Microsoft\VisualStudio\11.0', Value = 'InstallDir'
[12F8:1498][2016-11-15T13:05:56]i000: Registry value not found. Key = 'SOFTWARE\Microsoft\VisualStudio\10.0', Value = 'InstallDir'
[12F8:1498][2016-11-15T13:05:57]i000: Potential update v3.10.3.3007 from 'http://wixtoolset.org/downloads/v3.10.3.3007/wix310.exe'; current version: v3.10.3.3007
[12F8:1498][2016-11-15T13:05:57]i052: Condition 'NETFRAMEWORK40' evaluates to true.
[12F8:1498][2016-11-15T13:05:57]i101: Detected package: NetFx40Web, state: Present, cached: None
[12F8:1498][2016-11-15T13:05:57]i101: Detected package: core.msi, state: Absent, cached: None
[12F8:1498][2016-11-15T13:05:57]i101: Detected package: wix64.msi, state: Absent, cached: None
[12F8:1498][2016-11-15T13:05:57]i101: Detected package: msdk.msi, state: Absent, cached: None
[12F8:1498][2016-11-15T13:05:57]i101: Detected package: nsdk2010.msi, state: Absent, cached: None
[12F8:1498][2016-11-15T13:05:57]i101: Detected package: nsdk2012.msi, state: Absent, cached: None
[12F8:1498][2016-11-15T13:05:57]i101: Detected package: nsdk2013.msi, state: Absent, cached: None
[12F8:1498][2016-11-15T13:05:57]i101: Detected package: nsdk2015.msi, state: Absent, cached: None
[12F8:1498][2016-11-15T13:05:57]i101: Detected package: votive.msi, state: Absent, cached: None
[12F8:1498][2016-11-15T13:05:57]i052: Condition 'NETFRAMEWORK35_SP_LEVEL < 1' evaluates to true.
[12F8:1498][2016-11-15T13:05:57]i000: WiX Toolset requires the .NET Framework 3.5.1 Windows feature to be enabled.
[12F8:1498][2016-11-15T13:06:16]i199: Detect complete, result: 0x0
[12F8:1498][2016-11-15T13:06:16]i500: Shutting down, exit code: 0x0
[12F8:1498][2016-11-15T13:06:16]i410: Variable: InstallFolder = C:\Program Files (x86)\WiX Toolset v3.10
[12F8:1498][2016-11-15T13:06:16]i410: Variable: NETFRAMEWORK35_SP_LEVEL = 0
[12F8:1498][2016-11-15T13:06:16]i410: Variable: NETFRAMEWORK40 = 1
[12F8:1498][2016-11-15T13:06:16]i410: Variable: ProgramFilesFolder = C:\Program Files (x86)
[12F8:1498][2016-11-15T13:06:16]i410: Variable: VS2010VCExpressInstalled =
[12F8:1498][2016-11-15T13:06:16]i410: Variable: VS2012WDExpressInstalled =
[12F8:1498][2016-11-15T13:06:16]i410: Variable: VS2013WDExpressInstalled =
[12F8:1498][2016-11-15T13:06:16]i410: Variable: VS2015InstallFolder = C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE
[12F8:1498][2016-11-15T13:06:16]i410: Variable: WixBundleAction = 5
[12F8:1498][2016-11-15T13:06:16]i410: Variable: WixBundleElevated = 1
[12F8:1498][2016-11-15T13:06:16]i410: Variable: WixBundleLog = C:\Users\KBocock\AppData\Local\Temp\WiX Toolset_v3.10.3.3007_20161115130556.log
[12F8:1498][2016-11-15T13:06:16]i410: Variable: WixBundleManufacturer = .NET Foundation
[12F8:1498][2016-11-15T13:06:16]i410: Variable: WixBundleName = WiX Toolset v3.10.3.3007

@rseanhall
Member

Please give the results of the following commands (the feature names are case sensitive):

reg query "HKLM\Software\Microsoft\NET Framework Setup\NDP\v3.5"
dism /Online /Get-FeatureInfo /FeatureName:NetFx3
dism /Online /Get-FeatureInfo /FeatureName:NetFx3ServerFeatures

@kentonbmax

HKEY_LOCAL_MACHINE\Software\Microsoft\NET Framework Setup\NDP\v3.5
Version REG_SZ 3.5.30729.4926
CBS REG_DWORD 0x1
Install REG_DWORD 0x1
InstallPath REG_SZ C:\Windows\Microsoft.NET\Framework64\v3.5
SP REG_DWORD 0x1

HKEY_LOCAL_MACHINE\Software\Microsoft\NET Framework Setup\NDP\v3.5\1033

C:\Windows\system32>dism /Online /Get-FeatureInfo /FeatureName:NetFx3

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

Feature Information:

Feature Name : NetFx3
Display Name : .NET Framework 3.5 (includes .NET 2.0 and 3.0)
Description : .NET Framework 3.5 (includes .NET 2.0 and 3.0)
Restart Required : Possible
State : Enabled

Custom Properties:

FWLink : http://go.microsoft.com/fwlink/?LinkId=296822
ServerComponent\Description : .NET Framework 3.5 combines the power of the .NET
Framework 2.0 APIs with new technologies for building applications that offer ap
pealing user interfaces, protect your customers' personal identity information,
enable seamless and secure communication, and provide the ability to model a ran
ge of business processes.
ServerComponent\DisplayName : .NET Framework 3.5 (includes .NET 2.0 and 3.0)
ServerComponent\Id : 220
ServerComponent\InstallWithParentByDefault : true
ServerComponent\Parent : NET-Framework-Features
ServerComponent\Type : Feature
ServerComponent\UniqueName : NET-Framework-Core
ServerComponent\Deploys\Update\Name : NetFx3
ServerComponent\Version\Major : 3
ServerComponent\Version\Minor : 5

The operation completed successfully.

C:\Windows\system32>dism /Online /Get-FeatureInfo /FeatureName:NetFx3ServerFeatu
res

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

Feature Information:

Feature Name : NetFx3ServerFeatures
Display Name : .NET Framework 3.5 Features
Description : .NET Framework 3.5 Features
Restart Required : Possible
State : Enabled

Custom Properties:

ServerComponent\Description : .NET Framework 3.5 combines the power of the .NET
Framework 2.0 APIs with new technologies for building applications that offer ap
pealing user interfaces, protect your customers' personal identity information,
enable seamless and secure communication, and provide the ability to model a ran
ge of business processes.
ServerComponent\DisplayName : .NET Framework 3.5 Features
ServerComponent\Id : 475
ServerComponent\Type : Feature
ServerComponent\UniqueName : NET-Framework-Features
ServerComponent\Version\Major : 3
ServerComponent\Version\Minor : 5
applicable\disposition : detect
applicable\detectUpdate\parent\name : NetFx3ServerFeatures

The operation completed successfully.

@rseanhall
Member

Hmm, that looks right. The features are enabled and the .NET registry key has the SP key set to 1. It looks like WiX is looking at the 32-bit registry, though. Does reg query "HKLM\Software\Wow6432Node\Microsoft\NET Framework Setup\NDP\v3.5" look any different?

@kentonbmax
kentonbmax commented Nov 16, 2016 edited

No diff. Also noticing issues trying to reference ui and uiutil from nuget as a work around to this issue. I am at a complete standstill with wix. Can you confirm that using the nuget package should remove the need for the installed version in program files? Targets are not being found using the nuget package. Thanks.

@robmen
Member
robmen commented Nov 16, 2016

We don't publish NuGet packages, yet. So any .nupkgs containing WiX are unofficial.

If you want to avoid installing the WiX Toolset check out: http://wixtoolset.org/documentation/manual/v3/msbuild/daily_builds.html

However, we would love to understand and fix the root issue if possible.

@barnson barnson added bug burn labels Nov 22, 2016
@barnson barnson added this to the v3.x milestone Nov 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment