Getting the Fileversion from a File in MSI-Package - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Anthrax
Posts: 19
Joined: Tue Jul 31, 2007 1:51 pm

Getting the Fileversion from a File in MSI-Package

Hi,

in my Installation package, i want to set a Feature to be installed, when the fileversion of an installed file is smaller than the fileversion
in my package (file replacement). I use a vbscript to retrieve the installed fileversion. Now my problem is to retrieve the fileversion from the file in the msi-package. Is there a way to pass the fileversion from a file in the package to the vbscript?

thanks in advance.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Getting the Fileversion from a File in MSI-Package

Hi,

The only way to get the version of a file inside the MSI package is to query the "File" table of the MSI (this can be done from inside the custom action). We have a sample custom action on the forum which queries a table inside the MSI.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”