Page 1 of 1 1
Topic Options
#207814 - 2013-09-27 12:43 AM Odd behavior in GetFileVersion
Tsguy Offline
Getting the hang of it

Registered: 2010-01-18
Posts: 67
Loc: Oregon
I'm sure this has been brought up before, but at the moment I'm not able to find any refrences to this in searching the Kix board.

I have a simple kix script using GetFileVersion to check the BinProductVersion of C:\windows\system32\wuapi.dll.

 Code:

$new=Getfileversion("c:\windows\system32\wuapi.dll","BinProductVersion")

? $new



What's interesting, is that this code will ALWAYS return "7.5.7601.17514", even though I can look at the file in windows explorer and the file version is "7.6.7600.256".

I found that kix was actually doing it's file version check on the file located here: "c:\windows\syswow64\wuapi.dll"

Is there something I'm missing in kix to have it specifically look at the file I want it to look at? Or is this behavior by design?

From an earlier post, should I be looking to add the following to my code?

 Code:
$RC = SetOption("WOW64AlternateRegView","On")


ty,

Lan

Top
#207815 - 2013-09-27 12:58 AM Re: Odd behavior in GetFileVersion [Re: Tsguy]
Tsguy Offline
Getting the hang of it

Registered: 2010-01-18
Posts: 67
Loc: Oregon
digging more I found this thread

http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=187063#Post187063

which appears entirely relevant to my issue.

Top
#207816 - 2013-09-27 01:03 AM Re: Odd behavior in GetFileVersion [Re: Tsguy]
Tsguy Offline
Getting the hang of it

Registered: 2010-01-18
Posts: 67
Loc: Oregon
Yeppers, simply adding

 Code:
$RC = SetOption("WOW64FileRedirection","Off")


got the return i was looking for. \:\)

Top
#207817 - 2013-09-27 01:39 AM Re: Odd behavior in GetFileVersion [Re: Tsguy]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4403
Loc: New Jersey
Um.. this usually works better when you answer someone else's questions! \:D

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#207821 - 2013-09-27 05:01 PM Re: Odd behavior in GetFileVersion [Re: Glenn Barnas]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
lol.
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.055 seconds in which 0.025 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org