Install fails due to missting CRT - 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!

mk100
Posts: 5
Joined: Wed Mar 17, 2010 11:35 pm

Install fails due to missting CRT

My application is compiled with VS 2008 SP1. The installation I created with AI runs correctly on most machines, but on others (primarily XP, though not every XP) it fails.

I finally narrowed it down a non-existent VS 2008 CRT. When I do a serial validation, the validation is done by a DLL, which was created/compiled in VS 2008 SP1. Since the computer doesn't have that, the install fails.I read through the documentation and found the section about the merge modules, so I've added the "Visual C++ 9.0 CRT..." MSM for the CRT as well as the Policy in the Merge Modules section. That did not fix the problem, and I suspect that it's because this doesn't get install until later in the process, whereas my DLL that validates the Serial Number is called early in the initial phase of the install. Or maybe I'm misunderstanding what the MSM merge modules do...

I have confirmed that the problem is the CRT, because if I first manually install the executable for the CRT Redistributale on the computer, then the my application's install works.

So what is the correct approach for handling this?
--- Am I using the MSM merge module incorrectly, and if so, how do I configure it so that it's put in place at the begining so the Serial Validation doesn't error out?
--- If the solution is to install the VC Redistributable executable, how would I check if the CRT is already in place, and how would I launch the redistributable early in the process?
--- Or is there a better solution than the two I'm thinking of?

Thank you

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

Re: Install fails due to missting CRT

Hi Marcio,

You can add a Visual C++ Redistributable prerequisite in the Prerequisites page. This way the runtime is installed when your custom action runs.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mk100
Posts: 5
Joined: Wed Mar 17, 2010 11:35 pm

Re: Install fails due to missting CRT

Thank you Cosmin

Return to “Common Problems”