Sign in to follow this  
Followers 0
Luigi

is possible the code self update when compile?

2 posts in this topic

#1 ·  Posted (edited)

Hi Forum!

 
Another time, I had to compile some information within the code that I do not remember exactly ... 
But the doubt remained. 

Then, you can compile a file, use the FileInstal to embed this file into the executable, and save this FileVersion within a variable within the code? 

Something like auto-updating of the variable that contains the FileVersion file. 

If you wonder why it is easy to answer: Do not downgrade file. (not allow retrograde file update). 

At the moment I see an alternative path, but I would not use it to exchange ideas. 

Embedding the file into the executable, and expand it with a temporary name, making verification of FileVersion files (new and old) and overwrite the latest. It's an option ... 
 
Another option would be to build a script to be run before compile, look for the variable in question, read the name of the file you want to get FileVersion and use this script to update the variable with the version of the file, then proceed with the build.

Is this possible?

 

Br, Detefon

Edited by Detefon

m(o.O)m

Share this post


Link to post
Share on other sites



Yes.

Saludos


 

venezuela.png Would you like to say thank to Danyfirex using a warmy way?  offer me a cup of coffee... coffee.png

autoit_scripter_blue_userbar.png

       AutoIt...

 

 

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