win32api.GetFileVersionInfo - error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • xytho33

    #1

    win32api.GetFileVersionInfo - error

    I need to be able to programatically get the version info from a windows
    DLL preferably in the same format as what is displayed in the properties
    tab.

    I was overjoyed to find Mark Hammond's Python Extensions
    (http://starship.python.net/crew/mhammond/) The package includes a little
    demo program "filevers.p y" distributed in the win32api download that does
    exactly what I need.

    Unfortunately I get this error when I execute the script:

    C:\work>getfile ver.py
    Traceback (most recent call last):
    File "C:\work\getfil ever.py", line 8, in ?
    d=win32api.GetF ileVersionInfo( fname, '\\')
    pywintypes.erro r: (1812, 'GetFileVersion Info:GetFileVer sionInfoSize', 'The
    specified image file did not contain a resource section.')

    Anybody know what this means, or more importantly, if there is a
    work-around? "fname", in the code snippit above, contains the name of a
    DLL compiled with MS Visual Studio .NET 2003.

    Thanks,


  • Peter Hansen

    #2
    Re: win32api.GetFil eVersionInfo - error

    xytho33 wrote:[color=blue]
    > I need to be able to programatically get the version info from a windows
    > DLL preferably in the same format as what is displayed in the properties
    > tab.[/color]

    (Posted and mailed)

    Your posts are making it to the newsgroup, so please stop
    posting more of them and look for Dennis Lee Bieber's
    reply.

    -Peter

    Comment

    • L. Shestov

      #3
      Re: win32api.GetFil eVersionInfo - error

      Sorry, I seem to be missing the replies! I will stop posting!

      Peter Hansen wrote:[color=blue]
      > xytho33 wrote:
      >[color=green]
      >> I need to be able to programatically get the version info from a windows
      >> DLL preferably in the same format as what is displayed in the properties
      >> tab.[/color]
      >
      >
      > (Posted and mailed)
      >
      > Your posts are making it to the newsgroup, so please stop
      > posting more of them and look for Dennis Lee Bieber's
      > reply.
      >
      > -Peter[/color]

      Comment

      Working...