hi there...
I would like to be able to do a check for registry existence when a particular feature is selected.
Currently I have everything in 1 feature and as part of that I have a custom action under InstallExecuteSequence -> InstallValidate which calls vbscript that checks the existence of the entry and results in an Error Message and termination of the install if it is not located.
The problem I have now is that I would like to separate the MSI into features and apply the check of the registry to only 1 of the features - so that is - if that particular feature is selected then I will run the check.
My initial thought was to leave the validation custom action script and just add a check using the FeatureRequestState - like following
if Session.FeatureRequestState("Feature4") = msiInstallStateLocal Then ....
'check registry here etc
I wondered though - is this is the best way - or is there another way to break down the custom actions for different Features?
btw I have Enterprise licence of the software.
Thanks
Skip.
FOLLOW US
Get the latest news in Application Packaging