Install 1 File Into Multiple Identical Named Folders? - Advanced Installer Community

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!

morebeer
Posts: 8
Joined: Tue Jun 21, 2011 10:14 pm

Install 1 File Into Multiple Identical Named Folders?

Having some trouble with this....Lets say I have a Plugin that needs to be installed within the Automate Folder of Photoshop. Now lets say the end user has 3 different versions of Photoshop on his system which all include an Automate Folder.

How can I make sure the Plugin gets installed in each Automate Folder? If I set up a Search for the Automate Folder, and use that for a Property Based Folder containing the Plugin, it only gets installed in the first copy of the Automate Folder found. I need to get that Plugin into all of them. Thanks!
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Install 1 File Into Multiple Identical Named Folders?

I'm afraid the only solution is to create a property based folder for each version of Photoshop and place the file in it.
The installer will actually use the same source so its size will not be increased.

To make sure the plugin is installed only if that version exists on the machine you can use the searches as conditions for the components of each folder
in Organization page. So if the search will not find anything the component, i.e. folder, will not be installed.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
morebeer
Posts: 8
Joined: Tue Jun 21, 2011 10:14 pm

Re: Install 1 File Into Multiple Identical Named Folders?

I tried creating Property Based Folders a few days ago and applying a Search to each one in the Organizations Page. Obviously I'm doing something wrong creating the Searches since after applying them, nothing gets installed and if I remove the Searches, the Installer generates folders for copies of Photoshop that don't exist and installs the plugin. See my screen shots below of the Searches and Organizations Page.

Example: My search, RESULT_PROPERTY1 = C:\Program Files\Adobe\Photoshop CS\Plug-Ins\Adobe Photoshop Only\Automate

I then applied that Search as a Condition in the Organizations Page for Photoshop CS1 and similar searches for all other Photoshop versions. I imagine that I'm doing something wrong here as nothing gets installed even if that path and folder does exist on the end users machine.

Image


Image
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Install 1 File Into Multiple Identical Named Folders?

Folder searches are not empty even if the location is not found. To see their exact content you can create a verbose log of the installation and search it for their names.

To enforce the condition you can use something like this:

RESULT_PROPERTY1 ~>< "Photoshop CS"

This will make the condition to evaluate as TRUE only if the string "Photoshop CS" is a substring of search result.
For each search you can use a part of the path that is unique.
http://www.advancedinstaller.com/user-g ... ialog.html

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
morebeer
Posts: 8
Joined: Tue Jun 21, 2011 10:14 pm

Re: Install 1 File Into Multiple Identical Named Folders?

Thanks, all working now. The Search function is actually simpler than I thought. Just by creating a search using [ProgramFilesFolder]Adobe Photoshop CS3 for example as the Path is all that's needed along with assigning an absolute path to the destination folder within a Property Based Folder. And then just create additional searches for the other versions.

My problem was using the entire path to the desired "install-to folder" within the search as opposed to simply the folder name of the application. :mrgreen:

Return to “Common Problems”