werelord
Posts: 16
Joined: Thu Nov 05, 2009 3:47 pm

code signing installer with 8.4

Just upgraded to the v8.4 version of AI, and we're running across an intermittant problem..

We're running AI thru the command-line to build our installers; using .aic files to modify a common installer with certain properties.. With the latest release, we've been encountering this error when building:

Code: Select all

[ DefaultBuild ]

Building package (en): \\nas\Marketing\Advanced Installer\installers\adobeair\fliptoast.app.13300.fliptoast.exe 
Creating CAB file(s)... done.
Creating MSI database... done.
Writing Summary Information... done.
Signing MSI... done.
Creating EXE file... 
Exception - 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: \\nas\Marketing\Advanced Installer\installers\adobeair\fliptoast.app.13300.fliptoast.exe
This doesn't happen all the time; it happens about 50% of the time.. Its almost like either bad commands to signtool, or signtool isn't waiting for the creation of the exe bootstrap to finish before attempting to sign..

Any ideas?
werelord
Posts: 16
Joined: Thu Nov 05, 2009 3:47 pm

Re: code signing installer with 8.4

Another one, similar area.. Definitely seems to be two different processes that are butting heads in building:

Code: Select all

[ DefaultBuild ]

Building package (en): \\nas\Marketing\Advanced Installer\installers\adobeair\fliptoast.app.13272.fliptoast.exe 
Creating CAB file(s)... done.
Creating MSI database... done.
Writing Summary Information... done.
Signing MSI... done.

Exception - Failed to localize one or more elements in the EXE bootstrapper. Make sure that [\\nas\Marketing\Advanced Installer\installers\adobeair\fliptoast.app.13272.fliptoast.exe] is not being used by another process and the elements used by the bootstrapper can be accessed.
GetLastError() returned: The handle is invalid.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: code signing installer with 8.4

Hello,

I am not sure why you are getting this behavior. Can you please verify any antivirus that may be restricting access to the file?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
werelord
Posts: 16
Joined: Thu Nov 05, 2009 3:47 pm

Re: code signing installer with 8.4

We do have Sophos AV on the machine, but the Realtime scanning is turned off, due to having problems with it locking files in the past..

I did run Process Monitor on the system while the builds were happening, filtering on the output exe.. The only two processes that were accessing the exe were advinst.exe and signtool.exe..

thanks
werelord
Posts: 16
Joined: Thu Nov 05, 2009 3:47 pm

Re: code signing installer with 8.4

Well, tried again this morning (twice) and the error didn't reappear.. The builds are working fine.. I wonder if it may have been some timing issues with the timestamp portion of the code signing..

One thing that we had in the past was not timestamping the resulting file by having the timestamp url be blank; however in newer versions of AI the timestamp URL seems to be prepopulated (and enabled by default).. Is there any way to remove that functionality (just sign, no timestamp)??
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: code signing installer with 8.4

Hello,
Exception - Failed to localize one or more elements in the EXE bootstrapper
We are aware of this error. It has random occurrence and unfortunately we are not able to isolate and fix the reason.
Is there any way to remove that functionality (just sign, no timestamp)??
The error text doesn't indicate anything related to timestamp. However, to deactivate it, simply delete the URL to the timestamp server( editable combobox ).

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”