[wpkg-users] [Bug 75] File version check does not work properly
bugzilla-daemon at bugzilla.wpkg.org
bugzilla-daemon at bugzilla.wpkg.org
Thu Nov 1 18:10:27 CET 2007
http://bugzilla.wpkg.org/show_bug.cgi?id=75
--- Comment #6 from Tomasz Chmielewski <mangoo at wpkg.org> 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.
wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users
More information about the wpkg-users
mailing list