ChrisGue
Posts: 116
Joined: Tue Feb 03, 2009 7:26 pm

Signing for Win 7 or newer causes the installation fail on Win XP

Hello
I use the AI enterprise 13.1
I would like to sign with sha1 AND sha256, but AI states:
"Digital signing for compatibility with legacy operating systems (Windows XP/Vista) requires Windows 8 or newer"
I am using Win 7.

But why that?
I can sign my files with sha1 AND sha256 on Win 7 without problems:
signtool.exe sign /f .... /v /fd sha1 /t http://timestamp.verisign.com/scripts/timestamp.dll ...
timeout /T 2
signtool.exe sign /f .... /as /v /fd sha256 /tr http://timestamp.comodoca.com/rfc3161 /td sha256 ...


And using the AI option
"Sign only for modern operating systems, Windows 7 or newer (recommended)"
causes the installation on Win XP not to run properly (it just terminates), when I sign the installation exe with sha1 AND sha256 after AI has build the installation.
This has been working fine with AI 7.1.3

Logging of the failed installation on Win Server 2008:
=== Logging started: 25.07.2016 22:42:40 ===
MSI (c) (60:68) [22:42:40:625]: Note: 1: 2262 2: PatchPackage 3: -2147287038
MSI (c) (60:68) [22:42:40:625]: Machine policy value 'DisableRollback' is 0
MSI (c) (60:68) [22:42:40:625]: User policy value 'DisableRollback' is 0
MSI (c) (60:68) [22:42:40:625]: PROPERTY CHANGE: Adding UILevel property. Its value is '5'.
Aktion beendet um 22:42:38: ProgressDlg. Rückgabewert 1.



Please help how tp solve this.
Chris
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Signing for Win 7 or newer causes the installation fail on Win XP

Hello Chris,

Dual signing is possible within Advanced Installer on Windows 7 too, but only when using the "SignTool.exe" as an external tool. Just go to "File -> Options -> External Tools" and make sure you check the "Use an external tool" option. Also, in order to make sure dual signing works on Windows 7 from Advanced Installer you should also install the 2949927 Windows updates in case they are not already installed on your system.
And using the AI option
"Sign only for modern operating systems, Windows 7 or newer (recommended)"
causes the installation on Win XP not to run properly (it just terminates), when I sign the installation exe with sha1 AND sha256 after AI has build the installation.
This has been working fine with AI 7.1.3
Indeed, this may happen when you sign the EXE setup outside Advanced Installer. Since the MSI is embedded in the EXE, only the EXE will be signed. This will generate a signature mismatch between EXE and its embeded MSI and the installation is aborted in this case.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ChrisGue
Posts: 116
Joined: Tue Feb 03, 2009 7:26 pm

Re: Signing for Win 7 or newer causes the installation fail on Win XP

Thanks a lot. Working fine now.
chris
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Signing for Win 7 or newer causes the installation fail on Win XP

You're always welcome Chris. I'm glad you got everything working.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
guypb
Posts: 28
Joined: Thu Dec 18, 2008 5:16 pm

Re: Signing for Win 7 or newer causes the installation fail on Win XP

I am having a problem where I am trying to dual sign so works on XP SP3, but even though I have installed Windows 7 SDK, and pointed to External Signtool.exe, I am getting an error saying i need Windows 8 signtool,exe

I am running AI13.5 on Windows 7 Ultimate SP1.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Signing for Win 7 or newer causes the installation fail on Win XP

Hello,

Please note that on Windows 7 dual signing is supported only by SignTool.exe of the Windows SDK v8.0 or newer and it requires you to have the "Microsoft Security Advisory 2949927" update installed. So, please manually install the Windows SDK v8 or newer and the above updates and then try again to sign the setup package with Advanced Installer.

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

Return to “Common Problems”