output deploy PS1 to exe

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 7 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
yves22
Posts: 23
Last visit: Tue Jan 02, 2024 4:12 am
Been upvoted: 1 time

output deploy PS1 to exe

Post by yves22 »

Product, version and build: SAPIN POWERSHELL STUDIO 2022, 5.8.208
Operating system: Windows 10/Windows server 2022
PowerShell version(s): 5 / 7

Hi,
When you deploy a PS1 file ton an exe file, the deployment process automatically create a "x64" folder under the directory you choose in the output settings section.
For example, if I choose the output folder below :
- C:\Users\xxx\Documents\SAPIEN\Scripts\CLEAN_DIRECTORY\BIN
my exe file will be in
- C:\Users\xxx\Documents\SAPIEN\Scripts\CLEAN_DIRECTORY\BIN\x64

Is there a way to not create this folder ?

Best regards
User avatar
brittneyr
Site Admin
Posts: 1649
Last visit: Mon Mar 18, 2024 1:47 pm
Answers: 38
Been upvoted: 30 times

Re: output deploy PS1 to exe

Post by brittneyr »

If you select a 64-bit target, it will create the x64 folder.
If you select a 32-bit target, it will create a x86 folder.
If you select to build a Microsoft Windows Native target, it will create an Any platform folder.
There is no way to change this.

For more information on script engines, the following articles may be helpful:
https://www.sapien.com/blog/2022/07/01/ ... pt-engine/
https://www.sapien.com/blog/2022/07/06/ ... -settings/
Brittney
SAPIEN Technologies, Inc.
This topic is 1 year and 7 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.