Unnecessary Cancel dialog breaks installation - Advanced Installer Community
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Unnecessary Cancel dialog breaks installation

Hi Advanced Installer Support Team,

Please let me draw your attention on a potential issue of Advanced Installer 12.3.1: we´re not able to install our product on Windows 2008, Service Pack 2, 64-bit machines as "Are you sure you want to cancel .... installation?" dialog pops up every time we click on the "Install" button of our Verify dialog.

The executables generated by Advanced Installer 12.0.0 by the exact same .aip project file work fine on all type of operation systems including Windows 2008.
However opening the given .aip by Advanced Installer 12.3.1, generating the executables in the same way, and trying to install our product will show you the Cancel dialog, although Cancel button is never pressed. Therefore the product cannot be installed at all on Windows 2008 machines.

Do you have any ideas which of your changes might break our installation procedure? Naturally we didn´t change anything in our .aip project since then.

Thanks in advance!

Best regards,
Zsolt Kollarits
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Unnecessary Cancel dialog breaks installation

Hello Zsolt,

This may happen when you are using a SHA256 certificate or a SHA256 signature algorithm as a digest algorithm at signing time. Can you please make sure you leave unchecked the "Use SHA256 as digest algorithm" option from Digital Signature Page and see if this helps?

When you build an EXE setup package with resources inside our EXE bootstrapper checks at install time his signature and its embedded MSI signature. If there is a signature mismatch between the EXE and its embedded MSI file or if the digital signature cannot be computed, then the cancel dialog will be spawned during installation just after the [Install] button is pressed.

The signature mismatch may appear when the EXE setup package is signed outside of Advanced Installer. Since the MSI is embedded in the EXE, only the EXE will be signed and, therefore the MSI will remain unsigned. This will generate the conflict at install time.

Also, there are situations when may not be possible to compute the digital signature. This usually happens when you are using a SHA256 certificate or a SHA256 signature algorithm as a digest algorithm at signing time. Setup packages signed with a SHA256 certificate or digest algorithm may not have their digital signature recognized on some old operating systems and, thus the installation will fail. There is an official Windows issue regarding the computation failure of SHA256 certificates on Vista and Windows Server 2008 operating systems.

So, in this case it is recommended to use a SHA1 certificate and make sure you leave unchecked the "Sign only for modern operating systems (Windows 7 or newer)" option from Digital Signature Page.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: Unnecessary Cancel dialog breaks installation

Hi Daniel,

Actually we haven´t touched our "Digital Signature" tab nowadays, but to be on the safe side I double-checked it for you and "Use SHA256 as digest algorithm" option
is disabled.

We create all of our packages in the same way we did it so far, nothing has changed, we always prepare "EXE with resources next to it" so both exe and msi files are generated by Advanced Installer.

Another interesting thing: installing the same files on different operation systems does not show the Cancel dialog at all. Installation is prevented only on Win 2008 machines, that´s why we think our exe and msi files are correct and probably one of your changes between AI version 12.0.0 and version 12.3.1 is responsible for it. (Please remember, opening the exact same .aip project by AI 12.0.0, generating the files in the exact same way results such executables which can be installed even on Win 2008 without seeing Cancel dialog).

Could you please give me some advises?

Thanks in advance!

Best regards,
Zsolt
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Unnecessary Cancel dialog breaks installation

Hello Zsolt,

Can you please send us the .AIPs (AI 12.0 and 12.3 .1 project files) and a verbose log of the failing installation to support at advancedinstaller dot com so we can investigate them? Also, if you could send us a download link to your non-working setup files, so we can test them on our side, this will be useful too.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”