Hi,
Iam trying to send parameters to a powershell script added as script from disk option under custom action but iam unable to do so. The help file shows how to send parameters if i use inline powershell script but it does not show how to do send the same if the powershell script is added as script from disk option. I tried using a similar way as below -
File path: F:\MSI\TestScript.ps1-firstPsParam [SourceDir] -secondPsParam [APPDIR]
When i click on the Test Script button, I get an error saying -
Return code: -1
Script output: "[ERR] Could not find source script file!"
From the above error we can say that the parameters are also being taken as file path resulting in the error.
Can you please help me to find a way to send the parameters into the powershell script?
regards,
Krishna
FOLLOW US
Get the latest news in Application Packaging