How do I get the property of the MSI filename

(Taken from Wise newsgroups)

From: "Tech_Spec_3" <standardATNOSPAMwise.com>

Subject: Re: How do I get the property of the MSI filename.

Date: Monday, July 08, 2002 6:00 PM


If you wish to get the full path and filename to the MSI file that was run you can use the OriginalDatabase property. I could not find this property document in the SDK but I have used it effectively with consistent results in the past. Also, there is a DATABASE property that holds the full path and filename to the MSI file stored by Windows Installer in the temp directory where it is actually run from.


If you wish to know which transforms have been applied you can use the TRANSFORMS property, which is documented in the Windows Installer SDK. This property will contain a semi-colon delimited list of transforms that have been applied to the MSI.

--

Mike

Technical Support Specialist

Wise Solutions, Inc.


NOTE: If you need to extract the MSI's filename from the full path, you'll have to use VBS or WiseScript to do it for you. MSI has nothing to parse strings!