VbsCaCadGetValidate() |
This optional function can be used in any generated vbscript custom actions. It can be included or excluded (to save space if not required).
It is included by default, to changes this:
The VbsCaCadGetVbsCaCadGet() function can be used to retrieve values (see it for more detail) however the "VbsCaCadGetValidate()" version also performs some validation of the returned value.
The function takes these parameters:
The available validation types are:
If parameters are passed on a validation type which doesn't require them then an error is generated.
EXAMPLE |
#data "ConfigData" "ExistingFile" "c:\tmp\\1.x" "ExistingDir" "c:\tmp\\" "InvalidType" "InvalidTypeValue" #data <$VbsCa Binary="TestVbsCaCadGetValidate.vbs" data="ConfigData"> <$VbsCaEntry "Test"> dim Val Val = VbsCaCadGetValidate("ExistingFile", "file") Val = VbsCaCadGetValidate("ExistingDir", "dir") Val = VbsCaCadGetValidate("InvalidType", "xxx:yyy") <$/VbsCaEntry> <$/VbsCa> <$VbsCaSetup Binary="TestVbsCaCadGetValidate.vbs" Entry="Test" Seq="InstallInitialize-" SeqTable="InstallExecuteSequence" CONDITION=^<$VBSCA_CONDITION_INSTALL_ONLY>^ data="ConfigData">