davidjhomer
Posts: 55
Joined: Wed Jun 08, 2016 3:58 pm
Contact:  Website Facebook Skype Twitter

BUG: Installer problems after installing .NET Framework 4.8 pre-requisite

Fri Jun 11, 2021 10:52 pm

Hello,

We have an installer (here is the compiled installer)
https://www.centrel-solutions.com/softw ... s4.2.2.exe

We install .NET Framework 4.8 using the following parameters as an AdvancedInstaller pre-requisite.
/passive /promptrestart /showfinalerror

.NET Framework 4.8 installs and prompts for a reboot
After the reboot the AdvancedInstaller starts the install again

If you allow AdvancedInstaller to continue the installation the install completes but the custom buttons on the final form do not work properly and other strange behaviour occurs.

BUT if you cancel the AdvancedInstaller that starts automatically after reboot, and then start it again by double clicking the setup application, the install completes correctly!

Is this an issue that the installer starts too soon after rebooting after a .NET Framework installation? How do we stop this automatic behaviour?


Thanks,


Dave
CENTREL Solutions Ltd
Server audit and documentation tools.
http://www.centrel-solutions.com

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

Re: BUG: Installer problems after installing .NET Framework 4.8 pre-requisite

Tue Jun 15, 2021 6:58 pm

Hello Dave,

I have tested the setup you provided on my Windows Server 2016 machine and I believe I was able to reproduce the described behavior (even though I managed to do so after few tries, because for some reason the .NET Framework did not prompt me for a restart).

This is indeed quite a strange behavior that I did not encounter in the past. Please give me some more time to further investigate this and I will followup on this thread as soon as I have more information about this.

I have also noticed your other thread which I will start investigating after we get to the bottom of this.

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

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

Re: BUG: Installer problems after installing .NET Framework 4.8 pre-requisite

Wed Jun 16, 2021 4:15 pm

Hello Dave,

Apparently, one of my colleagues faced this scenario in the past.

Please have a look over the following forum thread:

Custom action is not launched

where my colleague Daniel explains why this happens and offers a workaround for this problem.

Hope this helps!

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

davidjhomer
Posts: 55
Joined: Wed Jun 08, 2016 3:58 pm
Contact:  Website Facebook Skype Twitter

Re: BUG: Installer problems after installing .NET Framework 4.8 pre-requisite

Mon Jun 21, 2021 11:46 am

Is there any chance of a fix to this bug?

We've tried to replace the code with a VBscript custom action as per your workaround to launch the application and a button to launch the URL from the finish form but they launch *behind* the installer. It's also a pretty nasty hack when we really want to use the AdvancedInstaller functions to open the .exe file and browser URL.

applicationName = Session.Property("APPLICATION_NAME")
Set shell = createobject("WScript.Shell")
shell.run "http://localhost/" + applicationName

Image

If we run the custom action as an inline PowerShell script it launches the browser window in focus but it can take ~5 seconds for it to open so it looks like the installer is hung.

I've written about the issue here
https://david-homer.blogspot.com/2021/0 ... te-on.html
CENTREL Solutions Ltd
Server audit and documentation tools.
http://www.centrel-solutions.com

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

Re: BUG: Installer problems after installing .NET Framework 4.8 pre-requisite

Wed Jun 23, 2021 3:58 pm

Hello Dave,

From what I know, our team investigated this issue in the past but unfortunately we were not quite able to get to the bottom of it (I believe this is something related to the Windows Installer rather than Advanced Installer), therefore the workaround offered by my colleague Daniel would be the only solution here.

Regarding the fact that the web page is launched behind the setup, this is currently something that we are working on.

If possible, could you please forward me the sample project you have used (the one from the screenshot) so I can further test this on my end? Perhaps I will be able to find a better solution to this.

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

Return to “Common Problems”