Hi Alex, Thank you very much for the help. I have tried the code you posted but got an error stopped the MSI installation: "Error 1720. There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action IfFileExist script error -2146827850, Microsoft VBScript runtime error: Object doesn't support this property or method Line 4, Column 5 "
I have googled this error and someone suggested to reinstall the latest Window Script Host and I've done that but still got the same error. Then I digged out another post explaining the reason of this error but he didn't say how to fix it and here is the link: http://www.pcreview.co.uk/forums/thread-1544447.php. Do you have any idea with this error 1720? Regards, Justin -- View this message in context: http://www.nabble.com/Condition-based-on-INSTALLLOCATION-tp15233800p15912888.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users