.Net Installer Class Action for .Net 4.0 - 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!

bjk68
Posts: 55
Joined: Tue Dec 01, 2009 12:45 pm

.Net Installer Class Action for .Net 4.0

The Custom Actions that are generated when you add a ".Net Installer Class Action" contain the following Action Data:
/LogFile= /ReqVersion=2.0.50727 /InstallType=notransaction /Action=Install "[#Program.dll]" "[TempFolder]dotNetCustAct.dll_Config.xml"

I notice that the ReqVersion=2.0.50727 resembles the .Net Framework 2.0 version, so I suspect that things won't work for installing .Net 4.0 software.

Is it correct that the only thing I have to do is alter this ReqVersion value to 4.0.30319 when I create an installer for .Net 4.0 software ?

Regards,

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

Re: .Net Installer Class Action for .Net 4.0

Hi Bart,

Indeed ReqVersion needs to be modified to reflect the required .Net version.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
bjk68
Posts: 55
Joined: Tue Dec 01, 2009 12:45 pm

Re: .Net Installer Class Action for .Net 4.0

Hi Gabriel,

Thanks for your confirmation.

Some suggestions for making things easier for AI users (please choose one out of these three):
  • Let AI detect the required minimal .Net version from the "Software Launch Conditions" so when adding a ".Net Installer Class Action", the correct .Net version will be entered in the Action Data automatically. When the Software Launch Condition is altered afterwards, the value of the ReqVersion should be changed accordingly (also automatically).
  • When the AI user adds a ".Net Installer Class Action", AI presents an intermediate window, where the user can choose for which .Net version this ".Net Installer Class Action" is needed.
  • When the AI user adds a ".Net Installer Class Action", a warning popup appears, warning the user that he should enter the correct value for the .Net framework for the ReqValue parameter (because now this is not an obvious action at all).
Attention: For .Net Framework 3.0 and 3.5 I think you should use ReqVersion=2.0.50727, because 3.0 and 3.5 are incremental framework versions.

Best regards,
Bart

Return to “Common Problems”