79787420

Date: 2025-10-10 14:03:39
Score: 0.5
Natty:
Report link

Years later but if anyone else is looking, tou can get the version from the .msi with this:

        private String GetVersionFromMsi(string FilePath)
        {
            //var FilePath = @"C:\Users\self\path\to\your\installFile.msi";
            var view = ((dynamic)Activator.CreateInstance(Type.GetTypeFromProgID("WindowsInstaller.Installer")))
                .OpenDatabase(FilePath, 0)
                .OpenView("SELECT Value FROM Property WHERE Property = 'ProductVersion'");
            view.Execute();
            string version = view.Fetch().StringData(1);
            return version;
        }

From https://stackoverflow.com/a/76829255/7303640

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Amy