Script no longer works after upgrade to 5.5.154

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
sandve
Posts: 3
Joined: Mon May 04, 2015 7:55 am

Script no longer works after upgrade to 5.5.154

Post by sandve » Fri Aug 17, 2018 9:02 am

Product, version and build:
PowerShell Studio 2018 v5.5.154
Operating system:
Microsoft Windows x64 [Version 10.0.17134.228]

A Windows Tray App script that was working in version 5.5.153, no longer works after upgrading to version 5.5.154. It simply starts and immediately stops without error, without performing the desired actions. This happens in the studio and as a binary.

I tried uninstalling version 5.5.154 and reinstalling version 5.5.153, but the issue persists.

** Update **
With version 5.5.154, I created a new project and copied the Startup.pss from the old project. It started working.
I've attached the new project, in case you can detect what the difference might be.

Attached is a copy of the project folder before the problem started. And copy after starting fresh.
Attachments
RDHelper.new.zip
Fresh project
(76.75 KiB) Downloaded 16 times
CachedData 2018.zip
(2.73 MiB) Downloaded 12 times
RDHelper.zip
Before issue
(71.91 KiB) Downloaded 16 times

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

Re: Script no longer works after upgrade to 5.5.154

Post by davidc » Tue Sep 04, 2018 1:03 pm

I see that the Startup.pss file has a psbuild file. That likely means you packaged the individual file instead of the project as a whole which would result in a script that exits without calling the main function.
Make sure the project is open before building the packaged executable.
David
SAPIEN Technologies, Inc.