include files

Support for all customers who have purchased a SAPIEN PowerShell Studio product license. This forum does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE 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
mqh777
Posts: 214
Joined: Tue Feb 25, 2014 1:01 pm

include files

Post by mqh777 » Tue Feb 13, 2018 10:16 am

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: 5440
Joined: Thu Aug 18, 2011 4:56 am

Re: include files

Post by davidc » Tue Feb 13, 2018 12:47 pm

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
mqh777
Posts: 214
Joined: Tue Feb 25, 2014 1:01 pm

Re: include files

Post by mqh777 » Tue Feb 13, 2018 1:47 pm

David, you answered it. We wanted to bundle files within the .EXE and call them when the .EXE runs.