aho
Posts: 58
Joined: Thu Jul 21, 2016 4:38 pm

Installing Visual C++ Redistributable fails

Hi,
On some machines, when I run my setup wizard it fails with the following error message:
failed to launch file.png
failed to launch file.png (10.56 KiB) Viewed 3518 times
This error occurs only on some machines.
Both redistributeables are installed as offline prerequisite.

Waht does "Error: 2" mean?
What can I do to solve this?

Thanks in advance!
aho
Posts: 58
Joined: Thu Jul 21, 2016 4:38 pm

Re: Installing Visual C++ Redistributable fails

Does anyone have an idea what I could try to fix this problem?
Thanks so far!
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installing Visual C++ Redistributable fails

Hello,

This is a system error and means The system cannot find the file specified..

When this error occurs again can you please browse to the file location exposed in the error message (before pressing the [OK] message box button) and check if the prerequisite setup was successfully extracted there?

Also, for testing purposes only, if there is any antivirus program installed, can you disable it temporarily before launching the setup package and see if this helps. Maybe there is an AV falsely detecting your setup package.

The best way we can further investigate this will be if you could identify a test case or pattern when this behavior occurs.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
aho
Posts: 58
Joined: Thu Jul 21, 2016 4:38 pm

Re: Installing Visual C++ Redistributable fails

Hi,
recently I had this problem again.

It seems, that the error message occurs, when the "same" setup wizard - but older version - is already installed.
In that case, the setup wizard for the redistributeables already exists in the APPDATA Folder.

If i delete this redistributeable setup an run my wizard again, it works.

What can I do to prevent this error message?

Thanks a lot in advance!
Andreas
Catalin
Posts: 6585
Joined: Wed Jun 13, 2018 7:49 am

Re: Installing Visual C++ Redistributable fails

Hello Andreas,

If the problem is solved by deleting the prerequisite's folder, then you can create a Custom Action, scheduled at the start of the installation which will search for the folder and, if found, delete it.

Hope that helps.

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

Return to “Common Problems”