Problems on Windows XP after switching from 12.4.2 to 13.4 - Advanced Installer Community
Jakob1981
Posts: 46
Joined: Fri Jun 13, 2014 10:52 am

Problems on Windows XP after switching from 12.4.2 to 13.4

Hello everyone,

I am experiencing problems with my installer on Windows XP since the latest upgrade from Advanced Installer from version 12.4.2 to 13.4.

I have a digitally signed executable which normally runs on Windows platforms (from XP on up to the latest Windows version).
As a precondition it requires .NET framework 4. If this is not available (which it isn't always on XP), the user is asked to agree to download it during the installation.
Normally this works very smoothly. The user is asked to download .NET (if it does not exist on the computer) and afterwards the installation dialogue is shown. Then the installation finishes quickly after the user clicks "install" and the installation dialogue disappears.
Or, if .NET 4 was already installed, it's only the installation dialogue which is shown and which disappears as soon as the install process finishes.

Now I have upgraded from 12.4.2 to 13.4 - if have not changed anything else at all.
What happens now on XP with the new version is, that the prerequisites dialogue does never appear, the installation dialogue is shown directly and: the installation dialogue does never disappear. It is shown greyed, with a closer, but when clicking the closer it does not happen anything at all. I can wait and wait and wait, it won't disappear.
This happens only on Windows XP and regardless if I have the .NET framework installed before or not!
I can only exit from this point by using Task Manager and killing the installation process, because it will never finish.

The logs though look fine and when I attempt to use the installed application afterwards it works smoothly.

Any idea what could be wrong? I am grateful for your help!

Best regards,

Jakob
Jakob1981
Posts: 46
Joined: Fri Jun 13, 2014 10:52 am

Re: Problems on Windows XP after switching from 12.4.2 to 13.4

Hello again,

I got some news. I used the new version (with 13.4 created), but removed the prerequisite for Windows XP - and added it again.

Now, the installer manages downloading the .NET framework for XP, but still the install dialogue does not disappear after clicking "install".

It simply stays there forever, shown grey out and not removable.

Any ideas? Would be welcome!

Best,

Jakob
Jakob1981
Posts: 46
Joined: Fri Jun 13, 2014 10:52 am

Re: Problems on Windows XP after switching from 12.4.2 to 13.4

And something else: I got it running, but I had to remove the "custom action" I added in the end - weird that this seems only to be a problem for Windows XP
I can not work without this action, but I was testing around, so I noticed it - still I have no idea how to solve the problem WITHOUT removing the custom action
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Problems on Windows XP after switching from 12.4.2 to 13.4

Hi,

I'm not sure why you encounter this problem. Can you test it with version 13.5 of Advanced Installer the has just been released and see if the problem persists? If so, can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com, so we can investigate them?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jakob1981
Posts: 46
Joined: Fri Jun 13, 2014 10:52 am

Re: Problems on Windows XP after switching from 12.4.2 to 13.4

Hello Eusebiu,

thanks for your answer.

I just tested with version 13.5, but the problem remains. However, I have stripped it down to a single point of failure.

If I add the custom action in the end ("send data to my server"), it fails - if I remove it, it works (on XP) - on other platforms it works with both versions

I will send you the aip file and a log to the mailaddress. Thank you!
Jakob1981
Posts: 46
Joined: Fri Jun 13, 2014 10:52 am

Re: Problems on Windows XP after switching from 12.4.2 to 13.4

I think I solved it. I simply removed all custom actions (sending information to server) and added them again (with the same configuration) and then it worked
thanks for your help nevertheless!
If I experience any other issues, I will send the aip file with the log, as suggested
Jakob1981
Posts: 46
Joined: Fri Jun 13, 2014 10:52 am

Re: Problems on Windows XP after switching from 12.4.2 to 13.4

It's installing now, but now the digital signature is broken.... :(

could be my fault, though, I am currently investigating and will give you feedback later
Last edited by Jakob1981 on Thu Dec 15, 2016 10:41 am, edited 1 time in total.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Problems on Windows XP after switching from 12.4.2 to 13.4

Hi,

I'm glad you solved the problem with the custom actions.

Can you please give me more details about the problem that you encounter with the digital signature (maybe a screenshot of the error)? Also, can you tell me which digest algorithm (e.g. SHA1, SHA256) you use to sign your package?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jakob1981
Posts: 46
Joined: Fri Jun 13, 2014 10:52 am

Re: Problems on Windows XP after switching from 12.4.2 to 13.4

Thanks for your answer! I use the option which enables signing for newer AND older windows versions (including XP). I have a SHA2 certificate.

The signature seems to be valid when the exe file is created. But later, during download, I sign it again, adding a custom parameter.

I am using this mechanism for a long time and it never failed - I am still checking what could cause the problems now during signing. I am using signcode with algorithm sha1
Last edited by Jakob1981 on Thu Dec 15, 2016 11:11 am, edited 1 time in total.
Jakob1981
Posts: 46
Joined: Fri Jun 13, 2014 10:52 am

Re: Problems on Windows XP after switching from 12.4.2 to 13.4

Is this probably related to the signing changes? I use the "dual signing" for Windows XP and newer versions, but I do not really understand why I can't sign it now manually again without having problems?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Problems on Windows XP after switching from 12.4.2 to 13.4

Hi,

By signing it manually, you mean that you sign it from command line, outside Advanced Installer?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jakob1981
Posts: 46
Joined: Fri Jun 13, 2014 10:52 am

Re: Problems on Windows XP after switching from 12.4.2 to 13.4

Yes, I take the file (which is signed by Advanced Installer, first) and then I run signcode (with algorithm sha1) once - normally this worked pretty fine, the signature was always valid, but now it is not anymore
I probably need to dualsign the file now, manually, too.... ?

Just another information, I am using Linux as OS when I sign the file manually again (in case this is relevant)
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Problems on Windows XP after switching from 12.4.2 to 13.4

Hi,

Can you please send me a screenshot with the error that you encounter?

Please keep in mind that in order to create MSI or EXE packages that run on Windows XP SP2, you need to use Advanced Installer 12.5 as mentioned on our "Requirements" page.

Also, starting with January 1st, 2016 Microsoft is implementing a mandatory update of the Digital Signature system from SHA-1 to SHA-2 in order to deal with the decreasing security of the SHA-1 digital signatures. You can see more details in the "SHA-2 Digital Signature Upgrade" article.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jakob1981
Posts: 46
Joined: Fri Jun 13, 2014 10:52 am

Re: Problems on Windows XP after switching from 12.4.2 to 13.4

Hello!

sorry, I was looking so concentrated at this issue, I forgot to answer. I finally solved the problem. Indeed, I need to manually sign it twice - once with sha1 and then once again, nested - and for that I needed to switch the tool from signcode to osslsigncode.

Now it works pretty fine, I think - I am going to test it in-depth now.

Thanks a lot for your help!

Best regards,
Jakob
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Problems on Windows XP after switching from 12.4.2 to 13.4

You're welcome Jakob. I'm glad you solved the problem.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”