User42
Posts: 1
Joined: Thu Mar 21, 2024 10:37 am

Add Copy File/Folder Action using Powershell

Hello all,

I am trying to build an Installer using the Powershell Automation Interfaces. Now I want to Add a custom Action "Copy File/Folder" to copy a file that ultimately should be given via commandline parameter during the installation. I tried it using the

Code: Select all

$project.CustomActionsComponent
but I can't find a function to add my required action.

How can I achieve this?
Liviu
Posts: 1071
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Add Copy File/Folder Action using Powershell

Hello and welcome to our forums,

I'm afraid we do not have PowerShell support for this custom action. This is a new custom action added in version 19.6 and you are the only one who has requested PowerShell support for it.

I have added on our TODO list this improvement and hopefully it will be implemented in a future version of Advanced Installer. 

As soon as this improvement will be available we will notify you.

I apologize for the inconvenience.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”