greg996
Posts: 6
Joined: Sat Oct 26, 2024 3:57 am

Run PowerShell Inline Script don't execute

Hi,
I previously built bundled applications using Advanced Installer that incorporated the 'Run PowerShell Inline Script' feature, and installations completed without issues. However, when reinstalling the same installer package recently, Microsoft Security Center blocked it as a malicious operation. The error message is shown below. Could you advise on how to resolve this?
Windows Defender Antivirus describe: https://www.microsoft.com/en-us/wdsi/th ... 2147942984
power shell:viewtopic.php?t=51865
greg996
Posts: 6
Joined: Sat Oct 26, 2024 3:57 am

Re: Run PowerShell Inline Script don't execute

bundle.aip
(34.59 KiB) Downloaded 97 times
2025-06-10 162015.png
2025-06-10 162015.png (41.94 KiB) Viewed 2772 times
Catalin
Posts: 7504
Joined: Wed Jun 13, 2018 7:49 am

Re: Run PowerShell Inline Script don't execute

Hello Greg,

Is your package digitally signed? If so, do you also sign the powershell script as well?

If the PowerShell script is not signed, then this might be a reason why it is being blocked.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
greg996
Posts: 6
Joined: Sat Oct 26, 2024 3:57 am

Re: Run PowerShell Inline Script don't execute

Hi Catalin,
Yes,my package is signed,and also enabled the option “Sign script” for my custom action.
Catalin
Posts: 7504
Joined: Wed Jun 13, 2018 7:49 am

Re: Run PowerShell Inline Script don't execute

Hello Greg,

I'm sorry to hear that the setup is still flagged despite being digitally signed.

I think the only solution that we have now is to submit de file for false-positive to Microsoft:

Submit a file for malware analysis

and wait a few days for their answer before releasing to your clients.

I would advise scanning the setup with the VirusTotal platform as well, and depending on the results, submit for other AV vendors as well.

This is, unfortunately, something that we also have to do before each release of Advanced Installer.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
greg996
Posts: 6
Joined: Sat Oct 26, 2024 3:57 am

Re: Run PowerShell Inline Script don't execute

Really appreciate your support,Catalin!
Catalin
Posts: 7504
Joined: Wed Jun 13, 2018 7:49 am

Re: Run PowerShell Inline Script don't execute

You are always welcome, Greg! :)

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

Return to “Common Problems”