disclaimer: I'm not an AI support, just random user of AI
Custom PS scripts aren't encrypted, they are encoded and you can easily recover the script using PowerShell. Copy encoded string from XML tag value to clipboard, then in PowerShell console insert copied base64 string:
Code: Select all
$base64 = @"
<paste clipboard text here. Must be on a new line
"@
$bytes = [convert]::frombase64string($base64)
$script = [text.encoding]::utf8.getstring($bytes)
given this if you really care about scripts and you know the custom action name, then you can enhance the script to this function, which dumps any PS custom action script from *.aip file. The script is freely available in my GitHub gist:
https://gist.github.com/Crypt32/571711d ... 4e3edf8948
the usage is:
Code: Select all
Dump-AIScript -Path path\aiproject.aip "ActionName"
Keep in mind that action names are case-sensitive.
(signed)
it doesn't matter since scripts are not signed in AI project. They are always unsigned. Signing is performed during MSI build and signed script is embedded into MSI, but you will never see signed script in AI project file.