Summary
64bit Powershell scripts are not running with Installshield.
Symptoms
Your 64bit Powershell Custom action is not running correctly. And you have followed the information listed in this article:
Calling a PowerShell Custom Action
Cause
Installshield's Powershell Custom Action functionality calls a 32bit version of Powershell.
Resolution
You can execute your 64bit powershell script with an Installscript custom action.
Create an Installscript Custom action that calls the InstallScript function LaunchApplication().
Use LaunchApplication() to execute the 64bit version of powershell.exe
Here is a code snippet:
Disable(WOW64FSREDIRECTION);
LaunchApplication("c:\\windows\\system32\\windowspowershell\\v1.0\\powershell.exe","-ExecutionPolicy unrestricted -File c:\\temp\\test.ps1","",SW_NORMAL,INFINITE,LAAW_OPTION_USE_SHELLEXECUTE|LAAW_OPTION_WAIT|LAAW_OPTION_WAIT_INCL_CHILD);
You'll want to change the part with c:\\temp\\test.ps1 to point to the correct location though.
Additional Information
There is an enhancement request submitted for this feature. It is currently being tracked under #IOJ-1626068.
Related Articles
FlexNet Inventory Agent tracker (ndtrack) process may trigger a security software warning due to PowerShell script executi… 86Number of Views PowerShell script to return the name of the application process that is using a port 5Number of Views Snow Inventory Agent: How to verify the authenticity of Snow Powershell scripts 19Number of Views Export Windows Event logs for powershell using a PowerShell script 7Number of Views Run 32‑bit PowerShell code in Elastigroup shutdown scripts 4Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago