Is it possible to get Inno Setup to read the file version of the main executable file and set the name of the created setup to something like “myapp_setup_1_0_3708_19805.exe”?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should be able to do it like this:
(I haven’t tried this recently but it certainly worked back in 2007 when I was using InnoSetup in this way. It might need some slight changes if Inno’s syntax has changed since then.)
If MyMainFile.exe was version 1.2.3.4 then that should call the finished installer setup_mytool_1_2_3_4.exe
The AVF1, AVF2, etc. stuff is just there to replace the dots (.) in the version number with underscores (_) to avoid causing problems with things that can’t cope with lots of dots in a filename.