Hello Anthony and welcome to Advanced Installer forums,
As the MSI file is basically a database, you can open it and get the required information from it. In this case, you may want to look at the
"File" table. The
"File" table contains all the files and also their
"Version" attribute.
Basically, what you need to do here is open the MSI database, access the "File" table and get the "Version" attribute for your file.
Unfortunately, we do not have a how-to for this (using VBScript).
However, my colleague Dan created a similar How-To by using a C# custom action:
MSI Open Database to get list of file paths to the installed files in a custom dll
There you can also find a sample project for it and also the .SLN file for the custom action, so you can inspect its' code.
In what regards VBScript, I am pretty sure you can find plenty of sample projects on the internet on how to do this.
Hope this helps.
Best regards,
Catalin
FOLLOW US
Get the latest news in Application Packaging