kschwarz Posted June 24, 2010 Share Posted June 24, 2010 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.au3During 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.779Could 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. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 24, 2010 Moderators Share Posted June 24, 2010 Klaus,Welcome to the AutoIt forum. 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. 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. M23 Tralveller 1 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
kschwarz Posted June 24, 2010 Author Share Posted June 24, 2010 Klaus,Welcome to the AutoIt forum. 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. 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. M23Thanks for your answer, M23! I'll be waiting for others help. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now