I am trying to package a .ps1 file that utilizes windows forms that I
created with Primal Forms. I create the package with the Sabien
Powershell Host (Windows) from PrimalScript 2009 since I can't add
powershell code in PrimalForms, but when I execute the .exe nothing
happens. Have any of you had experience with this that could lend some
insight? Thanks!
Trying to package Powershell...
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Trying to package Powershell...
Are you able to run the script directly from PrimalScript without issue? In addition, what OS and software versions are you using?
David
David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Trying to package Powershell...
Yes, I can run the script from PrimalScript and a Powershell promt without issue. I am on WinXP SP3, PrimalScript v5.0.610, and PrimalForms v1.0.5.0. Let me know if you would like the code for the script as well.
Trying to package Powershell...
Yes, please email the script to support@sapien.com and include a list of any other settings you are using in the packager. This way we can try to reproduce the issue on our end.
David
David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Trying to package Powershell...
I have packaged your script with the same settings that you sent us. It seems to run fine.
I have attached the package here, please see if this exe runs. We'll take it from there.
PatchCheckApp.zipAlexander Riedel2009-08-07 15:23:11
I have attached the package here, please see if this exe runs. We'll take it from there.
PatchCheckApp.zipAlexander Riedel2009-08-07 15:23:11
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Trying to package Powershell...
Thanks. The packaged powershell scripts are designed to only work on machines with powershell installed right?
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Trying to package Powershell...
Yes, PowerShell is required.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Trying to package Powershell...
I should add, that this package worked on machines where powershell was installed. The only way was also able to get this script packaged was by selecting to package without a default manifest.
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Trying to package Powershell...
If the common controls version referenced in the manifest don't exist, then the only way to run it is to leave the manifest off. Usually that only applies to OS versions prior to Windows XP SP2.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Trying to package Powershell...
Okay, cool. Thanks for all your help. These are great tools that will be of significant benefit for me.