http://bugzilla.wpkg.org/show_bug.cgi?id=75





--- Comment #6 from Tomasz Chmielewski <[EMAIL PROTECTED]>  2007-11-01 18:10:11 
---
Oh, that's an interesting bug indeed, and I couldn't reproduce it for a very
long time.

I have Windows 2000 and XP, both with Windows Script Host 5.6 installed.

So, with this XML file and C:\wpkg\puttys.exe which is not there:

<packages>
    <package
        id="test"
        name="test version"
        revision="3"
        reboot="false"
        priority="100"
        notify="false">
        <check type="file" condition="versiongreaterorequal"
        path="C:\wpkg\puttys.exe" value="0.60.0.0" />
        <install cmd="notepad" />
        <upgrade cmd="notepad" />
    </package>
</packages>


###############################################################

Windows 2000 produces a result we should expect:


checking existence of package:test version
Finding version of C:\wpkg\puttys.exe

Unable to find file version for C:\wpkg\puttys.exe :
Leaving GetFileVersion with version UNKNOWN
Unable to find the file version for C:\wpkg\puttys.exe
Installing test version...
Reading variables from package
Stored 0 variables from package
executing command : notepad
command returned result: 0
Restoring old environment
checking existence of package:test version
Finding version of C:\wpkg\puttys.exe

Unable to find file version for C:\wpkg\puttys.exe :
Leaving GetFileVersion with version UNKNOWN
Unable to find the file version for C:\wpkg\puttys.exe


There were the following errors:


Package name: test version

Could not install test version.
Failed checking after installation.


###############################################################

Windows XP behaves differently:

checking existence of package:test version
Finding version of C:\wpkg\puttys.exe

Obtained version "".
Leaving GetFileVersion with version
Checking file version  is versiongreaterorequal (than) 0.60.0.0 - got result 0
Checking version of 'C:\wpkg\puttys.exe' : Is  >= 0.60.0.0 ? true
Bypassing installation of package test version
Package test version missing from settings file, adding it now.
saving XML : C:\WINDOWS\system32\wpkg.xml


###############################################################

Am I missing something, or is just another example which perfectly shows how
compatible Microsoft products can be?


-- 
Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
wpkg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wpkg-users

Reply via email to