Installer on Windows Server 2012 asks to install .NET 2.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!

benjy
Posts: 37
Joined: Mon Nov 02, 2009 12:25 pm

Installer on Windows Server 2012 asks to install .NET 2.0

Hi,

I am authoring an installer for a .NET 4.0 application to run on Windows Server 2012 using Advanced Instance 9.9 (Enterprise license). The installer runs fine. However, when it completes, a dialog pops up saying that a Windows Feature is missing (.NET Framework 3.5) and then tries to install it (which fails). Is there anyway to suppress this from happening? I know that my application runs fine on .NET 4.0 alone (and the main executable is a .NET 4.0 assembly), although I do have to include some Third Party DLLs that I am guessing are compiled against 2.0 - is this what is triggering this pop-up?

Thanks,

Ben
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installer on Windows Server 2012 asks to install .NET 2.

Hello Ben,

Yes, this may happen if your application try to use features from .Net Framework 3.5. You should check your application project dependencies and if .Net Framework 3.5 it is required, then you can add it to your installation project on our "Prerequisites" page.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
benjy
Posts: 37
Joined: Mon Nov 02, 2009 12:25 pm

Re: Installer on Windows Server 2012 asks to install .NET 2.

Hi Danial,

Thank you for your reply.

My bad, I'm afraid... We have a little command line utility that we run to create an Event Source in the Windows Event Log. You can probably guess the rest... Yes, it's in .NET 2.0... So my fault entirely.

However, this does seem like a good opportunity to ask for a feature request... Would it be possible to add a feature to AI that allows an Event Source to be created? This is an extremely common thing to want to do, especially when you are installing services. This is something I've asked for before (see http://www.advancedinstaller.com/forums ... =2&t=12864) but I really do think it would be an extremely useful feature to have.

Anyway, thanks for your help.

Kind regards,

Ben
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installer on Windows Server 2012 asks to install .NET 2.

Hello Ben,
My bad, I'm afraid... We have a little command line utility that we run to create an Event Source in the Windows Event Log. You can probably guess the rest... Yes, it's in .NET 2.0... So my fault entirely.
I'm glad you've found the root cause of the related behavior.
However, this does seem like a good opportunity to ask for a feature request... Would it be possible to add a feature to AI that allows an Event Source to be created? This is an extremely common thing to want to do, especially when you are installing services. This is something I've asked for before (see http://www.advancedinstaller.com/forums ... =2&t=12864) but I really do think it would be an extremely useful feature to have.
We'll consider your suggestion for adding this feature, but implementing it has very low priority. Perhaps in the future we will increase its priority, but for the moment there are not immediate plans.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”