I have PowerShell GUI that I have created using PowerShell Studio that has multiple scripts included. I have setup Project in PowerShell Studio and all required files have been added to the Project directory. The problem I'm having is the script being called from the PowerShell form doesn't work after the Project has been packaged into a .exe and the .exe has been moved to another computer. The script calls fine on the same machine that I'm packaging on as it appears that the .exe is calling the script from the local directory on the machine and not from within the .exe. Am I wrong to assume that "Package Project" doesn't include all project files in the .exe?
Any help would be most appreciated!
Calling script in a Packaged Project
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Re: Calling script in a Packaged Project
There is something wrong with your user account. Please contact support@sapien.com from an email address that can be used to communicate.
Thanks.
Thanks.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Re: Calling script in a Packaged Project
The packager only includes the generated script. Any dot sourced files need to be included along side the exe. In which case you probably want to use an installer.
Please refer to the following blog article for more info on calling files from a project:
http://www.sapien.com/blog/2013/10/01/p ... ing-forms/
Please refer to the following blog article for more info on calling files from a project:
http://www.sapien.com/blog/2013/10/01/p ... ing-forms/
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.