include files

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 1 month 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
mqh77777
Posts: 252
Last visit: Mon Feb 26, 2024 10:07 am
Has voted: 1 time

include files

Post by mqh77777 »

Product, version and build: 5.4.145
32 or 64 bit version of product: 64-bit
Operating system: Windows 10
32 or 64 bit OS: 64-bit

Is it possible to create a blank form that includes .ps1 files (orany files) ? What we wanted to explore was creating an .EXE from a blank PowerShell Studio Form that has lets say 1 .MSI file, 1 .PS1 file and 1 .ini file. And when this blank .exe from a form is run on any system it would include the .msi, .ps1 & .ini file and run them as called.

Can PowerShell Studio do that?
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: include files

Post by davidc »

I'm not clear as to what you want to accomplish.

Are you asking if you can create a single exe that extracts these files? We don't support this because Microsoft frowns upon this behavior (typical of viruses) and they recommend using MSI files instead.

Or do you want an executable that will run regardless of PowerShell version or platform? Unfortunately, you need to specify a version of PowerShell. As for the 32bit vs 64bit, PowerShell Studio does have a native setting that creates a starter executable that calls the right version depending on the OS.

https://www.sapien.com/blog/2016/10/24/ ... -features/
David
SAPIEN Technologies, Inc.
User avatar
mqh77777
Posts: 252
Last visit: Mon Feb 26, 2024 10:07 am
Has voted: 1 time

Re: include files

Post by mqh77777 »

David, you answered it. We wanted to bundle files within the .EXE and call them when the .EXE runs.
This topic is 6 years and 1 month 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.