Sign in to follow this  
Followers 0
BigDog

version number

8 posts in this topic

hi , i m new , nice to meet u here !

i have completed some .au3 and compiled them to .exe

but , how do i set the version number of these .exe file ?

because i wish these .exe files could be updated by user from internet.

should i maintain the version number at some where like txt_file or REG by myself

or there is some related property could be set and get in a .au3 or a .exe file ?

Share this post


Link to post
Share on other sites



hi , i m new , nice to meet u here !

i have completed some .au3 and compiled them to .exe

but , how do i set the version number of these .exe file ?

because i wish these .exe files could be updated by user from internet.

should i maintain the version number at some where like txt_file or REG by myself

or there is some related property could be set and get in a .au3 or a .exe file ?

I don't think AutoIt has a built in function for that, i personally use a file on a ftp server , and the script downloads that file and compares the first line with a variable in the script :)

Share this post


Link to post
Share on other sites

Place this at top of your AU3 script

#AutoIt3Wrapper_Res_Fileversion=1.0.0.0

When you press F7 (compile) Autoit3Wrapper will do the job for you.

For more details in Scite press Ctrl+F1 then go to

Extra Utilities/Autoit3Wrapper/Directives available

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

That would be:

$Fileversion = FileGetVersion("Myscript.exe")
Msgbox(0, "", $fileversion)
Edited by PcExpert

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

thank you ! it is working except a little imperfect

! ***************************************************************************************************

! * Input file is UTF8 encoded with BOM, Au3Check does not support UNICODE and will be skipped. *

! ***************************************************************************************************

Edited by BigDog

Share this post


Link to post
Share on other sites

I dont think that the error would impact your script, try compiling it and then see if it still gives the error.

Share this post


Link to post
Share on other sites

You're welcome!

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