IsMsiSetupInstalled - Native mode?

Got a problem you cannot solve? Try here.
simpsonp
Posts: 20
Joined: Sat Oct 30, 2010 3:22 pm

IsMsiSetupInstalled - Native mode?

Postby simpsonp » Sun Feb 06, 2011 4:27 pm

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

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: IsMsiSetupInstalled - Native mode?

Postby giaviv » Tue Feb 08, 2011 12:30 pm

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.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

simpsonp
Posts: 20
Joined: Sat Oct 30, 2010 3:22 pm

Re: IsMsiSetupInstalled - Native mode?

Postby simpsonp » Wed Feb 09, 2011 9:44 am

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

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: IsMsiSetupInstalled - Native mode?

Postby giaviv » Thu Feb 10, 2011 4:19 pm

Dear Peter,

You could technically try and read the installation log of the other native installer.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot] and 54 guests