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!

giacino
Posts: 10
Joined: Tue Oct 25, 2005 5:54 pm

Installing files in different path based on QuickTime's vsnv

Hi,

I need to install a 2 QuickTime components (plugins) on Windows based in 2 different locations based on The QuickTime version.

Before QuickTime 7.0, I need to copy the components to the "windows\system32\quicktime\" folder. After QuickTime 7.0 (including) the folder is "program files\quicktime\qtcomponents\"

How can I detect the QuickTime version and create an IF/ELSE statement to copy the components in the proper location.

Thank you in advance for your help and insights,

Guillaume
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

An idea to detect if the version of Quicktime is less or greater than 7.0 would be to use 2 distinct File Searches, one for a file under "[SystemFolder]quicktime" and the other for a file under "[ProgramFilesFolder]quicktime\qtcomponents". It is also assumed that only one of the Searches will be successful. You can use the "Search" wizard to create these 2 File Searches.

Then, in the Files and Folders page, you would create a folder under "Application Folder" (let's name it "plugins") and put the files in it.

Subsequently, in the Custom Actions page, you need to create 2 "Directory Set with Formatted" Custom Actions under "InstallInitialize" (for example), such that:
1. The first CA will set the "plugins" folder to "[SystemFolder]quicktime". The execution Condition for this CA will use the Property used to hold the result of the first File Search.

2. The second CA will set the "plugins" folder to "[ProgramFilesFolder]quicktime\qtcomponents". The execution Condition for this CA will use the Property used to hold the result of the second File Search.

Obviously, because only one Search will be successful, only one Custom Action will be executed.

Hope this helps.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”