Sign in to follow this  
Followers 0
kschwarz

AutoIt3Wrapper FileVersion Directive

3 posts in this topic

I am trying to explore AutoIt3Wrapper in my applications and are getting some problems. The attached script is to get the ProductVersion and FileVersion settings. FileVersion succeed but ProductVersion is not set.

Teste_ProductVersion.au3

During the compilation I've got the following messages:

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /ShowGui /in "C:\TEMP\Teste_ProductVersion.au3"

+>13:20:25 Starting AutoIt3Wrapper v.2.0.1.24 Environment(Language:0409 Keyboard:00010416 OS:WIN_XP/Service Pack 2 CPU:X64 OS:X64)

-> 1 Change(s) made.

>Running AU3Check (1.54.19.0) from:C:\Program Files (x86)\AutoIt3

+>13:20:41 AU3Check ended.rc:0

>Running:(3.3.6.0):C:\Program Files (x86)\AutoIt3\aut2exe\aut2exe.exe /in "C:\TEMP\Teste_ProductVersion.au3" /out "C:\TEMP\Teste_ProductVersion.exe" /nopack /comp 2

+>13:20:43 Aut2exe.exe ended.rc:0

>13:20:43 Performing the Program Resource Update steps:

!>13:20:43 Error: Failed to enumerate RT_VERSION resources, using defaults.

...>Updating Program Version information.

+>13:20:44 Program Resource updating finished successfully.rc:0

>Running:(3.3.0.0):C:\Program Files (x86)\AutoIt3\aut2exe\upx.exe" --best --compress-icons=0 -qq "C:\TEMP\Teste_ProductVersion.exe"

705445 -> 360357 51.08% win32/pe Teste_ProductVersion.exe

+>13:20:46 UPX Ended: rc:0

+>13:20:46 Created program:C:\TEMP\Teste_ProductVersion.exe

->13:20:46 Warning: This is an Unicode compiled script and will not run on Win9x/ME.

>Updated the Source Version to:0.0.0.20...

>Exit code: 0 Time: 6.779

Could one point out what I am doing wrong?

Other question is that FileGetVersion allows to get values of the following fields Comments, InternalName, ProductName, CompanyName, LegalCopyright, ProductVersion, FileDescription, LegalTrademarks, PrivateBuild, FileVersion, OriginalFilename, SpecialBuild, but only some are set when I compile an AutoIt script (Success on fields: Comments, LegalCopyright, FileDescription and FileVersion only).

What am I doing wrong?

Thanks.

Share this post


Link to post
Share on other sites



Klaus,

Welcome to the AutoIt forum. :P

Your script compiles perfectly for me (Vista x32 SP2 - 3.3.6.1) and when I look in the file properties I see that both the File Version and Product Version are set as in the directives. However, I do not get Product Version returned by FileGetVersion - so the problem seems to lie there.

AutoIt used to place the AutoIt version in the Product Version property - it still does by default. It is only recently that Jos (one of the Devs who deals particularly with AutoIt3Wrapper) has amended the #AutoIt3Wrapper_Res_ProductVersion directive to allow the user to change that value. Perhaps the internals of FileGetVersion were not adjusted to reflect this. :mellow:

Sorry I cannot be of more help - Jos is probably the one to answer this more completely. I am sure he will be along shortly. :party:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

Klaus,

Welcome to the AutoIt forum. :P

Your script compiles perfectly for me (Vista x32 SP2 - 3.3.6.1) and when I look in the file properties I see that both the File Version and Product Version are set as in the directives. However, I do not get Product Version returned by FileGetVersion - so the problem seems to lie there.

AutoIt used to place the AutoIt version in the Product Version property - it still does by default. It is only recently that Jos (one of the Devs who deals particularly with AutoIt3Wrapper) has amended the #AutoIt3Wrapper_Res_ProductVersion directive to allow the user to change that value. Perhaps the internals of FileGetVersion were not adjusted to reflect this. :mellow:

Sorry I cannot be of more help - Jos is probably the one to answer this more completely. I am sure he will be along shortly. :party:

M23

Thanks for your answer, M23! I'll be waiting for others help.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0