This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules DO NOT POST LICENSE NUMBERS, ACTIVATION 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.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 6 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Hi I m trying to build a executable with PrimalScript that will accept parameters input. The goal is that the exe will call internal functions depending of the parameters passed to it.
I used this link "https://www.sapien.com/blog/2015/11/30/ ... able-file/" as reference.
When I try to test I get some errors where the functions are not recognized. Do you have some sample script that uses multiple called functions inside it that can be used in a script converted to exe?
ERROR: Get-SomethingX : The term 'Get-SomethingX' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the nam
ERROR: e, or if a path was included, verify that the path is correct and try again.
I solve it by placing the Get-SomethingX at the end of the script.
You are attempting to use a function before it is defined. Move your call below the function declarations.
FWIW, that has nothing to do with the packager or it being an exe. That is just basic PowerShell.
This topic is 6 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.