Hi, i am currently trying to create a setup completely via Powershell and have encountered a problem that I have not yet been able to solve.
I want to add a Powershell script to the setup using the custom action “IPowershellAttachedScriptFile”, but I am missing the ability to enter parameters.
$advinst = new-object -com AdvancedInstaller
$project = $advinst.CreateProjectS(“architect”)
$custAct = $project.CustomActionsComponent.NewPowershellAttachedScriptFile("D:\my_script.ps1")
# Set “Is32Bit” and “Is64Bit” properties to true to auto detect OS bitness PowerShell executable
$custAct.Is32Bit = $true
$custAct.Is64Bit = $true
Link <https://www.advancedinstaller.com/user- ... tfile.html>
When running the same function through the GUI, call parameters can be added, see attached screenshot.
Is this also available via Powershell, if so how do I have to proceed?
Does anyone have a tip for me?
FOLLOW US
Get the latest news in Application Packaging