agyorgyi
Posts: 8
Joined: Thu Jan 09, 2020 4:28 pm

Error 4034 while the installer is trying to create a website with HTTPS binding

Mon Mar 09, 2020 10:33 am

Dear Support,
the installer can't create the necessary website with HTTPS binding.

The SSL setting in the attached ssl.png
The value of [CERTHUMBPRINT] is passed by command-line argument, the proper certificate is stored in Trusted Roots

The error message in log:
Error 4034. There was an error during the IIS configuration process while trying to install Web site 'prognozis-nfm-teszt4.griffsoft.hu'.
Your original IIS configuration will be restored.
MSI (s) (78!0C) [10:08:53:354]: Termék: Prognózis -- Error 4034. There was an error during the IIS configuration process while trying to install Web site 'prognozis-nfm-teszt4.griffsoft.hu'.

Your original IIS configuration will be restored.
CustomAction AI_IIsConfig returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
The whole log is attached (log.log).
I couldn't figure out that is the real reason for the error, I need help.

Thank you!
Attachments
ssl.png
ssl.png (17.3KiB)Viewed 8023 times

Daniel
Posts: 8237
Joined: Mon Apr 02, 2012 1:11 pm
Contact:  Website

Re: Error 4034 while the installer is trying to create a website with HTTPS binding

Tue Mar 17, 2020 7:47 am

Hi,

We apologize for the delayed reply on this.

Unfortunately(not sure why), it seems your log file was not attached to this thread. Could you please send it by email at support at advancedinstaller dot com so we can fully investigate it?

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

Nerdiculous
Posts: 7
Joined: Tue Jul 28, 2020 9:23 pm

Re: Error 4034 while the installer is trying to create a website with HTTPS binding

Wed Sep 09, 2020 5:42 pm

We are having the same issue. I've attached our log file to continue the troubleshooting started in this thread. Any feedback is much appreciated.
Attachments
Enterprise_2020.3.1_(x64).exe_12.28.39.56.zip
(380.89KiB)Downloaded 232 times

Daniel
Posts: 8237
Joined: Mon Apr 02, 2012 1:11 pm
Contact:  Website

Re: Error 4034 while the installer is trying to create a website with HTTPS binding

Tue Sep 22, 2020 7:16 am

Hi,

Please accept our apologies for the delayed reply on this.

Looking over your sent log there seems to be a problem when trying to install the SSL certificate you configured into your setup project. Can you please make sure a certificate with the hash you configured into your setup project does indeed exist on target machine?

Please proceed like this:

1. open your setup project in Advanced Installer and go to "IIS" page
2. select your web site entry and in the right pane navigate to "Bindings / SSL" tab
3. check the Thumbpring (Hash) you set for the "Use existing server certificates)" option
4. open on target machine (where the installation failed) the IIS Manager (inetmgr.exe) and go to "Server Certificates" section
5. here search and make sure that under "Personal" store there exists a certificate with the above hash

Hope this helped.

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

Nerdiculous
Posts: 7
Joined: Tue Jul 28, 2020 9:23 pm

Re: Error 4034 while the installer is trying to create a website with HTTPS binding

Fri Oct 23, 2020 3:48 pm

Hey Dan, I was able to resolve this by adding a custom action that performs data validation of the user input. Basically, what was happening, is that the field techs were copying the cert thumbprint directly from the cert properties window which had hidden special characters that were later revealed by using a code editor and switching encoding to ANSI and/or UTF-8. In my opinion, the text input box for dialogs should have the option to set encoding.

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Error 4034 while the installer is trying to create a website with HTTPS binding

Fri Oct 23, 2020 4:23 pm

Hello,

Thank you for your followup on this and for sharing the solution with us.

We are glad everything works as expected now!
Basically, what was happening, is that the field techs were copying the cert thumbprint directly from the cert properties window which had hidden special characters that were later revealed by using a code editor and switching encoding to ANSI and/or UTF-8.
This issue with the copy-paste mechanism is quite often occuring and it is pretty hard to track it down, indeed.
In my opinion, the text input box for dialogs should have the option to set encoding.
Unfortunately, the "Edit Box" control is a predefined Windows Installer control and we do not have much power over modifying it.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”