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.
User avatar
yves22
Posts: 16
Last visit: Tue Aug 09, 2022 8:32 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: 1162
Last visit: Tue Aug 09, 2022 3:32 pm
Answers: 25
Been upvoted: 20 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.