Build: v5.8.215
OS: Windows 10 Pro (64 Bit)
Build: v10.0.17134.0
PowerShell version(s): 5 - 7 (5 in the current issue)
Issue:
I've upgraded to Powershell Studio 2023 and since doing so, I've been unable to successfully package/build into a .exe. I did not have this problem prior to upgrading and was using Powershell Studio 2022.
Description:
While troubleshooting this issue, I created a brand new form project with only a button and textbox. Below is the code:
Code: Select all
$buttonHelloWorld_Click={
$textbox1.Text = "Hello World!"
}
>> Package 'C:\Working Folder\TestBuild\TestBuild.psproj'
SAPIEN Package and Deploy Tool 4.6 (c) 2005 - 2023 SAPIEN Technologies, Inc.
------ Build started: TestBuild, Configuration: x64 ------
Packaging with SAPIEN PowerShell V5 Host (Windows Forms) x64
Adding C:\Working Folder\TestBuild\TestBuild.Package.ps1
Writing scripts to bin\x64\TestBuild.exe
Embedding default manifest...
Package completed
>> Completed
However, when the Windows Explorer window pops up that would normally display the newly packaged .exe, I see the .exe for a split second before the file disappears!
This behavior was identical when I tried to build a .exe from a project created in Powershell Studio 2022, which lead me to try a brand new project created in Powershell Studio 2023...
I try to build the project again, and I get the following output:
>> Package 'C:\Working Folder\TestBuild\TestBuild.psproj'
SAPIEN Package and Deploy Tool 4.6 (c) 2005 - 2023 SAPIEN Technologies, Inc.
------ Build started: TestBuild, Configuration: x64 ------
Packaging with SAPIEN PowerShell V5 Host (Windows Forms) x64
Adding C:\Working Folder\TestBuild\TestBuild.Package.ps1
Writing scripts to bin\x64\TestBuild.exe
Error: Writing settings to bin\x64\TestBuild.exe failed, error code 87
Error: Updating icon resources failed: 87
>> Completed
I've tried various troubleshooting options with the Build Packager, but no matter what I try, the above behavior doesn't change. Obviously, packaging scripts is important to what I do and I need help in getting this issue resolved.