I need to check the version of each file I have in my [Files] section of inno setup. For this, I need to get the list of these files.
Is this possible?
Is there an easier way to verify this information before starting the installation?
I need to check the version of each file I have in my [Files] section of inno setup. For this, I need to get the list of these files.
Is this possible?
Is there an easier way to verify this information before starting the installation?
It depends what you want to do with it.
You can generate a list of files that have been included in the installer at compile time, by using the OutputManifestFile
directive, like so:
[Setup]
OutputManifestFile=contents.txt
This will include the filenames and other information of all files actually included. However I believe it only includes the version information when you have not specified the ignoreversion
flag (and normally you should specify this flag on application files).
This is mostly just something you can use for scripting or book-keeping in your development/build environment, however. It's not really intended to affect the user experience in any way.
Typically if you want to verify the version of your installed application at runtime, you just pick one representative file (usually the main EXE for your application) and then use code similar to this to verify the version and act accordingly.