Page 1 of 4

Cannot Build Any EXE Projects PSS 2019

Posted: Tue Aug 13, 2019 7:19 am
by phebenstreit
Version: PowerShell Studio 2019 64bit
OS: Windows 10 64bit

Upgrade from PowerShell Studio 2014 yesterday. None of the projects I have can "build", not even a brand new project.

Get the error "Error: Saving updated resources failed:110"

It was mentioned that this could be permissions, but i have tried alternate folder locations, running as administrator, different engines, bit settings, STA mode etc.

Hoping that this is something trivial, but i cannot find a way to build any projects; even brand new.

Re: Cannot Build Any EXE Projects PSS 2019

Posted: Tue Aug 13, 2019 7:41 am
by brittneyr
This error is saying that the system cannot open the device or file specified.

Please try rebooting and see if that fixes the error. Also verify that any malware software you are running is not blocking any PowerShell Studio files.

Re: Cannot Build Any EXE Projects PSS 2019

Posted: Tue Aug 13, 2019 8:25 am
by phebenstreit
I have rebooted. And no improvement. What file can it not find? There is no indication. It creates a bin and either x86 or x64 directory by default, but does not place any content in the folders.

Re: Cannot Build Any EXE Projects PSS 2019

Posted: Tue Aug 13, 2019 9:01 am
by brittneyr
What version of PowerShell Studio are you running?
Please verify that PSBuild.exe located in the following location and isn't being blocked by a firewall:
C:\Program Files\SAPIEN Technologies, Inc\PowerShell Studio 2019

Re: Cannot Build Any EXE Projects PSS 2019

Posted: Tue Aug 13, 2019 9:10 am
by phebenstreit
I just purchased a new license yesterday to upgrade my 2014/15 install.

Downloaded and installed SPS19Setup_5.6.166_071519_x64

PsBuild.exe is located in that folder path. Modified date of 7/10/2019 file version 4.1.76 product version 7.5.0.0.

I don't have any reason to believe that that executable is being blocked.

Re: Cannot Build Any EXE Projects PSS 2019

Posted: Tue Aug 13, 2019 9:23 am
by Alexander Riedel
As part of the packaging process a template exe is copied to the output folder.
Since the error message is not concerning the inability to copy the template, I go with the assumption that you installation is intact.
The updating error implies that when the packager is ready to store the encrypted script in the exe's resources it is unable to do so.
As you describe it that there is no file there, I can only assume something removes it right after it gets copied there.
That smells a lot like an overeager anti-virus system, which will quarantine or eliminate any newly created executable file right away.

I would suggest to look at your anti-virus logs to see if there is anything there.
It would help to let us know what exact anti-virus system you are running.

Re: Cannot Build Any EXE Projects PSS 2019

Posted: Tue Aug 13, 2019 9:31 am
by phebenstreit
I did notice that in the application settings, the setting for the template directory was actually an invalid / or rather empty path

The path specified by default is C:\Users\%username%\AppData\Roaming\SAPIEN\PowerShell Studio\Templates

But the "Templates" folder did not exist. I did create it … could that be it? Should there be data in that folder. Or should that "Template Directory" setting be pointed somewhere else?

Disabling my AV did not help. And nothing in the logs to suggest an issue there.

Re: Cannot Build Any EXE Projects PSS 2019

Posted: Tue Aug 13, 2019 10:01 am
by Alexander Riedel
That is not the template I was talking about. It’s not something you can configure.
What exact settings are you specifying for the packager?

Re: Cannot Build Any EXE Projects PSS 2019

Posted: Tue Aug 13, 2019 10:22 am
by Olga_B
If you can, please zip and load up the original psf file(s), so that we can attempt to recreate the issue:
https://www.sapien.com/support/upload

Also can you add .psbuild file (it should be in the project folder after you packaged project)

Re: Cannot Build Any EXE Projects PSS 2019

Posted: Tue Aug 13, 2019 10:27 am
by phebenstreit
For the package I thought i had tried most every one of the options. But i did just get 1 to actually build the executable.

The 1 that worked was:
Target: Microsoft Windows 32 Bit
Script Engine: PowerShell V3 Host (Windows Application)
Use STA: Not checked

(After it built once, not able to build again with the same settings, almost a fluke that allowed it to get built)

All other selection combos fail.
This built/executable does run differently than when it was built in Studio 2014 though. I get a Windows style window for my output and input; and a popup for my input, rather than a more seemingly powershell based output window; which i assume to be the (command line) engine options; which do not work.

Other output settings: create an application without manifest; no source control / restrictions or other settings have been changed from the default. I do at the moment have the output folder hard coded to the project path, rather than just "bin", but that hasn't seemed to make any difference.