Hello, I’m Skyler, new to Advanced Installer (about 2 months of use), and I’ve run into what seems to be a code-related bug. I added a custom action that runs a simple PowerShell script in my MSI project, but while the project builds successfully, the script fails during installation with the error “The system cannot execute the specified program.”
Here is the code I used:
Code: Select all
Write-Output "Custom action test started"
$path = "C:\TestFolder"
if (!(Test-Path $path)) {
New-Item -ItemType Directory -Path $path
}
Write-Output "Custom action test finished"
When I run this script outside the installer, it works fine and creates the folder as expected. However, when packaged in Advanced Installer as a custom action, it fails consistently at install time. I expected the custom action to execute normally, but instead it stops the installation. Could this be a bug in how Advanced Installer handles embedded PowerShell code?