Custom Action to install feature - 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!

TomHMeredith
Posts: 1
Joined: Wed Sep 22, 2010 8:15 pm

Custom Action to install feature

Hi

I'm trying to install a feature based upon the status of a checkbox. The dialog has a checkbox, name 'VAT_FRS', property name 'VAT_FRS_PROP' and a value of '1'

I have a custom action set up which includes the following vbs:

Code: Select all

Function FlatRate

Const msiInstallStateAbsent = 2
Const msiInstallStateLocal  = 3

If Session.Property("VAT_FRS_PROP") = "1" Then 
   Session.FeatureRequestState("VAT_FLAT_RATE") = msiInstallStateLocal
End If

End Function
However, I can't get the feature to install. Can anyone point me in the right direction? What should I have the Installation Behaviour set as in the feature properties?

My custom action is set under InstallExecuteSequence/Install, has a specified function name of FlatRate and Action data of [VAT_FRS_PROP]

Any help/pointers gratefully received!

Cheers

Tom.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Custom Action to install feature

Hi Tom,

Here is an How To written by us that shows how you can accomplish that. The article also has attached a sample project which you can analyze.

Please let us know if you have any questions.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”