cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Cygnusx1
Level 8

Powershell CA not running

Any/all Powershell scripts are not working. Even a simple script (stored in Binary Table):
trace-info -LogMessage “11111111I am a PowerShell custom action”
$Value = get-property -name ProductName
set-property -name NEWPROPERTY -value $Value


All lines above are from Installshield's Help Library
.NET 4.6.2 and .NET 4.7 are installed on two separate Windows 7 x64 (one hard; one vmware)

The only message in the log file that seems out of place is:
InstallShield: Couldn't resolve assembly by name System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35


Any Ideas?
Labels (1)
0 Kudos
(1) Reply
Cygnusx1
Level 8

To get this to work I had to add the Property IS_CLR_VERSION=v4.0;
All powershell CA worked except
trace-info -LogMessage “I am a PowerShell custom action”
0 Kudos