Install .net Framework 3.5 on Windows Server 2008R2 - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

abstuerzer
Posts: 11
Joined: Thu Apr 29, 2010 10:07 am

Install .net Framework 3.5 on Windows Server 2008R2

Is there a way to add the feature .net framework 3.5 in the servermanager by the setup? Because Microsoft has changed the way to install framework on Windows 2008 R2 Server. It is not possible to install it with the frameworkinstaller. It must be installed by adding a feature in the servermanager.

Any ideas?

Chris
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Install .net Framework 3.5 on Windows Server 2008R2

Hi Chris,

You can add servermanagercmd as a custom action with the appropriate command line parameters to install the required feature.
Do make sure the custom action only runs on Windows Server 2008 as the above mentioned tool is only available on that operating system.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
abstuerzer
Posts: 11
Joined: Thu Apr 29, 2010 10:07 am

Re: Install .net Framework 3.5 on Windows Server 2008R2

Sounds great and works. But the next problem now is, that I can install .net framework 3.5 as a prerequisite only on Windows versions before 2008 R2. In the prerequisites I can only define minimum system version, not a maximal version. How can I force a prerequsite not to install on Windows 2008 R2, instead should the "servermanagercmd" run on the 2008 R2.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Install .net Framework 3.5 on Windows Server 2008R2

Hello,

Simply find a registry key only available on Windows 2008 machines. Do a new "Registry key exists" install condition on that registry, and set the installation type to "Install if all of the above searches fail". That search will only fail on non-Win2008 machines. It will not fail on Windows 2008, thus the prerequisite won't install.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”