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!

jdorninger
Posts: 8
Joined: Mon Mar 31, 2014 11:51 am

Windows Feature installer .NET 3.5 as a preinstall

Hi,

Currently trying to install .NET 3.5 as a preinstall through Windows Feature bundle installer.
ss.jpg
ss.jpg (68.33 KiB) Viewed 4354 times
I need the .NET 3.5 for a programm I need to run after installing the main setup.
On windows 8.1/2012 the feature is not installed.
On the other windows version the pre-install works.

What am I doing wrong?
Br,
Jan
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Windows Feature installer .NET 3.5 as a preinstall

Hello Jan,

Indeed, if the target computer operating system is above Windows 8, then you can add the .Net Framework as a windows feature bundle to your installation package using the [New Windows Feature bundle] toolbar button and select it from our predefined Windows Features list.

You need to add the “.Net Framework” as a Windows Feature because you cannot install it by running its setup package (e.g. using a pre-install prerequisite). If you run its setup package you will be prompted with a warning which will require to install .NET Framework 3.5 as feature on demand.
This is the default behavior on Windows 8.

Let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jdorninger
Posts: 8
Joined: Mon Mar 31, 2014 11:51 am

Re: Windows Feature installer .NET 3.5 as a preinstall

Hi,

Thx for the answer.
I have done that, but the windows feature is not installed before the main installation.
That is resulting in following error during comit phase executing my .net 2.0 file
ss_error.jpg
ss_error.jpg (55.68 KiB) Viewed 4340 times
Br,
Jan
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Windows Feature installer .NET 3.5 as a preinstall

Hello Jan,

Please take a look on our Windows Features not working? forum thread which debates this subject.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jdorninger
Posts: 8
Joined: Mon Mar 31, 2014 11:51 am

Re: Windows Feature installer .NET 3.5 as a preinstall

Hi,
The post was very usefull, but I went a different route

I used

Code: Select all

  <startup useLegacyV2RuntimeActivationPolicy="true">
     <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
     <supportedRuntime version="v2.0.50727"/>
   </startup>
in my apps config and now it starts on computers which have either 2.0 or 4.0 installed.
The app is developed against .net 2.0

Br,
Jan

Return to “Building Installers”