Packager - Resolve and include external scripts - not working

Support for all customers who have purchased a SAPIEN PowerShell Studio product license. This forum does not offer a response time guarantee.
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.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
NetComputer
Posts: 1
Joined: Sun Mar 03, 2013 12:44 pm

Packager - Resolve and include external scripts - not working

Post by NetComputer » Mon Oct 08, 2018 12:02 am

Product, version and build:5.5.154
32 or 64 bit version of product: 64bit
Operating system: windows 10
32 or 64 bit OS: 64bit

The packager option "Resolve and include external scripts" does not work.

I have following in test.psf :

Code: Select all

$form1_Load={
	."c:\it\script\test.ps1"
	$label1.Text = (GetText)
}
in the test.ps1 script, I have:

Code: Select all

function GetText
{
	return "test"
}
when packaged as an exe, the expected result only works if the script c:\it\script\test.ps1 exists. If the script is deleted, the label text is not set to "test".
Does this mean the "resolve and include" option does not work?

How should it be used?

Thank you

David

User avatar
Olga_B
Site Admin
Posts: 68
Joined: Mon May 15, 2017 9:06 am

Re: Packager - Resolve and include external scripts - not working

Post by Olga_B » Tue Oct 09, 2018 9:21 am

Thanks for reporting this issue.
The issue has been sent to the proper place for evaluation and correction. When a fix is issued with a service build, it will be listed in the change log.

User avatar
davidc
Posts: 5474
Joined: Thu Aug 18, 2011 4:56 am

Re: Packager - Resolve and include external scripts - not working

Post by davidc » Tue Oct 09, 2018 2:04 pm

This issue only affects psf files and it will be resolved in the next service release.
David
SAPIEN Technologies, Inc.