VAN0 Posted August 4, 2019 Share Posted August 4, 2019 (edited) #AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y #AutoIt3Wrapper_Res_Fileversion_First_Increment=y With this two lines $VERSION variable automatically updated with current file version. However when Au3Stripper is activated, the $VERSION in compiled script is not updated. Example: #AutoIt3Wrapper_Res_Fileversion=1.0.0.0 #AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y #AutoIt3Wrapper_Res_Fileversion_First_Increment=y #AutoIt3Wrapper_Run_Au3Stripper=y Global Const $VERSION = "1.0.0.0" MsgBox(0, "Version", $VERSION) After compilation the .exe file itself will have version 1.0.0.1, but when executed it will show 1.0.0.0 in the message box. Is there a way make Au3Stripper run last, after version number was increased? Thank you. Edited August 4, 2019 by VAN0 Link to comment Share on other sites More sharing options...
Developers Jos Posted August 4, 2019 Developers Share Posted August 4, 2019 (edited) Please make a bugreport in trac so I can follow this up later or else I will forget. tnx Jos Edited August 5, 2019 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. Link to comment Share on other sites More sharing options...
VAN0 Posted August 4, 2019 Author Share Posted August 4, 2019 Done Link to comment Share on other sites More sharing options...
water Posted August 4, 2019 Share Posted August 4, 2019 (edited) My understanding is that just #AutoIt3Wrapper_Res_Fileversion gets updated when #AutoIt3Wrapper_Res_Fileversion_AutoIncrement is set to Yes. Never heard that a user defined variable will be updated. Can you please point me to the relevant documentation? Edited August 4, 2019 by water My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Simpel Posted August 5, 2019 Share Posted August 5, 2019 (edited) Hi, this should work (untested): MsgBox(0, "Version", FileGetVersion(@ScriptFullPath)) I don’t think that your variable $VERSION will be updated through compilation. Regards, Simpel Edited August 5, 2019 by Simpel VAN0 1 SciTE4AutoIt = 3.7.3.0 AutoIt = 3.3.14.2 AutoItX64 = 0 OS = Win_10 Build = 19044 OSArch = X64 Language = 0407/german H:\...\AutoIt3\SciTE H:\...\AutoIt3 H:\...\AutoIt3\Include (H:\ = Network Drive) Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. Link to comment Share on other sites More sharing options...
Developers Jos Posted August 5, 2019 Developers Share Posted August 5, 2019 12 minutes ago, Simpel said: I don’t think that your variable $VERSION will be updated through compilation. Yes it does and there is an issue when au3stripper is used. 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. Link to comment Share on other sites More sharing options...
Developers Jos Posted August 5, 2019 Developers Share Posted August 5, 2019 There is a fix for this available in the Beta directory. Please give it a try and let me know whether that fixes it also for you. 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. Link to comment Share on other sites More sharing options...
Simpel Posted August 5, 2019 Share Posted August 5, 2019 @Jos: are there more variables modified by au3stripper? Simpel SciTE4AutoIt = 3.7.3.0 AutoIt = 3.3.14.2 AutoItX64 = 0 OS = Win_10 Build = 19044 OSArch = X64 Language = 0407/german H:\...\AutoIt3\SciTE H:\...\AutoIt3 H:\...\AutoIt3\Include (H:\ = Network Drive) Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. Link to comment Share on other sites More sharing options...
Developers Jos Posted August 5, 2019 Developers Share Posted August 5, 2019 59 minutes ago, Simpel said: @Jos: are there more variables modified by au3stripper? Nope, It normally only touches the #AutoIt3_Wrapper directives, but this one was added when we moved away from distributing compiled scripts and I needed a way to simply way to update the displayed script version when running for the source. Jos Simpel 1 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...
VAN0 Posted August 5, 2019 Author Share Posted August 5, 2019 8 hours ago, Jos said: There is a fix for this available in the Beta directory. Please give it a try and let me know whether that fixes it also for you. Is there a beta package I can download or it's just "lose" files from the "Beta files" from your signature? Link to comment Share on other sites More sharing options...
Developers Jos Posted August 6, 2019 Developers Share Posted August 6, 2019 just copy autoit3wrapper.au3 from Beta to your AutoIt3/SciTE/AutoIt3Wrapper directory to test this change. 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. Link to comment Share on other sites More sharing options...
VAN0 Posted August 6, 2019 Author Share Posted August 6, 2019 Nice, it's fixed now. Thank you. Link to comment Share on other sites More sharing options...
Developers Jos Posted August 6, 2019 Developers Share Posted August 6, 2019 Thanks for reporting back. 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. 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