Upgrading .Net with silent Install - Advanced Installer Community
pimboden40
Posts: 22
Joined: Wed Jun 04, 2014 3:42 pm

Upgrading .Net with silent Install

Hello.
I have an AI Project that installs a Windows service. This service is also capable of searching upgrades and launches a silent install to upgrade itself.
This is working perfectly.... But...

I have now upgraded my service to use .Net Framework 4.6. I just noticed, that when upgrading manually, the setup correctly stops and asks for the installation of the framework.

I have not included the (.net) Package inside my installer, so it actually first downloads it and installs it.

Now to my question. What do I have to do, so the silent install, also first upgrades the .net Framwork before continuing.
Do I have to include the .net Packag inside my installer? Or is there a better way... I'n not necesary keen to add a 68 MB large file to my 7 MB installer...

Would the silent install actually work, if it detects that the prerequisites don't match?

Thank you
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Upgrading .Net with silent Install

Hello,

Since your service requires the 4.6 version of .Net Framework, then you can add it as a prerequisite in the Prerequisite page. Note that you can add the .Net Framework as a URL Based prerequisite. That means it will be downloaded only if it is scheduled for installation.

For details, please take a look on the Frequently Asked Questions about prerequisites article which may be useful to you.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pimboden40
Posts: 22
Joined: Wed Jun 04, 2014 3:42 pm

Re: Upgrading .Net with silent Install

Hello Dan,
Thanks for your time, but that's not the answer to my question.
I know how to add it as prerequisite, I have done it. The question is: what does my Installer do, when it has the prerequisite .Net 4,6 and it is running silently and finds out that the target machine has now .Net4.6 installed?
Does it silently download / install the .Net 4.6 in the target machine, or does it just stop installing because the prerequisites don't match?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Upgrading .Net with silent Install

Hello,
The question is: what does my Installer do, when it has the prerequisite .Net 4,6 and it is running silently and finds out that the target machine has now .Net4.6 installed?
Please note that a prerequisite will be installed based its install conditions defined in the Prerequisite Install Conditions Tab. Just make sure that the install conditions are properly defined (the prerequisites from our predefined list have their install conditions properly defined).

Now, if the prerequisite is not found on the target machine, then it will be downloaded and installed.

If the prerequisite is already on the target machine, then it will not be downloaded, that means it will not be installed either.
Does it silently download / install the .Net 4.6 in the target machine, or does it just stop installing because the prerequisites don't match?'
If you perform a silent installation and the .Net Framework prerequisite is not found on the target machine, then it will be downloaded and silently installed.

If the prerequisite is already on the target machine, then the .Net Framework prerequisite installation will be skipped and the installation will continue with the main installation package.

Note that Pre-Install prerequisites are installed by an EXE bootstrapper before your MSI is launched.

Please let me know if you have any questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pimboden40
Posts: 22
Joined: Wed Jun 04, 2014 3:42 pm

Re: Upgrading .Net with silent Install

Perfect !
Thanks for your time and fast response!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Upgrading .Net with silent Install

You're always welcome,

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”