--- wpkg/wpkg-0.9.2/wpkg.js 2005-12-09 16:15:53.000000000 -0500 +++ wpkg.js 2006-02-03 11:40:30.844800978 -0500 @@ -946,8 +946,9 @@ } } else if (checkType == "file") { if (checkCond == "exists") { + var wso = new ActiveXObject("wScript.shell") var fso = new ActiveXObject("Scripting.FileSystemObject"); - if (fso.FileExists(checkPath)) { + if (fso.FileExists( wso.expandEnvironmentStrings(checkPath) )) { return true; } } else {