Jump to content
Sign in to follow this  

Compile sequence of operations

Recommended Posts

I am trying to automatically update the #AutoIt3Wrapper_Res_Fileversion= directive by using a #AutoIt3Wrapper_Run_Before= directive.  What I see happening when I use Tools/Compile in SciTE is my code is updated correctly by my run before utility but the exe that is created is not.

I am trying to understand what image of the source text gets passed to the compile process.  Of course if I compile again the exe and source version are the same.  I assume then that the image passed to the compile is the one before the run before has processed the source.

Any thoughts on how to get what I want done?  Thanks.


Share this post

Link to post
Share on other sites

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
    #AutoIt3Wrapper_Run_Before=E:\BNDocuments\AutoItScripts\BPFPver.exe %in%
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****


Share this post

Link to post
Share on other sites

I changed the version to 3.9 to run this example.  When it completes the AutoIt3Wrapper_Res_Fileversion=  This shows me the utility has made the update.  The file proprieties still show 3.8.

>"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /ShowGui /prod /in "E:\BNDocuments\AutoItScripts\BPFP.au3"
+>12:38:35 Starting AutoIt3Wrapper v.16.612.1119.0 SciTE v.   Keyboard:00000409  OS:WIN_10/  CPU:X64 OS:X64  Environment(Language:0409)  CodePage:0  utf8.auto.check:4
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Users\Me\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\Me\AppData\Local\AutoIt v3\SciTE
-> No changes made..
>Running:E:\BNDocuments\AutoItScripts\BPFPver.exe E:\BNDocuments\AutoItScripts\BPFP.au3
>E:\BNDocuments\AutoItScripts\BPFPver.exe E:\BNDocuments\AutoItScripts\BPFP.au3 Ended   rc:0
>Running AU3Check (  from:C:\Program Files (x86)\AutoIt3  input:E:\BNDocuments\AutoItScripts\BPFP.au3
+>12:38:42 AU3Check ended.rc:0
>Running:(\Program Files (x86)\AutoIt3\aut2exe\aut2exe.exe  /in "E:\BNDocuments\AutoItScripts\BPFP.au3" /out "C:\Users\Me\AppData\Local\AutoIt v3\Aut2exe\~AU7CF0.tmp.exe" /nopack /icon "E:\BNDocuments\AutoItScripts\BPFP.ico" /comp 2
+>12:38:43 Aut2exe.exe ended.C:\Users\Me\AppData\Local\AutoIt v3\Aut2exe\~AU7CF0.tmp.exe. rc:0
>12:38:43 Performing the Program Resource Update steps:
...>Updating Program Version information.
...>Setting Program ExecutionLevel Manifest information to asInvoker
...>Setting Program Compatibility Manifest information to Windows10
...>Updating Program Manifest information.
>12:38:43 Program Resource updating finished successfully.
+>12:38:43 Created program:E:\BNDocuments\AutoItScripts\BPFP.exe
+>12:38:44 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 9.252


Share this post

Link to post
Share on other sites

Sorry for being slow here but the issue is simply due to the fact that the directives are read at the start of AutoItWrapper and are saved in variables, so updating autoit3wrapper directives doesn't help unless you use the build-in version increment directive: 


So the actual packed source will contain you new version, but the program resources will contain what was read at the beginning.

You should use #pragma directives as those are read by aut2exe!


Edited by Jos

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.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...