BUG: Prerequisite Installation of Visual C++ Redistributable - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

sbaebler
Posts: 18
Joined: Wed Oct 08, 2008 10:15 am

BUG: Prerequisite Installation of Visual C++ Redistributable

I'm deploying an Application which needs the uses the Visual C++ 2005 Redistributable SP 1.
I have encountered 2 bugs when I was working with the Software Prerequisites of Advanced Installer.

I modified my existing Advanced Installer project as follows:
In Software Prerequisites, Add -> Visual C++ 2005 Redistributable SP 1 (x86)
Then in Install Conditions, Edit Search, I added Minimum Version 8.0.50727

I assume, Advanced Installer looks in the registry for {7299052b-02a4-4627-81f2-1818da5d550d}. I found that the Advanced Installer test reads the value of
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\b25099274a207264182f8181add555d0\DisplayVersion and compares it to the Minimum Version entered in the software prerequisites.

BUG 1: When I rename in the registry DisplayVersion to something else, e.g. DisplayVersionX, and then hit the Test Button in Advanced Installer, Edit Prerequisites, AdvancedInstaller crashes.

I later tested my Installer on a freshly installed XP Professional 32bit SP2.
On this system, the Redist Package is not yet installed (Searching for "Redistributable" or b25099274a207264182f8181add555d0 in the Registry did not find anything).

BUG 2: The Installer does not recognize that the Redistributable is not yet installed.

Can you give more information on how Advanced Installer tests if a component has already been installed? I do not understand why the installer believes the Redistributable Package is already installed on the XP Pro 32bit system.

Thank you
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: BUG: Prerequisite Installation of Visual C++ Redistributable

Hi,
I assume, Advanced Installer looks in the registry for {7299052b-02a4-4627-81f2-1818da5d550d}. I found that the Advanced Installer test reads the value of
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\b25099274a207264182f8181add555d0\DisplayVersion and compares it to the Minimum Version entered in the software prerequisites.

BUG 1: When I rename in the registry DisplayVersion to something else, e.g. DisplayVersionX, and then hit the Test Button in Advanced Installer, Edit Prerequisites, AdvancedInstaller crashes.
Unfortunately we did not handle the case in which the product is installed, but one of its registry entries was manually modified. I'm not sure why would anyone modify that registry entry manually. However, we will handle this case in a future version of Advanced Installer. Thank you for your suggestion.
I later tested my Installer on a freshly installed XP Professional 32bit SP2.
On this system, the Redist Package is not yet installed (Searching for "Redistributable" or b25099274a207264182f8181add555d0 in the Registry did not find anything).

BUG 2: The Installer does not recognize that the Redistributable is not yet installed.
I'm not sure I understand what you mean. Can you please give me more details about this? Was the MSI launched directly, without running the prerequisites wizard?
Can you give more information on how Advanced Installer tests if a component has already been installed?
This depends on the detection criteria used by the prerequisite. For example, the Visual C++ Redistributable uses the Product Code of the package which installed it to find the version installed on the machine.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sbaebler
Posts: 18
Joined: Wed Oct 08, 2008 10:15 am

Re: BUG: Prerequisite Installation of Visual C++ Redistributable

cosmin wrote: Unfortunately we did not handle the case in which the product is installed, but one of its registry entries was manually modified. I'm not sure why would anyone modify that registry entry manually. However, we will handle this case in a future version of Advanced Installer. Thank you for your suggestion.
I agree, this is an unnatural thing to do (I did it only to find out where the installer looks up the version number). Nevertheless, software should not crash because of a nonexistent registry value.
I'm not sure I understand what you mean. Can you please give me more details about this? Was the MSI launched directly, without running the prerequisites wizard?
I do not have any MSI files (both, my installer as well as the vcredist package are exe files).
I'm not sure what you refer to by "prerequisite wizard", is this
  • the wizard that is part of the advanced installer program (used when I create the installer for my application) When I build the installer, I used the Prerequisites wizard
  • a wizard that is launched at the beginning of the installation by the user
Anyway, I have an application myapp.exe and an installer install.exe that is build using advanced installer and has vcredist.exe as a prerequisite. I would assume that when the user executes install, it will first check the prerequisites for vcredist.exe (as I defined it when building the installer)
Then the installer should execute vcredist.exe if it has not found a version on the system. The next step should then be to continue with the installation of myapp.exe.

However, vcredist.exe is not executed on the system described. Apparently the prerequisite test which I defined (Minimum Version of vcredist should be 8.0.50727) did fail. This is why I asked for more information on how Advanced Installer performs this test.
Can you give more information on how Advanced Installer tests if a component has already been installed?
This depends on the detection criteria used by the prerequisite. For example, the Visual C++ Redistributable uses the Product Code of the package which installed it to find the version installed on the machine.
This is the detection criteria I have entered in Advanced Installer. I would very much appreciate it if the documentation of these criteria contained a precise explanation how this test is performed.
Prerequisites Condition
Prerequisites Condition
advinstaller_vcredist_condition.png (11.04 KiB) Viewed 5630 times
I hope this are enough details.

Thank you for your help
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: BUG: Prerequisite Installation of Visual C++ Redistributable

Hi,
I do not have any MSI files (both, my installer as well as the vcredist package are exe files).
I was referring to your main MSI package. If it's launched directly and not through the EXE bootstrapper, the prerequisites are not checked.
I'm not sure what you refer to by "prerequisite wizard"
I was referring to the prerequisites wizard which allows the user to install the prerequisites. It is shown when the installation starts and prerequisites are not installed.
Apparently the prerequisite test which I defined (Minimum Version of vcredist should be 8.0.50727) did fail.
If the search fails, the prerequisites wizard will run allowing the user to install the prerequisite. I'm not sure why it doesn't work on your machine. If the problem persists please send us the AIP with the problem to support at advancedinstaller dot com so we can investigate it.
I would very much appreciate it if the documentation of these criteria contained a precise explanation how this test is performed.
The tests use Windows Installer API, therefore I'm afraid we cannot offer more details about them. Unfortunately this is confidential information.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”