Page 1 of 1

IsMsiSetupInstalled - Native mode?

Posted: Sun Feb 06, 2011 4:27 pm
by simpsonp
Hi,

I have an installer (running in MSI mode) that uses IsMsiSetupInstalled to determine whether a pre-requisite install is present on the system. It runs fine if the pre-requisite is compiled in MSI mode but won't detect it if it is compiled in Native mode. I've tried giving the pre-requisite's project name instead of its GUID but no luck.

Is there Is there an equivalent of IsMsiSetupInstalled that should be used to detect Native installs or some other way?

Thanks, Peter

Re: IsMsiSetupInstalled - Native mode?

Posted: Tue Feb 08, 2011 12:30 pm
by giaviv
Dear Peter,

Yes there is! You could read the NATIVE_OLDLOG pre-defined variable and see if it's empty. If an old installation of your product is already installed, this variable will hold the path of its installation log.

Re: IsMsiSetupInstalled - Native mode?

Posted: Wed Feb 09, 2011 9:44 am
by simpsonp
Hi,

Thanks for your reply. I'm trying to detect whether a completely different product is installed on the system rather than an earlier version of the current product. I have a pre-requisite application that must be installed before the new application will work successfully; I don't think your suggestion will work in this scenario?

Ideally, what I'm looking for is a single call to detect whether a product is installed, regardless of whether it is Native or MSI based. Is this achievable? I guess I can always query the registry directly!

Thanks, Peter

Re: IsMsiSetupInstalled - Native mode?

Posted: Thu Feb 10, 2011 4:19 pm
by giaviv
Dear Peter,

You could technically try and read the installation log of the other native installer.