Mugsy323
Posts: 2
Joined: Sat Jul 26, 2025 3:37 pm

Copy data post install?

I'm trial-testing Advanced Installer and I need to know if it's possible to copy data to the installation folder after the application is installed?

My program includes over 2gb of video, audio and image files. Much too big to stuff into an MSI (and I'd rather not pack everything into a single file anyway.)

Is there a way to copy all this data to the installation folder after the main program is installed? (I considered executing a .bat file post install but I'd need to know the destination path input by the user.)

TIA.
Catalin
Posts: 7794
Joined: Wed Jun 13, 2018 7:49 am

Re: Copy data post install?

Hello,
Is there a way to copy all this data to the installation folder after the main program is installed? (I considered executing a .bat file post install but I'd need to know the destination path input by the user.)
That could indeed be a solution. Regarding the path that the user inputs, you can use the APPDIR property.

Windows Installer properties

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mugsy323
Posts: 2
Joined: Sat Jul 26, 2025 3:37 pm

Re: Copy data post install?

When I try to use "Launch Installed File" from the "Custom Actions", .bat files don't seem to be a supported file type.

Is there another way to call batch files?

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

Re: Copy data post install?

Hello,

Instead of a "Launch installed file", you can use a "Launch file" custom action to launch your .BAT file.

Please make sure the customa ction is scheduled after the "Add resources" action group, so that the BAT file is copied on the disk before the action is executed.

How to Install and Run a BAT File

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

Return to “Building Installers”