Loading
Install prerequisite at initialization
I have a custom action to validate my serial number through a DLL. This DLL require MS C++ runtime merge module. These runtime are included in my project, but associated to a feature. When I validate the serial, the feature are not installed yet, so, the runtime are not installed. How may I install the MS C++ runtime library before doing anything?

 

Thanks,

  • Hi,

     

    I tried to build a setup prerequisite with the vcredist package, but I had a hard time finding the install conditions. While googling the subject, I found an easier solution. Since my serial validation dll is very simple, it only require the msvcr80.dll file and its manifest. So, I included these two file along my serial validation dll in the SUPPORTDIR. That way, I don't need to have the whole package installed before the setup. The files are copied there and deleted after install.

     

    Thanks !
    Expand Post
  • You can probably also consider statically linking the dependency also. And if it's a really simple check, maybe just port the C++ over to InstallScript.

Loading
Install prerequisite at initialization