Can Inno Setup automatically copy a plugin for FileMaker to the Extensions folder?

Is there a way to use Inno Setup to automatically copy an application plugin for FileMaker to the Extensions folder?

The setup process would have to do the following logic:
Copy 32bit plugins to any "\Extensions" folder in "Program Files (x86)\FileMaker\"
Copy 64bit plugins to any "\Extensions" folder in "Program Files\FileMaker\"

As an example, the plugin would have to go in folders such as this:
"C:\Program Files (x86)\FileMaker\FileMaker Pro 12 Advanced\Extensions"
"C:\Program Files\FileMaker\FileMaker Pro 14 Advanced\Extensions"

Can someone provide the Inno Setup code to make this happen? I am a novice Inno Setup users so if you can provide all the code that is best. Thanks!
LVL 6
tncodeAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Will LovingPresident, Dedication Technologies, Inc.Commented:
I don't know Inno Setup, but you can use FileMaker itself to install plugins by using the new "Install Plugin" script step when opening a file that has the plugin embedded in a container field with the application. The script step checks all three possible locations before installing the plugin. The one you list above is actually a slightly older though still valid location. The preferred locations now:

C:\users\user_name\AppData\Local\FileMaker\FileMakerPro\<version>\Extensions\

Macintosh HD/Users/user_name/Library/Application Support/FileMaker/FileMaker Pro/<version>/Extensions/

See this FileMaker Knowledgebase article for full details:

http://help.filemaker.com/app/answers/detail/a_id/10097/~
tncodeAuthor Commented:
Thanks. However, this is a Windows setup application that will be used as a silent installation on many Windows computers.
Will LovingPresident, Dedication Technologies, Inc.Commented:
I understand. I'm just noting that you can setup your FileMaker database to automatically check for the presence of the correct plugin(s) the first time it's opened on each computer using the Get (InstalledFMPlugins) function, which returns the plug-in display name, version number, and enabled state for all the plug-ins. If the correct plugin or plugin version are not found, the FM file can install them without user interaction.
tncodeAuthor Commented:
Do you have webpage that describes how to do this on Windows and Mac?
Will LovingPresident, Dedication Technologies, Inc.Commented:
If you know how to create fields and write a script in FileMaker you should be able to do it with the information in the Knowledgebase article mentioned above. You can also use this as a guide:

http://www.filemaker.com/help/12/fmp/html/create_db.8.54.html

The function should be the same regardless of platform because FileMaker itself is checking for the presence of plugins and putting the plugins in place. It know the correct path for each platform. The above article suggests making multiple small scripts but you can probably consolidate some or all of them into one

Once you have the script working, you can either make it the Startup script for the file using the OnFirstWindowOpen script trigger under File Options...  or if you already have a Startup script, just add it as a sub-script.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
FileMaker Pro

From novice to tech pro — start learning today.