Jump to content

is possible the code self update when compile?


Luigi
 Share

Recommended Posts

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

Visit my repository

Link to comment
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
 Share

  • Recently Browsing   0 members

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