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.
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.
FOLLOW US
Get the latest news in Application Packaging