donj
Posts: 7
Joined: Tue May 11, 2021 2:09 pm

How to remove a file from powershell script

Tue May 11, 2021 6:07 pm

I want to remove a file when install package.
This is done from the following GUI like attached the attached image.
However I need powershell script because I make package from Bamboo.
Can anybody let me know how to do this?
Attachments
Capture.PNG
Capture.PNG (6.51 KiB) Viewed 4148 times
Last edited by donj on Wed May 12, 2021 6:26 pm, edited 1 time in total.

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

Re: How to remove a file from powershell script

Wed May 12, 2021 9:36 am

Hello Don and welcome to our forums,

It looks like the screenshot you wanted to attach is not correctly attached.

Please note that in order to add a file (e.g. a .TXT file, a screenshot, etc.), you will need to use the "Attachments" feature and then place the attached file in line, i.e.:
Attachment.png
Attachment.png (82.46 KiB) Viewed 4152 times
Given your requriement, most likely you are refering to our "File removal" support.

As for this moment, I'm afraid we do not support this in our PowerShell Automation feature.

I have, however, added this on our TODO list of improvements and it will be added in a future version of Advanced Installer.

Thank you for bringing this to our attention!

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

donj
Posts: 7
Joined: Tue May 11, 2021 2:09 pm

Re: How to remove a file from powershell script

Wed May 12, 2021 6:27 pm

Thanks, I attached the screen capture again.

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

Re: How to remove a file from powershell script

Thu May 13, 2021 3:15 pm

You are always welcome!

As I expected, you were indeed talkinga bout a "File removal" operation.

As I have mentioned in my previous thread, unfortunately, we do not have support for that in our "PowerShell Automation" feature.

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

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

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

Re: How to remove a file from powershell script

Wed Jul 28, 2021 2:37 pm

Hello Don,

This improvement has been added in version 18.5 of Advanced Installer, released on July 27th, 2021.

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

Return to “Common Problems”