"Error: SignerSign() failed." (-2147023673/0x800704c7)
While using signtool for code signing on our buildserver jenkins shows the following error message:
Done Adding Additional Store Error information: "Error: SignerSign() failed." (-2147023673/0x800704c7) SignTool Error: An unexpected internal error has occurred.
And the solution for this issue is (drum roll):
Check the over all path length. Even in the year 2017 you will run into the 255 characters path length restriction. Annoying!
See also questions close to this topic
screan cappture using Media Foundation
I want to use Media Foundation with python. Is it possible I didn’t played much with win 32 for python and I don’t know if there is a way to access this library’s features using python. The reason for this is I want to achieve fast fraimrate while capturing the screen. And I can’t do that with pil module in python. The situation is that I am nearly blind I am using screan reader how ever I have some vision and I want to write a program for my self to better track the mouse on the videos. If you have good suggestion doing that with python I am more then happy to read them. Thank you.
Python application built with PyInstaller and Gtk 3.0 not running on Windows XP
I have an python application builded with PyIntaller that uses Gtk 3.0 thats not runs in Windows XP. I receive this error:
** (application.exe:2556): WARNING **: Failed to load shared library 'libgtk-3-0.d ll' referenced by the typelib: 'libgtk-3-0.dll': This application has failed to start because the application configuration is incorrect. Reinstalling the appli cation may fix this problem. Traceback (most recent call last): File "main.py", line 8, in <module> File "c:\python27\Lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module File "classes\initialization.py", line 3, in <module> File "c:\python27\Lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module File "classes\app_dialogs.py", line 7, in <module> File "site-packages\gi\importer.py", line 146, in load_module File "site-packages\gi\overrides\__init__.py", line 125, in load_overrides File "importlib\__init__.py", line 37, in import_module File "c:\python27\Lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module File "site-packages\gi\overrides\Gtk.py", line 120, in <module> File "site-packages\gi\module.py", line 183, in __getattr__ File "site-packages\gi\module.py", line 107, in get_interfaces_for_object File "site-packages\gi\overrides\__init__.py", line 39, in __getattr__ File "site-packages\gi\module.py", line 222, in __getattr__ File "site-packages\gi\types.py", line 235, in __init__ TypeError: must be an interface Failed to execute script main
My spec file is:
# -*- mode: python -*- import os directory = os.getcwd() a = Analysis(['main.py'], pathex=[directory], hiddenimports=, hookspath=None, runtime_hooks=None) more_datas =  more_binaries =  _dir = directory for _type in os.listdir(_dir): if _type.endswith('.png') or _type.endswith('.gif') or _type.endswith('.jpg') or _type.endswith('.glade') or \ _type.endswith('.bat') or _type.endswith('.json'): more_datas.append((_type, os.path.join(_dir, _type), 'DATA')) if _type.endswith('.exe') or _type.endswith('.dll'): more_binaries.append((_type, os.path.join(_dir, _type), 'BINARY')) pyz = PYZ(a.pure) exe = EXE(pyz, a.scripts, a.binaries + more_binaries, Tree(os.path.join(_dir, 'gi_typelibs'), 'gi_typelibs'), a.zipfiles, a.datas + more_datas, name='Application.exe', debug=False, strip=None, upx=True, console=True, icon=os.path.join(directory, 'app.ico'))
I think that this problem can be related with 32x64 bits. But my python is 32 bits. I have installed the gtk with install in one. And any other windows can run my application.
How to using Batch and Poweshell to run commands for multiple files?
I'd need a batch method to list all *.fxb files in a folder, create a sub-folder with the same name for each of them and make an app (a windows program) export each file in his sub-folder in another format. This HAVE to be done by sending keys to the app.
The window app is a VST-Host that .... hosts a VST :)
That VST loads preset banks (.fxb files) and is able to export it as a bunch of single preset files (*.fxp), by using key command (CTRL+ALT+O to open a bank, CTRL+ALT+E to export it). Sadly, both (the VST and the Host) cannot accept command-line parameters (or at least not all the one needed) so this can be automated only by sending keystrokes.
By googling and by searching here, seems that the best method to achieve this is by using PowerShell scripts (which i don't know so much) and so I'm thinking to use a batch file in combination to it.
So, in my mind, that Batch file should
- take a parameter (a something.fxb file) or list all *.fxb files if no parameter is passed.
- Create a folder with the same name of the fxb file being exported
- launch the powershell script passing the filename and his path
The script will
- Take the filename and path as variables (let call it vFile and vPath)
- send the CTRL+ALT+O keys
- "write" 'vFile.fxb' in the resulting open-file dialog
- press ENTER
- send the CTRL+ALT+E keys
- "write" 'vPath\vFile\' in the resulting dialog box
- press ENTER
Now, as i said i don't know Powershell so much... i don't know if it could run "alone", generating the list of files and making the directories by itself. As a (once) VB programmer i understand its syntax, so i think i can do this job if i get a good kick to start :)
How to install Signtool.exe and it's only components without downloading the full SDK
I'm working on a program and would like to sign it, but the SDK to download the program freezes when installing (I let it install for 2 days straight and the bar didn't progress at all so I'm going to assume it froze). Is there any way to just get Signtool.exe and its components to sign my program? Thank you!
SignTool - sign $(TargetFileName) in VS solution in release configuration
In Visual Studio 2015, I want to use SignTool to sign the dll, exe, and msi files of the solution on a successful build. That is, using a post-build event. I have looked at this post: Disable signing when in debug and it has been useful. So I have this in the post-build event:
where the Debug_sign.bat is blank and the Release_sign.bat looks something like:
"C:\Program Files (x86)\Windows Kits\10\bin\x64\signtool.exe" sign /f "C:\Program Files (x86)\Windows Kits\10\bin\x64\mySPC.pfx" /t http://timestamp.verisign.com/scripts/timestamp.dll /v $(TargetFileName)
The problem with this of course is that $(TargetFileName) is not recognised. It would however, really help if I didn't have to specify the file name of the exe/dll/msi or whatever for the particular project, and just use the TargetFileName.
So, how could I have two cases (release & debug) where only with the release configuration the files are signed, and only the TargetFileName is signed? Presently, I have SignTool's path hardcoded in the bat file. I would like to have as few as possible scripts to keep track of.
How to sign a Windows application with .crt file?
I have built an application and created a installer with Inno Setup Compiler. I have bought a certificate so I could sign the application, but the certificate that I received is a .crt file. All of the tutorials that describe the signing process via SignTool talk about a *.pfx file.
I'm not sure how to continue from here, any help would be appreciated, thank you!