Bjammin
Posts: 29
Joined: Thu Jan 24, 2008 4:14 pm

Signtool file in use error when creating exe in version 18.7

Thu Oct 14, 2021 9:17 pm

I am getting an error in the final sign when building. The CAB & MSI sign just fine, but then when it signs the .EXE (last step so the installer exe) it says the file is being used by another process. But it is not me. Full error message below, only changed my file paths.

Am updated to current version 18.7 (0A7FDEAD) Windows

- Thank you.

Checking builds status
Build required.

[ DefaultBuild ]
Building package:
C:\Users\Public\..whatever...
Prepare build
Detecting MSI incompatible resources
Preparing files
Creating CAB file(s)
Signing CAB file(s)
Creating MSI database
Writing Summary Information
Adding merge modules
Signing MSI
This file was signed with the certificate: Sunburst Software Solutions, Inc.
Creating EXE file
Signing EXE file
The digital signing of the EXE failed. Error message: 'Done Adding Additional Store

Number of errors: 1
SignTool Error: The file is being used by another process.
SignTool Error: An error occurred while attempting to sign: C:\Users\Public\...whatever.exe
File "C:\Users\Public\...whatever.exe" can not be signed!

For a possible solution please check our Digital Signature FAQ from:
https://www.advancedinstaller.com/user- ... ature.html '

Build finished because an error was encountered.

Liviu
Posts: 1035
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Signtool file in use error when creating exe in version 18.7

Fri Oct 15, 2021 4:04 pm

Hello,

I am not sure why this happens.

I believe that this most probably is not related to Advanced Installer, as we use the SignTool.exe tool (from Microsoft and which comes installed with the Windows SDK).

Can you please verify if an antivirus/anti-malware running in the background may be restricting access to the file?

Also, check if you have an application open which is listing the folder where the files to be included in the setup are located. If the file is being previewed, then this kind of error also may occur.

As I can see, other people with similar issue said that excluding the build folder from Windows Defender helped them: SignTool error: installer EXE is being used by another process

Please let me know if that helped!

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Bjammin
Posts: 29
Joined: Thu Jan 24, 2008 4:14 pm

Re: Signtool file in use error when creating exe in version 18.7

Fri Oct 15, 2021 9:58 pm

That was it. Paused Kaspersky & it worked. Thank you!!!!

Liviu
Posts: 1035
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Signtool file in use error when creating exe in version 18.7

Mon Oct 18, 2021 11:14 am

You're welcome!

I'm glad everything works as expected now.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”