161 Script to exe problem

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 4 years and 11 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.
User avatar
elation
Posts: 27
Last visit: Mon Sep 18, 2023 3:39 am
Has voted: 1 time

161 Script to exe problem

Post by elation »

Product, version and build: PowerShell Studio 2019, 5.6.161
32 or 64 bit version of product: 64 Bit
Operating system: Windows 10 Pro
32 or 64 bit OS: 64 Bit

*** Please add details and screenshots as needed below. ***
I too am experiencing the issues with executables not running after clicking build. They build without errors but will not run. This problem only occurs when I convert a project to an executable. If I export to the clipboard, paste in a new script window, and click build, it runs just fine. I have tried every encoding option. I have tried with/without "Resolve and include external scripts." I have tried V3 and V5. I have tried the exe on different machines. I have tried older versions of the project.

I just purchased PowerShell Studio today so I do not have the option to downgrade to 160. Look forward to your response.
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Re: 161 Script to exe problem

Post by Alexander Riedel »

The current work-around is to encode all your files in unicode. That should make it work just fine.
A patch is imminent.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
elation
Posts: 27
Last visit: Mon Sep 18, 2023 3:39 am
Has voted: 1 time

Re: 161 Script to exe problem

Post by elation »

Thank you for the reply. Changing to UTF-8 on the status bar for all windows doesn't seem to work. I do have a work-around for now by converting to a single script and then an exe. I'll stick with that until a patch is released.
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Re: 161 Script to exe problem

Post by Alexander Riedel »

UTF-8 is not unicode. But it should be available soon.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
elation
Posts: 27
Last visit: Mon Sep 18, 2023 3:39 am
Has voted: 1 time

Re: 161 Script to exe problem

Post by elation »

Thank you for the quick update. 162 fixed the problem. Everything is working well!
This topic is 4 years and 11 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.