Open manelrodero opened 1 year ago
Windows 10 has the same behavior. No VC++ redistributable installed.
I'm now checking different WSF/VBS files to debug this behavior.
WMI query should match Windows 10 and 11:
I have not been able to get ZTIUtility.vbs to generate any logs.
In fact, when the IsSupportedPlatform function is called, the supported platform or unsupported platform message does not appear:
I've asked MDT experts on Twitter to see if they know why. I can't think of any other way to debug.
I've made an update to the Import-VcMdtApplication
function in the development
channel that does two things:
Any platform
for the x86
RedistributablesAll x64 Windows 10 Client
and All x64 Windows Server 10
for the x64
RedistributablesI've tested this on Windows 11 22H2 and it worked OK. I haven't tested on Windows 10, but I assume it will work there as well.
Hi Aaron,
I'm going to try to replicate your configuration by changing the platform manually.
So far I have seen that it is not a problem with platform detection because it seems to work perfectly with other applications.
For example, if I change the 7-Zip app from Any to "All x64 Windows 7 and newer" it installs perfectly on Windows 11.
If I tell it "All x64 Windows 7 and newer" and also "All x86 Windows 7 and newer" to simulate a VC++ x86, it also installs and the x86 condition is shown as unfulfilled.
I think it must be something related to the management of the bundles that MDT does. It may be that, if there are inconsistencies between the applications that make it up, they are not installed individually.
I keep trying...
After changing the platform according to your instructions, I get the x86 (any) version to install but the x64 version still fails.
In the end I only have the x86 versions installed.
I think I'll change all redistributables to use the "Any" platform. In my environment I only deploy Windows 10/11 in 64-bit so there will be no problem.
It bothers me a little that I don't have more time to figure out the reason for this behavior. There is no problem in closing the issue if you think it is appropriate.
I'll do some more tests. We'll leave the issue open until I push the new version of the module. I could add a parameter to set the platform to Any
.
Environment
Expected Behavior
Six VC++ redistributable should be installed.
Current Behavior
None of them are installed. The logs show that the redistributable have not been installed because the current platform is not supported.
VcRedist specifies the platform for each installer as Windows 7 and above:
Workaround
Change platform to "Any" and redistributable are installed correctly:
The logs show the successful execution of the installer:
Assumption
Could it be because Windows 11 is installing? As of today it is not officially supported and may not be detected correctly as a platform.
I'm going to do some testing using Windows 10 to see if the behavior is different.