PDA

View Full Version : How can I get Setup file name with MsiGetProperty() ?



pchans
07-18-2007, 03:16 AM
Assume my setup file path is "C:\New folder\Package.exe"

I can get current path of my Setup file using
MsiGetProperty(ISMSI_HANDLE, "SETUPEXEDIR", setupexe, nBuffer);

However, this only returns "C:\New folder".
Is there any way I can get the setup file name "Package.exe" ?

Any help is appreciated.

praveendanam
07-18-2007, 03:30 AM
hai,


please check productname property. will it help you

-praveen

pchans
07-18-2007, 09:45 PM
Thanks for your suggestion, but the ProductName will return another string rather than "Package.exe" which I want.