MSI Factory 2.3

MSI.GetMSIVersion

MSI.GetMSIVersion

This is the first topic This is the last topic  

MSI.GetMSIVersion

This is the first topic This is the last topic  

OverviewExamples

string MSI.GetMSIVersion (

)

Example 1

strVersion = MSI.GetMSIVersion();

Dialog.Message("MSI Version", "The MSI version installed is "..strVersion);

Gets the version of the Windows Installer that is installed and returns the information in a message box.

Example 2

strVersion = MSI.GetMSIVersion();

 

nCompare = String.CompareFileVersions(strVersion, "3.0");

if (nCompare == -1) then

   Dialog.Message("Requirement Failed", "This setup requires a minimum of version 3.0 of the Windows Installer.");

end

 

Checks to see if the MSI version is greater than or equal to "3.0" and shows an error dialog if the condition fails.

See also: Related Actions


Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us