Jump to content

Recommended Posts

Posted (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 by VAN0
Posted (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 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

 

Posted (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 by 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)

   88x31.png  Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind.

  • Developers
Posted
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.
  :)

Posted

@Josare 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)

   88x31.png  Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind.

  • Developers
Posted
59 minutes ago, Simpel said:

@Josare 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

 

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.
  :)

Posted
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?

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...