prabhu
Posts: 9
Joined: Mon Sep 08, 2014 6:39 am

Check the prerequists WCF is activated or not

I want to check the prerequisites before install
How can I check WCF is activated or not in the system using advanced installer
Can any one suggest the solution please
Daniel
Posts: 8279
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Check the prerequists WCF is activated or not

Hello,

In order to achieve what you want you can use your own custom action which will check if the WCF feature is enabled and will save the result into an installer property (e.g. WCF_PROP). Then, you can add to your project your own custom launch condition like this:
  • Condition: WCF_PROP = enabled
    Description: The installation package cannot be installed on machines with the WCF feature disabled
Please take a look on the "How to programmatically check WCF Http/Non-Http Activation components?" thread which could be useful for you.

Also, as another solution, you can add a Windows Feature bundle in "Prerequisites" page which will enable the "Microsoft .NET Framework 3.5.1 -> WCF HTTP Activation" and "Microsoft .NET Framework 3.5.1 -> WCF Non-HTTP Activation" features. In this way the WCF will be activated during installation if is not already enabled.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
prabhu
Posts: 9
Joined: Mon Sep 08, 2014 6:39 am

Re: Check the prerequists WCF is activated or not

Thank you so much daniel for your reply.

I want to check the prerequisites are installed or not
.Net 4.5
IIS
WCF activation is installed
But
If I use windows feature bundle or Packages > Prerequisites tab in advanced installer it is downloading the prerequisites.
I don't want to download the prerequisites. If they are not there I need to show a error message.
Can u help me in this case.
Teodor
Posts: 73
Joined: Thu Jul 25, 2013 9:56 am

Re: Check the prerequists WCF is activated or not

Hi
prabhu wrote: I want to check the prerequisites are installed or not
.Net 4.5
IIS
WCF activation is installed
For this you need to add a Search for each prerequisite.
prabhu wrote:If they are not there I need to show a error message.
This can be achieved by adding a Display error message or Display message box custom action with sequence from Custom Actions page. On the Condition: field you use the properties defined in the above searches.

Best regards
Teodor Micu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”