I have a VBScript CA that will check for network path by looking for "\\" in the "INSTALLDIR" value and set a property VALIDATEPATH = 1 if match is found or 0 if not found, based on the result of the InStr function.This CA gets triggered when the user clicks next button in the InstallDir dialog with a network path in the pathedit box.I could get the VBScript message upon "next" button click.When i try to disable Next button by adding the following code, <Condition Action="disable">NOT VALIDATEPATH <> "1"</Condition> it doesn't seems to disable the Next button eventhough the condition is true..
Can anyone give me an insight on what is going wrong here? Here is my VBScript that does the validation... option explicit dim installer,msg,searchstring,searchchar,res,msgVar Set installer = CreateObject("WindowsInstaller.Installer") searchstring = Property("INSTALLDIR") searchchar = ("\\") res = Instr(searchstring,searchchar) If res Then 'msgbox "You cannot install this product to a network path!" Property("VALIDATEPATH") = "1" else Property("VALIDATEPATH") = "0" end if set installer=Nothing Thanks Andy -- View this message in context: http://n2.nabble.com/VBScript-help-tp735779p735779.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users