Script2Exe.exe crash when signing exe

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

Script2Exe.exe crash when signing exe

Post by davidc » Mon Jul 16, 2012 6:15 am

I'm sending you both a new packager executable. Please backup and replace the current executable with the new one and report any error messages here. Thank you, David
David
SAPIEN Technologies, Inc.

User avatar
franky13
Posts: 68
Joined: Thu Jan 15, 2009 1:48 am

Script2Exe.exe crash when signing exe

Post by franky13 » Mon Jul 16, 2012 8:16 pm

Hi David,thanks for the new executable - it doesn't crash anymore, however the resulting exe is not signed, too...In the output-window the following is displayed:Adding C:Users<MyUsername>AppDataRoamingSAPIENPowerShell Studio 2012Tempdeb05fa18ef3420d9b64078ba9555253<MyFormname>.ps1Writing scripts to C:<Path containing spaces><MyExename>.exeEmbedding default manifest...Unable to sign C:<Path containing spaces><MyExename>.exeExecutable file signedPackage completedAny help is greatly appreciated..Thanks Frank

User avatar
Alexander Riedel
Posts: 7053
Joined: Tue May 29, 2007 4:43 pm

Script2Exe.exe crash when signing exe

Post by Alexander Riedel » Mon Jul 16, 2012 8:57 pm

Would you mind installing a PrimalScript 2012 trial and see if you get the same effect there?
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
franky13
Posts: 68
Joined: Thu Jan 15, 2009 1:48 am

Script2Exe.exe crash when signing exe

Post by franky13 » Mon Jul 16, 2012 10:38 pm

Hi Alex,I still have the full version of PrimalScript 2009 installed an I can sign any script there without problems (I can even export my PowerShell Studio Form as a ps1-script in PowerShell Studio, open the ps1 in PrimalScript 2009 and create a signed Executable there - but that's a very ugly workaround).If I try to sign a normal ps1-Script in PowerShell Studio, I get the following in the output field "Es wurde kein Anbieter für den Speicher oder das Objekt angegeben". Google doesn't give very much when searching for this whole phrase, but in the first hit, it reveals an error code of 0x80092006. If I google this errorcode, there are lots of hits concerning a failed signtool execution. Maybe this can give you any hints regarding the problem?Thanks in advanceFrank

User avatar
davidc
Posts: 5913
Joined: Thu Aug 18, 2011 4:56 am

Script2Exe.exe crash when signing exe

Post by davidc » Tue Jul 17, 2012 4:04 am

Unfortunately you can't use PrimalScript 2009 as a comparison since it uses a different / older engine to sign and packager. Using PrimalScript 2012 will help us isolate the cause of the problem. David
David
SAPIEN Technologies, Inc.

User avatar
franky13
Posts: 68
Joined: Thu Jan 15, 2009 1:48 am

Script2Exe.exe crash when signing exe

Post by franky13 » Tue Jul 17, 2012 7:41 pm

OK, I installed an eval-version of PrimalScript 2012 on a test-machine. I can observe two different behaviours now:1. When I specify the path to my pfx-file and the certificates password and then try to sign a .ps1-script I just receive a messagebox "The specified file could not be signed"...2. If I install the certificate in my personal certificate store and leave the certificate path blank, then I can successfully sign a test-script.Please advise how we could narrow this down.Thanks Frank

User avatar
davidc
Posts: 5913
Joined: Thu Aug 18, 2011 4:56 am

Script2Exe.exe crash when signing exe

Post by davidc » Wed Jul 18, 2012 4:02 am

In this case we want you to test the packager signing which is different then the normal script signing.David
David
SAPIEN Technologies, Inc.

User avatar
franky13
Posts: 68
Joined: Thu Jan 15, 2009 1:48 am

Script2Exe.exe crash when signing exe

Post by franky13 » Wed Jul 18, 2012 7:48 pm

Same error here... output is:SAPIEN Script Packager 3.1 (c) 2005 - 2012 SAPIEN Technologies, Inc.Adding C:Users<Username>DesktopSignTest.ps1Writing scripts to C:Users<Username>DesktopSignTest.exeEmbedding default manifest...ERROR: Unable to sign executable filePackage completedExecutable is created, but it's not signed. Please advice...Thanks Frank

User avatar
coder12345
Posts: 9
Joined: Tue Jul 10, 2012 11:13 pm

Script2Exe.exe crash when signing exe

Post by coder12345 » Thu Jul 19, 2012 3:56 am

with the updated file and the same setup I cannot reproduce the problem, all gets compiled and signed!

User avatar
davidc
Posts: 5913
Joined: Thu Aug 18, 2011 4:56 am

Script2Exe.exe crash when signing exe

Post by davidc » Thu Jul 19, 2012 4:06 am

Interesting that it works, but I'm glad it is resolved in your case coder12345. Franky, Did you get the same error code as coder1234? David
David
SAPIEN Technologies, Inc.