Jazkal Posted December 13, 2011 Share Posted December 13, 2011 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. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 13, 2011 Moderators Share Posted December 13, 2011 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 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...
Jazkal Posted December 13, 2011 Author Share Posted December 13, 2011 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? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 13, 2011 Moderators Share Posted December 13, 2011 Jazkal,If you download the latest beta of AutoIt3Wrapper then you can use this directive to compile both versions:#AutoIt3Wrapper_Compile_both=yBut 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 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...
Developers Jos Posted December 13, 2011 Developers Share Posted December 13, 2011 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 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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