Michbeckable
Michbeckable

Reputation: 1881

Copying files multiple times to different destination folders

I want to deploy a plugin for Autodesk 3ds Max with an Inno-Setup. If the end user has 3ds Max installed multiple times (in different folders) for having different languages (3ds Max isnt multilingual) I want the setup to copy the plugin-files to the several 3ds Max folders, but without copying the [Files] Source: "plugin.dll" DestDir: "..." . Can it be done programmatically with the pascal scripting, that the files are copied again but always with changing destination folders?

Upvotes: 1

Views: 838

Answers (1)

Deanna
Deanna

Reputation: 24253

Why don't you want multiple [Files] entries? They will only be included in the setup once.

If you want to copy them in [Code], you can use the FileCopy() function in either the AfterInstall handler function for the file, or the CurStepChanged(ssPostInstall) event function.

Note that if you install them manually, you lose all automatic reference counting, registration, and uninstall handling, all of which you'll need to replicate in code.

Upvotes: 2

Related Questions