I found original email with the code. There is a typo in it. Add "Set" in front of fso = CreateObject...:
Set fso = CreateObject(Scripting.FileSystemObject) -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alexander Shevchuk Sent: Saturday, March 08, 2008 11:48 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Condition based on INSTALLLOCATION The error you are getting is 0x800A01B6 - Object does not support this property or method. Check if spelling in fso.FileExists is correct. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Justintu Sent: Saturday, March 08, 2008 5:28 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Condition based on INSTALLLOCATION 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 ------------------------------------------------------------------------- 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 ------------------------------------------------------------------------- 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