Just a small thing- on Win2000, path expansion was not working so wpkg
was unable to verify check type="file" paths that had things like
%Windir% in them. Here is a quick patch to make this work:
--- 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 {
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
wpkg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wpkg-users