To help you better we need some information from you.
*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***
Product, version and build: 5.8.221.0
Operating system: W10 22H2
PowerShell version(s): 5.1.19041.2673
*** Please add details and screenshots as needed below. ***
When I start the compiled EXE File lately this Console Window (see attachment) keeps starting.
Is there a way to stop this behavior?
Thank you
Ralf
DO NOT POST LICENSES, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM
When starting EXE a Console is starting
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.
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.
- ralf_jantschek
- Posts: 17
- Last visit: Tue May 30, 2023 2:49 am
When starting EXE a Console is starting
- Attachments
-
- PowerShell_Studio_Issue.png (8.36 KiB) Viewed 1758 times
Re: When starting EXE a Console is starting
It looks like you are packaging your script with a Windows Application engine. You can change the settings when building your script from the Deploy tab on the ribbon (Deploy->Packager).
The following article may be helpful:
https://www.sapien.com/blog/2022/07/01/ ... pt-engine/
The following article may be helpful:
https://www.sapien.com/blog/2022/07/01/ ... pt-engine/
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- ralf_jantschek
- Posts: 17
- Last visit: Tue May 30, 2023 2:49 am
Re: When starting EXE a Console is starting
Hello, here are my settings, it still shows this window
- Attachments
-
- PS_1.png (37.6 KiB) Viewed 1712 times
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Re: When starting EXE a Console is starting
You selected for your script to be a Windows Application. That creates a host with a main window which collects the output from your script,
just as the descriptions says.
What was the intended goal for this script?
just as the descriptions says.
What was the intended goal for this script?
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- ralf_jantschek
- Posts: 17
- Last visit: Tue May 30, 2023 2:49 am
Re: When starting EXE a Console is starting
Hello,
the intended goal is to access a DB and display the results in a grid on the screen (roughly)
But while I try to "Build&run" the script there is no new EXE File generated, instead i'm getting this:
the intended goal is to access a DB and display the results in a grid on the screen (roughly)
But while I try to "Build&run" the script there is no new EXE File generated, instead i'm getting this:
The "Version Information" looks like: As I switched the "Packaging" Settings to The Console Window is gone------ Build started: RM_Console, Configuration: x64 ------
Packaging with Microsoft Windows PowerShell (Command line) x64
Adding U:\Sapien\RM_Console\Development\RM_Console.Package.ps1
Writing scripts to bin\x64\RM_Console.exe
Embedding default manifest...
Error: File version has incorrect format. Use <major version>.<minor version>.<build number>.<revision>
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Re: When starting EXE a Console is starting
As far as choosing the packaging engine goes, I would recommend to read the article Brittney referred you to earlier:
https://www.sapien.com/blog/2022/07/01/ ... pt-engine/
As for the version number, the error message includes the exact details required.
"File version has incorrect format. Use <major version>.<minor version>.<build number>.<revision>"
So a valid version number would look like 1.0.0.0, 1.0.0.1 or 2.1.2.4 depending on what you want it to be.
https://www.sapien.com/blog/2022/07/01/ ... pt-engine/
As for the version number, the error message includes the exact details required.
"File version has incorrect format. Use <major version>.<minor version>.<build number>.<revision>"
So a valid version number would look like 1.0.0.0, 1.0.0.1 or 2.1.2.4 depending on what you want it to be.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- ralf_jantschek
- Posts: 17
- Last visit: Tue May 30, 2023 2:49 am
Re: When starting EXE a Console is starting
Hello,
thanks, finally it's done and does exactly what it says on the tin .
Ralf
thanks, finally it's done and does exactly what it says on the tin .
Ralf