Sign in to follow this  
Followers 0
Jazkal

compiled exe version number issue

5 posts in this topic

Here is my working test script:

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=C:\Program Files\AutoIt3\Icons\au3.ico
#AutoIt3Wrapper_outfile=.\NewTest.exe
#AutoIt3Wrapper_Compression=4
#AutoIt3Wrapper_Res_Comment=Place Comments Here
#AutoIt3Wrapper_Res_Description=Place Description Here
#AutoIt3Wrapper_Res_Fileversion=1.2.3.4
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y
#AutoIt3Wrapper_Res_LegalCopyright=© 2011 Mine
#AutoIt3Wrapper_Res_Language=1033
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#cs ----------------------------------------------------------------------------
AutoIt Version:  3.3.6.1
Author:       myName
Date:
Script Function: Template AutoIt script.
#ce ----------------------------------------------------------------------------
$var = DriveStatus( "c:\" )
MsgBox(4096,"Status",$var)

When I compile it under scite it records the version number listed:

#AutoIt3Wrapper_Res_Fileversion=1.2.3.4

However, when I compile via command line in a script, it only reports the AutoIt version number.

this is the comand that scite says it ran:

C:\Program Files (x86)\AutoIt3\aut2exe\aut2exe_x64.exe /in "C:\NewTest.au3" /out "C:\NewTest.exe" /nopack /icon "C:\Program Files\AutoIt3\Icons\au3.ico" /comp 4

Here is the output from the scite window:

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /in "C:\NewTest.au3" /autoit3dir "C:\Program Files (x86)\AutoIt3"

+>10:51:54 Starting AutoIt3Wrapper v.2.0.3.0 Environment(Language:0409 Keyboard:00000409 OS:WIN_7/Service Pack 1 CPU:X64 OS:X64)

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

+>10:51:54 AU3Check ended.rc:0

>Running:(3.3.6.1):C:\Program Files (x86)\AutoIt3\aut2exe\aut2exe_x64.exe /in "C:\NewTest.au3" /out "C:\NewTest.exe" /nopack /icon "C:\Program Files\AutoIt3\Icons\au3.ico" /comp 4

+>10:51:55 Aut2exe.exe ended.rc:0

>10:51:55 Performing the Program Resource Update steps:

...>Updating Program Version information.

+>10:51:55 Program Resource updating finished successfully.rc:0

+>10:51:55 Created program:C:\NewTest.exe

>Updated the Source Version to:1.2.3.5...

>Exit code: 0 Time: 2.609

When it says: "Updated the Source Version to:1.2.3.5..."

what is it actually running? I need this command so I can update my exe after it is created.

Share this post


Link to post
Share on other sites



Jazkal,

The "Updating" line is produced by AutoIt3Wrapper, which is what is run when you compile in SciTE4AutoIt3 and which manages the whole process - notice that the first line of the output you posted shows it starting. The version update is sparked by the #AutoIt3Wrapper_Res_Fileversion directive. :)

If you compile directly with Aut2Exe the directive is ignored. Then you will need to use ResHacker or something similar to amend the exe resource directly.

I hope that explains what is happening - even if it does not help you that much! ;)

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

Thanks for the info.

I see there is a way to force the AutoIt3Wrapper to build the exe's as x64, but I don't see a way to force x86. It looks like it only builds x86 if it is being compiled on an x86 OS.

Am I missing something to allow me to build the same au3 script into multiple different exe's (some x86 and some x64) via command line with AutoIt3Wrapper?

Share this post


Link to post
Share on other sites

Jazkal,

If you download the latest beta of AutoIt3Wrapper then you can use this directive to compile both versions:

#AutoIt3Wrapper_Compile_both=y

But as I only use X86 that is as far as my expertise goes. If you have any more detailed queries I suggest posting them in this thread where the author will see them. :)

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

Thanks for the info.

I see there is a way to force the AutoIt3Wrapper to build the exe's as x64, but I don't see a way to force x86. It looks like it only builds x86 if it is being compiled on an x86 OS.

Am I missing something to allow me to build the same au3 script into multiple different exe's (some x86 and some x64) via command line with AutoIt3Wrapper?

using this directive means that you either force x86 (N) or x64 (Y)

#AutoIt3Wrapper_UseX64=                      ;(Y/N) Use X64 versions for AutoIt3_x64 or AUT2EXE_x64. Default=N

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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