brianallen
Posts: 1
Joined: Mon Jan 06, 2025 12:08 pm

Issue with Custom Action Execution in Installer Package

I'm currently facing an issue with a custom action in my installer package built using Advanced Installer. The custom action is supposed to execute a PowerShell script during the installation process. However, it seems that the script isn't executing as expected, and no errors are being reported in the installation logs.
time calculator
Here are the details:

Advanced Installer version: 20.5
Operating System: Windows 11 Pro (22H2)
Custom Action Details:
Type: PowerShell Script Inline
Execution Time: After InstallFinalize
Conditions: Always execute
I've tried running the PowerShell script independently, and it works perfectly outside the installer. Could you please guide me on how to troubleshoot this issue or if there's a specific setting I might be overlooking?

Thank you for your assistance!
Catalin
Posts: 7664
Joined: Wed Jun 13, 2018 7:49 am

Re: Issue with Custom Action Execution in Installer Package

Hello Brian and welcome to our forums,

The first thing that comes to mind is whether your PowerShell script requires admin rights.

If that is the case, then we need to execute the script during the "deferred" stage and with the "Run under the LocalSystem account with full privileges (no impersonation)" option checked.

If that is not the case, then we need to make sure there isn't any policy on the machine that would not allow the execution of scripts.

Hope this helps!

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

Return to “Common Problems”