McKool
Posts: 113
Joined: Wed Jan 19, 2011 12:35 pm
Location: Darmstadt, Germany
Contact: Website

Error with signed installation

Hello (again),

I have signed an installation. When I run this, I get the error "The access code is invalid. ". I have tested it on windows 7 and windows XP (both 32-Bit) with the same result. After clicking Ok on the error dialog, the installation goes until the end (Finish dialog) and shows an "Product successfully installed" message, although it was not installed.

Here the description of my package:
Package Type: 32-bit Package
One Language: English
Theme: AZURE, with the option "Use enhanced UI Always",
MEDIA: "Create EXE Setup", with the options: "Include install files in Exe", "Do not delete extracted MSI and CAB files".
AI Version: 8.1 Trial RC build 33034

If i run the installation without having it signed, then it works. Any Idea?

Thanks in advance,
Keneth
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Error with signed installation

Hi Keneth,

We fixed a similar problem in a newer RC which I shall send shortly to you by e-mail. However the problem should have not manifested on installation, but uninstall and only on XP machines.

Can you please send me the current aip file you are using and also let me know if the problem persists after you test the new RC.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
thomasoatman
Posts: 9
Joined: Tue Dec 13, 2011 3:50 pm

Re: Error with signed installation

Hi. I have the same error with AI 8.7.1.
I am using signtool to sign the install. unsigned, it works. signed, it gives the popup window error "The access code is invalid" after I click the 'Install' button. I have verbose logging on yet I don't find any log files anywhere.
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Error with signed installation

Are you signing the package from Advanced Installer, or from the command line after you build it?

Please note that you should sign it from within Advanced Installer, so both the EXE and the MSI get signed. If you signed it manually then only the EXE will be signed
and the error encountered will appear.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
thomasoatman
Posts: 9
Joined: Tue Dec 13, 2011 3:50 pm

Re: Error with signed installation

Thank you Bogdan.

I am signing the exe as part of my build process since only my build server has the signature certificate.
How can I tell AI only to sign during the official build?

-thomas
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Error with signed installation

Hello Thomas,

You can try to "Enable signing" in the Digital Signature page from the GUI and execute an .AIC file on your development machines. Something like:

Code: Select all

;aic
ResetSig
Build
For more information about ResetSig please follow "Executing a file of commands" section from this user guide article.

The difference between executing a command line and a file of commands is that the command line changes are saved in the project whereas the changes brought by file of commands are not.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
thomasoatman
Posts: 9
Joined: Tue Dec 13, 2011 3:50 pm

Re: Error with signed installation

This seems backwards to me.
It sounds like you are suggesting that the developer(s) would now be stuck building on the commandline rather than from within the tool.
I want the developer to have full freedom in the tool (build, test, etc from the gui) and also not worry about turning off the signing information before checking in the AIP file. for that matter, since he doesn't have the pfx file, how is he even going to get signing enabled? (it won't let me type a filename in the certificate field)

seems to me, the better approach is a way to ENABLE signing from the command file
in other words, the developer would always work with signing disabled. the official build process (run on the only machine having the signing authority) would enable signing.

-thomas
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Error with signed installation

Hi Thomas,
seems to me, the better approach is a way to ENABLE signing from the command file
Unfortunately, there is no proprietary command line to enable signing from the command line. This is why I recommended the backwards approach.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Error with signed installation

Hi Thomas,

Our development team has decided to implement "Sign the package" command line upon your request. I added the improvement on our TODO list and it will be available in a future release.

Thank you for helping us make Advanced Installer a better product.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
thomasoatman
Posts: 9
Joined: Tue Dec 13, 2011 3:50 pm

Re: Error with signed installation

You're awesome ! Thanks !
I really appreciate companies that listen to their customers.
Cassie
Posts: 1
Joined: Tue Sep 11, 2012 12:48 am

Re: Error with signed installation

Hi,

Is there any status on this new "Sign the Package" feature?

Cassie
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Error with signed installation

Hi Cassie and welcome to Advanced Installer forums,

This possibility was already implemented in 9.0 release. Read more about it in the "Executing a file of commands" section of Advanced Installer's CLI user guide article.

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

Return to “Common Problems”