empbilly
Posts: 2
Joined: Thu Jun 23, 2022 7:37 pm

Copy some files to one folder to another

Thu Jun 23, 2022 7:45 pm

hi,

Is there any way at the end of the installation, to run a script to copy some files from one folder to another?

Catalin
Posts: 6537
Joined: Wed Jun 13, 2018 7:49 am

Re: Copy some files to one folder to another

Fri Jun 24, 2022 10:18 am

Hello and welcome to our forums,

Yes, that is possible.

For instance, you can create a custom action that does what you need and schedule it on the "Finish" button of the "ExitDlg" dialog.

How to execute a custom action when a button is pushed

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

empbilly
Posts: 2
Joined: Thu Jun 23, 2022 7:37 pm

Re: Copy some files to one folder to another

Mon Jun 27, 2022 12:22 pm

Catalin wrote:
Fri Jun 24, 2022 10:18 am
Hello and welcome to our forums,

Yes, that is possible.

For instance, you can create a custom action that does what you need and schedule it on the "Finish" button of the "ExitDlg" dialog.

How to execute a custom action when a button is pushed

Best regards,
Catalin
Hello Catalin, thanks for the help!!!

I am using the "new custom action" option to run a .bat and copy files from one folder to another.

I follow the wizard normally, but at the end of the installation, nothing is copied.

Can you tell me what is the correct configuration for a .bat file?

Catalin
Posts: 6537
Joined: Wed Jun 13, 2018 7:49 am

Re: Copy some files to one folder to another

Tue Jun 28, 2022 12:49 pm

Hello,

If you added the .BAT file in your project, please make sure you run your custom action after the "Add resources" action group, on the "Deferred" stage.

Additionally, please make sure the .BAT file works outside of Advanced Installer as well, i.e. it copies the file if you run it from the command line.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”