Installer Freeze At Beginning of Install (Maybe Prerequisites) - Advanced Installer Community
lravenwolf
Posts: 3
Joined: Fri May 15, 2020 6:26 am

Installer Freeze At Beginning of Install (Maybe Prerequisites)

Hello all

We are evaluating if Advanced Installer will work for us, but when we were testing our installer, sometimes the installer seems to freeze for a short time (20-70 seconds) at the very beginning, when it appears that it is installing the pre-requisite files. The files we are installing are the DirectX 11.0 runtime and VC++ 2015-2019 Redist. Is there anything I could be doing when building the installer to cause this?

I am doing conditional install on both:
DirectX - looking for d3d11.dll in [SystemFolder]
VC++ Redist - Checking for following registry key: HKLM\SOFTWARE\Microsoft\DevDiv\VC\Servicing\14.0\RuntimeMinimum\Version

Any direction or explanations would be appreciated!

-Tim
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Installer Freeze At Beginning of Install (Maybe Prerequisites)

Hello Tim and welcome to our forums,

Thank you for trying out Advanced Installer. Hopefully it will match your expectations.
Is there anything I could be doing when building the installer to cause this?
To be fully honest with you, I do not believe the build process has anything to do with this.

Could you please try to test this on a clean machine and let me know if the issue still reproduces (a clean install of Windows in a VM)?

If not, then this might indicate that your machine is the faulty one.

Additionally, you have mentioned that "sometimes" the installer freezes, so I assume this problem is sporadic (please correct me if I'm wrong).

If you are able to consistently reproduce this, I am thinking that maybe there is something temporarily blocking the installation / extraction (if it extracts some files silently)/ download (if the prerequisite is to be downloaded from an online location) of the prerequisites - perhaps an AntiVirus software keeping the file in use until it fully scans it.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
lravenwolf
Posts: 3
Joined: Fri May 15, 2020 6:26 am

Re: Installer Freeze At Beginning of Install (Maybe Prerequisites)

I hate to resurrect my old dead thread - but I have a question regarding showing progress during the prerequisites install. Some of our users are thinking that our installer has frozen during the Directx11 and VC++ redistributable. This can, in some extreme cases, take up to 5 minutes to install which during that time there is nothing moving on the progress bar nor is there any text other than "Installing Prerequisites."

Is there a way to show the progress of the individual pre-requisite installs? Failing that, is there a way to have some progress bar movement during this time? This primarily happens for people who have neither DX11 or the VC++ redistributable installed.

Thank you!

-Tim
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Installer Freeze At Beginning of Install (Maybe Prerequisites)

Hello Tim,

I am assuming you are talking about a silent installation for your prerequisites.

Unfortunately, there is no way for the main installer to know how much the prerequisite's install has progressed, which is why the main installer's progress bar does not move past 0%.

However, the prerequisites should be able to show some kind of basic progress.

For instance, if we run the Visual C++ Redistributable setup with the following command:

Code: Select all

setup.exe /?
we can see that:
passive.png
passive.png (199.4 KiB) Viewed 4043 times

As it can be seen above, there is a parameter for showing a basic progress bar, namely /passive.

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
lravenwolf
Posts: 3
Joined: Fri May 15, 2020 6:26 am

Re: Installer Freeze At Beginning of Install (Maybe Prerequisites)

This helps quite a lot, thank you!
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Installer Freeze At Beginning of Install (Maybe Prerequisites)

You are always welcome, Tim!

Glad it helped.

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

Return to “Common Problems”