PowerShell 7.3.1

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 1 year and 2 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.
Scott Rosenbloom
Posts: 14
Last visit: Thu Feb 22, 2024 7:41 am

PowerShell 7.3.1

Post by Scott Rosenbloom »

Hey All,

PowerShell 7.3.1 seems to have updated on its own and now I'm getting the attached error.

2022-12-14_10-25-32.png
2022-12-14_10-25-32.png (6.54 KiB) Viewed 6917 times

Is there something I need to do to get PowerShell Studio to use it and, as a result, have my app run as normal? Or, for the moment, should I uninstall PowerShell "7.3.1" and reinstall "7.3.0" (with which the app worked fine)?

Thanks,
Scott
User avatar
Olga_B
Site Admin
Posts: 196
Last visit: Thu Mar 28, 2024 8:34 am

Re: PowerShell 7.3.1

Post by Olga_B »

The latest PowerShell Studio doesn't support PowerShell 7.3.1
At this moment you should reinstall 7.3.0
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 3:14 pm
Answers: 39
Been upvoted: 30 times

Re: PowerShell 7.3.1

Post by brittneyr »

Brittney
SAPIEN Technologies, Inc.
Scott Rosenbloom
Posts: 14
Last visit: Thu Feb 22, 2024 7:41 am

Re: PowerShell 7.3.1

Post by Scott Rosenbloom »

Hi,

I've now updated to PowerShell Studio 2023 (v 5.8.215) as well as PowerShell 7.3.1. When I try to package my app into an exe, I get the following in the Output box:

>> Package 'C:\LOCAL PC-BASED FOLDER\NKApplicationInstaller\NKApplicationInstaller.psproj'
SAPIEN Package and Deploy Tool 4.6 (c) 2005 - 2023 SAPIEN Technologies, Inc.

File version incremented to 1.5.35.0
Product version incremented to 1.5.35.0
------ Build started: NKDesignTechnologyToolboxV2, Configuration: x64 ------
Packaging with SAPIEN PowerShell 7.3.0 Host (Windows Forms) x64
Adding C:\LOCAL PC-BASED FOLDER\NKApplicationInstaller\NKApplicationInstaller.Package.ps1
Writing scripts to \\NETWORK-BASED FOLDER\NKApplicationInstaller\x64\NKDesignTechnologyToolboxV2.1\NKDesignTechnologyToolboxV2.1.exe
Error: Writing settings to \\NETWORK-BASED FOLDER\\NKApplicationInstaller\x64\NKDesignTechnologyToolboxV2.1\NKDesignTechnologyToolboxV2.1.exe failed, error code 87
Embedding default manifest...
Package completed

>> Completed

When I try to run the exe, the progress circle starts and stops. I'm assuming it's related to the error listed in the text above, but I tried a new NETWORK-BASED folder, and it didn't work. I tried C:\temp and, while there was no error, the actual exe file disappeared once the process was complete (I'd guess that's anti-virus related, but I can't be sure).

For my Packager Settings, I have "Script Engine" set to:
- Target: Microsoft Windows 64 Bit
- Script Engine: PowerShell 7.3.x > SAPIEN PowerShell 7.3.0 Host (Windows Forms)

I installed PowerShell 7.2.7 as well as PowerShell 7.3.0 and got the same error. It is worth mentioning that if I click the "Run" button in PowerShell Studio, it runs fine.

At this point, I cannot run my app at all.

Can you assist? Let me know what files and/or information you'd need me to send to you.

Thanks,
Scott
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 3:14 pm
Answers: 39
Been upvoted: 30 times

Re: PowerShell 7.3.1

Post by brittneyr »

Error code 87 mean incorrect parameter, which is not very helpful.
Most of the time, this means an API call failed because the file is not existing, blocked, in use or the user has insufficient rights.

It sounds like the issue could related to your anti-virus protection.
Brittney
SAPIEN Technologies, Inc.
This topic is 1 year and 2 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.