Executable will not run

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 6 years and 8 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
CoSWat
Posts: 1
Last visit: Thu Jun 22, 2017 11:53 am

Executable will not run

Post by CoSWat »

Windows 7 64 bit - Installed Powershell version 2.0
Powershell Studio 2017 Installed on Server 2012


Just started using the product and I was testing a new form with the following results:

Created a GUI with 1 form and 2 buttons
Button 1 checks for a test-connection
Button 2 checks for a serial number of a PC remotely
Both functions work when running the code in Powershell

After packaging the script into an executable if I have the "Generate a Config File checked" everything works fine with the exception of I just want the executable and not the config file. Is this possible ? or do I need to distribute both files to an end user ?

If I package it without the config file and try to run the .exe I receive the following in the attached document.

Any help is appreciated
Attachments

[The extension docx has been deactivated and can no longer be displayed.]

User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: Executable will not run

Post by Alexander Riedel »

Depending on what you do in your script, the .config file is required for a .NET executable. If your packaged exe does not work without one, your will need it.
Alexander Riedel
SAPIEN Technologies, Inc.
This topic is 6 years and 8 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.