I have a problem with msi installer made with WiX. It works on Win 7, but when I run it on Windows Server 2012 R2 it fails. It tries to install .NET framework 3.5 which you can't do that easily on Windows Server. The thing I don't understand is that .NET 4.5 framework is already installed on this machine.
Why does my wix installer look for .NET 3.5?
Is there a way how to disable it?
Thank you.
Update: So I found the problem. One of components used in the installation was taken from an older source and this file wasn't compatible with .Net 4.0 and higher. Thank you all who tried to help.
ServerManagerCmd.exe
or powershell (Add-WindowsFeature
). Anyway, for the same reason it is difficult to manually install .net 3.5, it is also difficult to do that automatically. – wimh