We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

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: 1420
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
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Add Copy File/Folder Action using Powershell

Hello,

This improvement has been added in version 22.1 of Advanced Installer.

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

Return to “Building Installers”