We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jer7b
Posts: 9
Joined: Mon Nov 17, 2014 3:07 pm

Install QuickTime if user doesn't have it?

Hi there,

I'm trying to add to my installer the ability to install Apple QuickTime if the user doesn't already have this installed on their computer(s).

I've tried to do this without success unfortunately using this method ...

I've gone into Requirements > Prerequisites and then added a "New package prerequisite" into the "Post-install" folder.

Under the "Install conditions" tab I've checked the "Install prerequisite based on conditions" radio button, then I've clicked "New" and selected "Registry key does not exist" for the criteria and entered "HKLM\SOFTWARE\Apple Computer, Inc.\QuickTime" for the registry key. I've also checked the radio button "Install prerequisite if at least one condition is false".

Under the "Setup Files" tab I've correctly linked to my QuickTime installer package.

However when I build my MSI installer and install on a number of computers without QuickTime - the installer doesn't detect that QuickTime isn't there and present the user with the opportunity to install QuickTime.

I wonder if anyone has any tips for me or could point me in the right direction?

Many thanks in anticipation,

James
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Install QuickTime if user doesn't have it?

Hello James,

This happens because you are using the "Registry key does not exist" prerequisite search type. Your prerequisite is configured to "Install prerequisite if at least one condition is false". This means it will be installed only when the specified registry key (e.g. "HKLM\SOFTWARE\Apple Computer, Inc.\QuickTime") does already exists on target machine. So, in order to obtain what you want you should use a "Registry key exists" prerequisite search instead.

As a side note, I've tested the "QuickTimeInstaller.exe" setup for Windows and I think the best search you can use would be like this:
  • Criteria: Registry value containing a version
    Registry value: HKEY_LOCAL_MACHINE\SOFTWARE\Apple Inc.\Apple Application Support\Version
    Minimum Version: 2.3.6
Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jer7b
Posts: 9
Joined: Mon Nov 17, 2014 3:07 pm

Re: Install QuickTime if user doesn't have it?

Daniel, thanks very much for your advice - it's worked really well.

I'd like to ask one more question please if I may? I wonder is it possible to display a "prerequisite" dialog screen in my installer package ... so in my case it would be displayed if the user doesn't have QuickTime (and as the QuickTime installer is being launched) and it would briefly explain to the user the benefits of installing QuickTime etc.

Many thanks again,

James
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Install QuickTime if user doesn't have it?

Hello James,

For this you can go to "Dialogs" page and add our "PrerequisitesDlg" predefined dialog using the "Add Dialog" context menu option.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”