Jump to content

Recommended Posts

Posted (edited)

Bug reading information from an executable.  Anyone have any idea what it can be?

Local $iVer = FileGetVersion(program.exe,$FV_FILEVERSION )
Local $iGer = FileGetVersion(program.exe,$FV_COMPANYNAME )
Local $iRer = FileGetVersion(program.exe,$FV_LEGALCOPYRIGHT )

 

Normal Exe Info: $iVer = 1.0.0.3
                              $iGer =@information
                              $iRer =information

in my PC (win7) (result) = $iVer = 1.0     <- only 1.0
                                              $iGer = ""   <- Nothing
                                               $iRer = ""    <- Nothing

in my PC (win10) (result) (formatted) = $iVer = 1.0      <- only 1.0
                                                                     $iGer = ""      <- Nothing
                                                                      $iRer = ""      <- Nothing

 

On other computers (2 win10, 4 win7, 2 win8) (normal result):   $iVer = 1.0.0.3
                                                                                                                 $iGer =@information
                                                                                                                  $iRer =information

Edited by PedroWarlock
  • 2 weeks later...
Posted
14 minutes ago, Nine said:

Poste um script executável. Faça o upload do exe em questão (precisamos apenas daquele arquivo, já que todas as informações estão dentro dele). Vou testá-lo ...

#include <MsgBoxConstants.au3>

Example()

Func Example()
    ; Retrieve the file version of the AutoIt executable.
    Local $sFileVersion = FileGetVersion(@AutoItExe)

    ; Display the file version. This should be equal to @AutoItVersion.
    MsgBox($MB_SYSTEMMODAL, "", $sFileVersion)
EndFunc   ;==>Example

On some computers this script does not work. I found 2 computers that did not work. Even formatting from windows 7 to win8

Posted
3 minutes ago, Nine said:

image.png.448df70e8b6c88a0966128425324a398.png

Funcionando bem no Win7. Poderia estar relacionado a credenciais?

idk. on one of the computers with windows 7. Return 1.0, another pc returns 3.3.14.5

Posted (edited)
41 minutes ago, Nine said:

Same autoit version ? When you get 1.0, what is the type of user  that running the script ? Have you tried #RequireAdmin ?

yes, #RequireAdmin 

 

Local $iVer = FileGetVersion(@AutoItExe,$FV_FILEVERSION )    = Result 1.0
            Local $iGer = FileGetVersion(@AutoItExe,$FV_COMPANYNAME )    = Result ""  Nothing
            Local $iRer = FileGetVersion(@AutoItExe,$FV_LEGALCOPYRIGHT ) = Result "" Nothing

This problem occurs with the same computer even after formatting, but not with another

 

Edited by PedroWarlock

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...